projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e08e713
)
(fold): Don't record overflow when negating unsigned constants.
author
Richard Kenner
<kenner@gcc.gnu.org>
Sat, 16 Dec 1995 13:30:58 +0000
(08:30 -0500)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Sat, 16 Dec 1995 13:30:58 +0000
(08:30 -0500)
From-SVN: r10779
gcc/fold-const.c
patch
|
blob
|
history
diff --git
a/gcc/fold-const.c
b/gcc/fold-const.c
index
cf57a37
..
ba459c0
100644
(file)
--- 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);
}