From 996c63d336382840179a82483595e6cb12b8819f Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Wed, 29 Dec 1993 18:04:48 -0500 Subject: [PATCH] (fold, case PLUS_EXPR): Add a missing test of flag_fast_math. From-SVN: r6341 --- gcc/fold-const.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 82e63a70f0c..c2fbe87a755 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: