diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1996-11-07 07:39:55 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1996-11-07 07:39:55 -0500 |
commit | 1d58084ae01fd2f03fb2126ae5fcfaa3865fa701 (patch) | |
tree | d705b12e0aa8a9a3797a6ae922b5e7d98ebf3df5 /gcc | |
parent | 5e645e50fb7387fec097496867783b53b36a1a0e (diff) | |
download | gcc-1d58084ae01fd2f03fb2126ae5fcfaa3865fa701.zip gcc-1d58084ae01fd2f03fb2126ae5fcfaa3865fa701.tar.gz gcc-1d58084ae01fd2f03fb2126ae5fcfaa3865fa701.tar.bz2 |
(layout_record): Treat constant size as variable if it overflows.
From-SVN: r13105
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/stor-layout.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 61768f8..b0b64d2 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -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. */ |