mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-14 07:14:53 +08:00
(const_binop): Don't call size_int if low < 0.
From-SVN: r13617
This commit is contained in:
parent
88029ff857
commit
580ceef20e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user