From 9430cdca4964b309f15a3947d23740241ef289b5 Mon Sep 17 00:00:00 2001 From: kenner Date: Mon, 15 May 1995 23:01:31 +0000 Subject: [PATCH] (const_binop): Don't pass OVERFLOW to force_fit_type if type is unsigned. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9694 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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 644807d..43ab364 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) -- 2.7.4