mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-26 21:51:12 +08:00
(layout_record): Treat constant size as variable if it overflows.
From-SVN: r13105
This commit is contained in:
parent
5e645e50fb
commit
1d58084ae0
@ -507,6 +507,7 @@ layout_record (rec)
|
||||
if (dsize == 0)
|
||||
/* Do nothing. */;
|
||||
else if (TREE_CODE (dsize) == INTEGER_CST
|
||||
&& ! TREE_CONSTANT_OVERFLOW (dsize)
|
||||
&& TREE_INT_CST_HIGH (dsize) == 0
|
||||
&& TREE_INT_CST_LOW (dsize) + const_size >= const_size)
|
||||
/* Use const_size if there's no overflow. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user