projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88029ff
)
(const_binop): Don't call size_int if low < 0.
author
Richard Kenner
<kenner@gcc.gnu.org>
Fri, 7 Feb 1997 18:10:26 +0000
(13:10 -0500)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Fri, 7 Feb 1997 18:10:26 +0000
(13:10 -0500)
From-SVN: r13617
gcc/fold-const.c
patch
|
blob
|
history
diff --git
a/gcc/fold-const.c
b/gcc/fold-const.c
index e76d6b93caf812431e736fe505c74d335a8419d4..1b49128d1b1a7c7edbf7c8b48be9fb701aa9f905 100644
(file)
--- a/
gcc/fold-const.c
+++ b/
gcc/fold-const.c
@@
-1212,7
+1212,7
@@
const_binop (code, arg1, arg2, notrunc)
}
got_it:
if (TREE_TYPE (arg1) == sizetype && hi == 0
- && low <= TREE_INT_CST_LOW (TYPE_MAX_VALUE (sizetype))
+ && low
>= 0 && low
<= TREE_INT_CST_LOW (TYPE_MAX_VALUE (sizetype))
&& ! overflow
&& ! TREE_OVERFLOW (arg1) && ! TREE_OVERFLOW (arg2))
t = size_int (low);