From: Jakub Jelinek Date: Wed, 7 Feb 2018 12:53:31 +0000 (+0100) Subject: tree-eh.c (operation_could_trap_helper_p): Ignore honor_trapv for *DIV_EXPR and ... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=228868f5324dacfbd2b7892d223b5eba044c51e7;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 51c45c05320..73c144f5f6a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-02-07 Jakub Jelinek + + * tree-eh.c (operation_could_trap_helper_p): Ignore honor_trapv for + *DIV_EXPR and *MOD_EXPR. + 2018-02-07 H.J. Lu PR target/84248 diff --git a/gcc/tree-eh.c b/gcc/tree-eh.c index 9862ed9fdda..3609bca6eac 100644 --- a/gcc/tree-eh.c +++ b/gcc/tree-eh.c @@ -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;