aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-eh.c
diff options
context:
space:
mode:
authorDavid Edelsohn <edelsohn@gnu.org>2005-04-04 22:50:53 +0000
committerDavid Edelsohn <dje@gcc.gnu.org>2005-04-04 18:50:53 -0400
commitf90130752f21c4cfc1720bc875b8a23ea95afec6 (patch)
tree580801882cf8a84ce5d18bc451fb32a0356dfeb0 /gcc/tree-eh.c
parent57e921bc604c8ba9ca7a5ed3d9f4af178ea803ed (diff)
downloadgcc-f90130752f21c4cfc1720bc875b8a23ea95afec6.zip
gcc-f90130752f21c4cfc1720bc875b8a23ea95afec6.tar.gz
gcc-f90130752f21c4cfc1720bc875b8a23ea95afec6.tar.bz2
tree-eh.c (tree_could_trap_p): Allow non-constant floating point trapping divide.
2005-04-02 David Edelsohn <edelsohn@gnu.org> Daniel Jacobowitz <dan@codesourcery.com> * tree-eh.c (tree_could_trap_p): Allow non-constant floating point trapping divide. * rtlanal.c (may_trap_p): Same. Co-Authored-By: Daniel Jacobowitz <dan@codesourcery.com> From-SVN: r97582
Diffstat (limited to 'gcc/tree-eh.c')
-rw-r--r--gcc/tree-eh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-eh.c b/gcc/tree-eh.c
index ab945ff..3dbcfa8 100644
--- a/gcc/tree-eh.c
+++ b/gcc/tree-eh.c
@@ -1787,8 +1787,8 @@ tree_could_trap_p (tree expr)
case RDIV_EXPR:
if (honor_snans || honor_trapv)
return true;
- if (fp_operation && flag_trapping_math)
- return true;
+ if (fp_operation)
+ return flag_trapping_math;
t = TREE_OPERAND (expr, 1);
if (!TREE_CONSTANT (t) || integer_zerop (t))
return true;