diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-12-16 08:30:58 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-12-16 08:30:58 -0500 |
commit | 0c9cabe7d4eec4b2837f89dc5e789be0908ee642 (patch) | |
tree | f87e41e6cf558cea886d304e7440149fe10b1638 | |
parent | e08e71376647aff1d09b6187277830d278a765ac (diff) | |
download | gcc-0c9cabe7d4eec4b2837f89dc5e789be0908ee642.zip gcc-0c9cabe7d4eec4b2837f89dc5e789be0908ee642.tar.gz gcc-0c9cabe7d4eec4b2837f89dc5e789be0908ee642.tar.bz2 |
(fold): Don't record overflow when negating unsigned constants.
From-SVN: r10779
-rw-r--r-- | gcc/fold-const.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |