diff options
author | Alasdair Baird <alasdair@wildcat.demon.co.uk> | 1999-10-19 07:26:59 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1999-10-19 01:26:59 -0600 |
commit | 2af3e5fb9557eefd4dcc31ae33b4fc31fbbd5670 (patch) | |
tree | a133f41dd7a9239c9de2653b609f31a4997bf358 /gcc/fold-const.c | |
parent | b61a6c8113b3a47fcebcf366c1d5221ceda2ba1a (diff) | |
download | gcc-2af3e5fb9557eefd4dcc31ae33b4fc31fbbd5670.zip gcc-2af3e5fb9557eefd4dcc31ae33b4fc31fbbd5670.tar.gz gcc-2af3e5fb9557eefd4dcc31ae33b4fc31fbbd5670.tar.bz2 |
* fold-const.c (fold): Fix thinko in x+(-0) -> x transformation.
From-SVN: r30077
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index f055d23..24cc752 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -4871,7 +4871,8 @@ fold (expr) && real_zerop (arg1)) return non_lvalue (convert (type, arg0)); /* x+(-0) equals x, even for IEEE. */ - else if (REAL_VALUE_MINUS_ZERO (TREE_REAL_CST (arg1))) + else if (TREE_CODE (arg1) == REAL_CST + && REAL_VALUE_MINUS_ZERO (TREE_REAL_CST (arg1))) return non_lvalue (convert (type, arg0)); bit_rotate: |