diff options
author | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 1996-08-05 20:53:26 +0000 |
---|---|---|
committer | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 1996-08-05 20:53:26 +0000 |
commit | f85105be7bdbec5479840dfca1f235b6668276f6 (patch) | |
tree | 1fdcd5549d5c482b530ff7e126d481dcb755cf4b /gcc/stor-layout.c | |
parent | 2f33cfb8e206faa74738c8d72f758ced651ea2f0 (diff) | |
download | gcc-f85105be7bdbec5479840dfca1f235b6668276f6.tar.gz |
(layout_record): Correct overflow test for 0 sized fields.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12593 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r-- | gcc/stor-layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 8a23489b3e0..5aca4838419 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -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 |