From c068b2a51447d2eaf0f6cae45ea48d99e3f2685f Mon Sep 17 00:00:00 2001 From: Aldy Hernandez Date: Tue, 6 Feb 2018 15:44:51 +0000 Subject: [PATCH] re PR tree-optimization/84225 (ICE in operation_no_trapping_overflow, at tree.c:7206) PR tree-optimization/84225 * tree-eh.c (find_trapping_overflow): Only call operation_no_trapping_overflow when ANY_INTEGRAL_TYPE_P. From-SVN: r257416 --- gcc/ChangeLog | 6 ++++++ gcc/tree-eh.c | 1 + 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 56d891734f8..f675bbf1b8b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-02-06 Aldy Hernandez + + PR tree-optimization/84225 + * tree-eh.c (find_trapping_overflow): Only call + operation_no_trapping_overflow when ANY_INTEGRAL_TYPE_P. + 2018-02-06 Igor Tsimbalist PR target/84145 diff --git a/gcc/tree-eh.c b/gcc/tree-eh.c index 75385f7b53f..9862ed9fdda 100644 --- a/gcc/tree-eh.c +++ b/gcc/tree-eh.c @@ -2729,6 +2729,7 @@ static tree find_trapping_overflow (tree *tp, int *walk_subtrees, void *data) { if (EXPR_P (*tp) + && ANY_INTEGRAL_TYPE_P (TREE_TYPE (*tp)) && !operation_no_trapping_overflow (TREE_TYPE (*tp), TREE_CODE (*tp))) return *tp; if (IS_TYPE_OR_DECL_P (*tp) -- 2.30.2