From 228868f5324dacfbd2b7892d223b5eba044c51e7 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 7 Feb 2018 13:53:31 +0100 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/tree-eh.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; -- 2.30.2