Commit 0d19c2a1 by Jeffrey A Law Committed by Jeff Law

fold-const.c (fold): Fix thinko when optimizing comparisons against -0.0.

        * fold-const.c (fold): Fix thinko when optimizing comparisons
        against -0.0.

From-SVN: r30282
parent f6e8b583
Sat Oct 30 22:19:26 1999 Jeffrey A Law (law@cygnus.com)
* fold-const.c (fold): Fix thinko when optimizing comparisons
against -0.0.
Sat Oct 30 21:32:17 1999 David Starner <dstarner98@aasaa.ofe.org>
* gcc.texi (Passes): Update front-end files to their current
......
......@@ -5751,7 +5751,8 @@ fold (expr)
REAL_VALUE_NEGATE (TREE_REAL_CST (arg1)))));
/* IEEE doesn't distinguish +0 and -0 in comparisons. */
/* a CMP (-0) -> a CMP 0 */
if (REAL_VALUE_MINUS_ZERO (TREE_REAL_CST (arg1)))
if (TREE_CODE (arg1) == REAL_CST
&& REAL_VALUE_MINUS_ZERO (TREE_REAL_CST (arg1)))
return fold (build (code, type, arg0,
build_real (TREE_TYPE (arg1), dconst0)));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment