re PR tree-optimization/84225 (ICE in operation_no_trapping_overflow, at tree.c:7206)
authorAldy Hernandez <aldyh@redhat.com>
Tue, 6 Feb 2018 15:44:51 +0000 (15:44 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Tue, 6 Feb 2018 15:44:51 +0000 (15:44 +0000)
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
gcc/tree-eh.c

index 56d891734f8b3fd3c005bb2ea7109a406d5fd8fe..f675bbf1b8bb0efffc6cf86f7faf14467052f159 100644 (file)
@@ -1,3 +1,9 @@
+2018-02-06  Aldy Hernandez  <aldyh@redhat.com>
+
+       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  <igor.v.tsimbalist@intel.com>
 
        PR target/84145
index 75385f7b53f1462ac73cec0a912a8847093becf1..9862ed9fdda52401aef7b1b8090f62975e1585c8 100644 (file)
@@ -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)