diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-10-19 07:26:59 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-10-19 07:26:59 +0000 |
commit | c876efd4c124e0b9055dd1b44b841c85c4999c9f (patch) | |
tree | a133f41dd7a9239c9de2653b609f31a4997bf358 /gcc/fold-const.c | |
parent | 85087551eae1dc2e9b3bcf2b43259ca7ca8de378 (diff) | |
download | gcc-c876efd4c124e0b9055dd1b44b841c85c4999c9f.tar.gz |
* fold-const.c (fold): Fix thinko in x+(-0) -> x transformation.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30077 138bc75d-0d04-0410-961f-82ee72b054a4
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 f055d23a13d..24cc7529327 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: |