mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-18 08:54:02 +08:00
(layout_record): Correct overflow test for 0 sized fields.
From-SVN: r12593
This commit is contained in:
parent
3facb80fea
commit
a5049cf050
@ -511,7 +511,7 @@ layout_record (rec)
|
||||
/* Do nothing. */;
|
||||
else if (TREE_CODE (dsize) == INTEGER_CST
|
||||
&& TREE_INT_CST_HIGH (dsize) == 0
|
||||
&& TREE_INT_CST_LOW (dsize) + const_size > const_size)
|
||||
&& TREE_INT_CST_LOW (dsize) + const_size >= const_size)
|
||||
/* Use const_size if there's no overflow. */
|
||||
const_size += TREE_INT_CST_LOW (dsize);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user