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-Tag: basepoints/gcc-9~1367 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=228868f5324dacfbd2b7892d223b5eba044c51e7;p=thirdparty%2Fgcc.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 51c45c053200..73c144f5f6ac 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 9862ed9fdda5..3609bca6eacc 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;