From: Richard Kenner Date: Mon, 15 May 1995 23:01:31 +0000 (-0400) Subject: (const_binop): Don't pass OVERFLOW to force_fit_type if type is X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7cd5f0b28f810f0f5b81f9dc5b17cb6cfd838f37;p=gcc.git (const_binop): Don't pass OVERFLOW to force_fit_type if type is unsigned. From-SVN: r9694 --- diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 644807d0b43..43ab364780e 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -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)