diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1996-11-07 12:39:55 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1996-11-07 12:39:55 +0000 |
commit | 56de7bd1a94d672486503a99a5a43d0e0b9af991 (patch) | |
tree | d705b12e0aa8a9a3797a6ae922b5e7d98ebf3df5 /gcc/stor-layout.c | |
parent | a12eb96b3be2a0d9fa70ee782e5fc695ea38cc24 (diff) | |
download | gcc-56de7bd1a94d672486503a99a5a43d0e0b9af991.tar.gz |
(layout_record): Treat constant size as variable if it overflows.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13105 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/stor-layout.c')
-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 61768f84263..b0b64d2d0cd 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. */ |