projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3facb80
)
(layout_record): Correct overflow test for 0 sized fields.
author
Doug Evans
<dje@gnu.org>
Mon, 5 Aug 1996 20:53:26 +0000
(20:53 +0000)
committer
Doug Evans
<dje@gnu.org>
Mon, 5 Aug 1996 20:53:26 +0000
(20:53 +0000)
From-SVN: r12593
gcc/stor-layout.c
patch
|
blob
|
history
diff --git
a/gcc/stor-layout.c
b/gcc/stor-layout.c
index 8a23489b3e012201631b7a66058b4cd52785e9c5..5aca48384199113bfbcfa4b4e5011cb2ff199d34 100644
(file)
--- 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