diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1996-11-15 06:37:48 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1996-11-15 06:37:48 -0500 |
commit | 4e644c93e06fd46a54895c0479075d9f7fa4a51c (patch) | |
tree | 0e409ee106755ec185aaf3ca1afe31f5ebb1b48b /gcc/fold-const.c | |
parent | 9a666dda814d39005cddd4b257fa4f43684a8e77 (diff) | |
download | gcc-4e644c93e06fd46a54895c0479075d9f7fa4a51c.zip gcc-4e644c93e06fd46a54895c0479075d9f7fa4a51c.tar.gz gcc-4e644c93e06fd46a54895c0479075d9f7fa4a51c.tar.bz2 |
(range_binop): Set SNG1 to zero if ARG1 is a not a lower or upper
bound.
From-SVN: r13161
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 1ddfd47..0d91894 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -2669,7 +2669,7 @@ range_binop (code, type, arg0, upper0_p, arg1, upper1_p) for neither. Then compute our result treating them as never equal and comparing bounds to non-bounds as above. */ sgn0 = arg0 != 0 ? 0 : (upper0_p ? 1 : -1); - sgn1 = arg1 != 0 ? 1 : (upper1_p ? 1 : -1); + sgn1 = arg1 != 0 ? 0 : (upper1_p ? 1 : -1); switch (code) { case EQ_EXPR: case NE_EXPR: |