projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db27aee
)
(const_binop): When evaluating a shift, ignore
author
Richard Stallman
<rms@gnu.org>
Thu, 11 Mar 1993 08:18:16 +0000
(08:18 +0000)
committer
Richard Stallman
<rms@gnu.org>
Thu, 11 Mar 1993 08:18:16 +0000
(08:18 +0000)
overflows generated by force_fit_type.
From-SVN: r3700
gcc/fold-const.c
patch
|
blob
|
history
diff --git
a/gcc/fold-const.c
b/gcc/fold-const.c
index fe9b72dd33c382eccf739b894ebdd0a709907f80..ec04f44ae65a15aa27731cb0793f226f4a5e921a 100644
(file)
--- a/
gcc/fold-const.c
+++ b/
gcc/fold-const.c
@@
-1095,7
+1095,12
@@
const_binop (code, arg1, arg2, notrunc)
&low, &hi,
!uns);
t = build_int_2 (low, hi);
- break;
+ TREE_TYPE (t) = TREE_TYPE (arg1);
+ if (!notrunc)
+ force_fit_type (t, 0);
+ TREE_CONSTANT_OVERFLOW (t)
+ = TREE_CONSTANT_OVERFLOW (arg1) | TREE_CONSTANT_OVERFLOW (arg2);
+ return t;
case RROTATE_EXPR:
int2l = - int2l;