From 0c9cabe7d4eec4b2837f89dc5e789be0908ee642 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sat, 16 Dec 1995 08:30:58 -0500 Subject: [PATCH] (fold): Don't record overflow when negating unsigned constants. From-SVN: r10779 --- 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 cf57a37..ba459c0 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -3549,7 +3549,7 @@ fold (expr) TREE_TYPE (t) = type; TREE_OVERFLOW (t) = (TREE_OVERFLOW (arg0) - | force_fit_type (t, overflow)); + | force_fit_type (t, overflow && !TREE_UNSIGNED (type))); TREE_CONSTANT_OVERFLOW (t) = TREE_OVERFLOW (t) | TREE_CONSTANT_OVERFLOW (arg0); } -- 2.7.4