tree-eh.c (operation_could_trap_helper_p): Ignore honor_trapv for *DIV_EXPR and ...
authorJakub Jelinek <jakub@redhat.com>
Wed, 7 Feb 2018 12:53:31 +0000 (13:53 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 7 Feb 2018 12:53:31 +0000 (13:53 +0100)
* tree-eh.c (operation_could_trap_helper_p): Ignore honor_trapv for
*DIV_EXPR and *MOD_EXPR.

From-SVN: r257450

gcc/ChangeLog
gcc/tree-eh.c

index 51c45c0532000d903cf1cabbe45212e8b29b3b91..73c144f5f6ac7a96adfbcc56487335c1c9c6c467 100644 (file)
@@ -1,3 +1,8 @@
+2018-02-07  Jakub Jelinek  <jakub@redhat.com>
+
+       * tree-eh.c (operation_could_trap_helper_p): Ignore honor_trapv for
+       *DIV_EXPR and *MOD_EXPR.
+
 2018-02-07  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR target/84248
index 9862ed9fdda52401aef7b1b8090f62975e1585c8..3609bca6eacc03cb2b5171ef423f5e5f84e470e1 100644 (file)
@@ -2436,7 +2436,7 @@ operation_could_trap_helper_p (enum tree_code op,
     case ROUND_MOD_EXPR:
     case TRUNC_MOD_EXPR:
     case RDIV_EXPR:
-      if (honor_snans || honor_trapv)
+      if (honor_snans)
        return true;
       if (fp_operation)
        return flag_trapping_math;