tree-eh.c (operation_could_trap_helper_p): Ignore honor_trapv for *DIV_EXPR and *MOD_EXPR.

* tree-eh.c (operation_could_trap_helper_p): Ignore honor_trapv for
	*DIV_EXPR and *MOD_EXPR.

From-SVN: r257450
This commit is contained in:
Jakub Jelinek 2018-02-07 13:53:31 +01:00 committed by Jakub Jelinek
parent a0486b6514
commit 228868f532
2 changed files with 6 additions and 1 deletions

View 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

View 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;