(const_binop): Don't pass OVERFLOW to force_fit_type if type is
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 15 May 1995 23:01:31 +0000 (19:01 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 15 May 1995 23:01:31 +0000 (19:01 -0400)
unsigned.

From-SVN: r9694

gcc/fold-const.c

index 644807d..43ab364 100644 (file)
@@ -1133,7 +1133,7 @@ const_binop (code, arg1, arg2, notrunc)
     got_it:
       TREE_TYPE (t) = TREE_TYPE (arg1);
       TREE_OVERFLOW (t)
-       = ((notrunc ? !uns && overflow : force_fit_type (t, overflow))
+       = ((notrunc ? !uns && overflow : force_fit_type (t, overflow && !uns))
           | TREE_OVERFLOW (arg1)
           | TREE_OVERFLOW (arg2));
       TREE_CONSTANT_OVERFLOW (t) = (TREE_OVERFLOW (t)