From 4e644c93e06fd46a54895c0479075d9f7fa4a51c Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Fri, 15 Nov 1996 06:37:48 -0500 Subject: [PATCH] (range_binop): Set SNG1 to zero if ARG1 is a not a lower or upper bound. From-SVN: r13161 --- gcc/fold-const.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 1ddfd478208..0d91894285e 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: -- 2.30.2