aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1993-12-29 18:04:48 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1993-12-29 18:04:48 -0500
commit996c63d336382840179a82483595e6cb12b8819f (patch)
tree1ef116eb18d91493452978d934f6671ebda67a8c
parentc407b802da69a55de221f446243e2de9ed6f4203 (diff)
downloadgcc-996c63d336382840179a82483595e6cb12b8819f.zip
gcc-996c63d336382840179a82483595e6cb12b8819f.tar.gz
gcc-996c63d336382840179a82483595e6cb12b8819f.tar.bz2
(fold, case PLUS_EXPR): Add a missing test of flag_fast_math.
From-SVN: r6341
-rw-r--r--gcc/fold-const.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index 82e63a7..c2fbe87 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -3622,7 +3622,8 @@ fold (expr)
TREE_OPERAND (arg0, 1)));
}
/* In IEEE floating point, x+0 may not equal x. */
- else if (TARGET_FLOAT_FORMAT != IEEE_FLOAT_FORMAT
+ else if ((TARGET_FLOAT_FORMAT != IEEE_FLOAT_FORMAT
+ || flag_fast_math)
&& real_zerop (arg1))
return non_lvalue (convert (type, arg0));
associate: