projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f16fe39
)
(variable_size): When evaluating sizes of variable types, do so just
author
Richard Kenner
<kenner@gcc.gnu.org>
Sat, 27 Mar 1993 18:41:31 +0000
(13:41 -0500)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Sat, 27 Mar 1993 18:41:31 +0000
(13:41 -0500)
for side-effects (the SAVE_EXPRs).
From-SVN: r3895
gcc/stor-layout.c
patch
|
blob
|
history
diff --git
a/gcc/stor-layout.c
b/gcc/stor-layout.c
index 1224348a0344ce246b825acd61360e9c5f4fd326..7db340c7ce76c2069ff668bad6d10f03e3761a9e 100644
(file)
--- a/
gcc/stor-layout.c
+++ b/
gcc/stor-layout.c
@@
-90,8
+90,10
@@
variable_size (size)
}
if (immediate_size_expand)
- /* NULL_RTX is not defined; neither is the rtx type. */
- expand_expr (size, NULL_PTR, VOIDmode, 0);
+ /* NULL_RTX is not defined; neither is the rtx type.
+ Also, we would like to pass const0_rtx here, but don't have it. */
+ expand_expr (size, expand_expr (integer_zero_node, NULL_PTR, VOIDmode, 0),
+ VOIDmode, 0);
else
pending_sizes = tree_cons (NULL_TREE, size, pending_sizes);