projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e645e5
)
(layout_record): Treat constant size as variable if it overflows.
author
Richard Kenner
<kenner@gcc.gnu.org>
Thu, 7 Nov 1996 12:39:55 +0000
(07:39 -0500)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Thu, 7 Nov 1996 12:39:55 +0000
(07:39 -0500)
From-SVN: r13105
gcc/stor-layout.c
patch
|
blob
|
history
diff --git
a/gcc/stor-layout.c
b/gcc/stor-layout.c
index 61768f842639212ce322084afe54ba3199cdf426..b0b64d2d0cd858db34792efeac6b250f187f21cb 100644
(file)
--- 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. */