diff options
author | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-09-26 18:13:28 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-09-26 18:13:28 +0000 |
commit | d43163b742fbb74f35c006c99c364c52c6803561 (patch) | |
tree | 911a253292042838d20964857fcf09f3351ce008 /gcc/stor-layout.c | |
parent | f0305a2b791f1cd4c563e48618e765f236180282 (diff) | |
download | gcc-d43163b742fbb74f35c006c99c364c52c6803561.tar.gz |
function.h (struct function): Add x_dont_save_pending_sizes_p.
* function.h (struct function): Add x_dont_save_pending_sizes_p.
* stor-layout.c (variable_size): Don't add sizes to the pending
sizes list if x_dont_save_pending_sizes_p is set.
From-SVN: r29668
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r-- | gcc/stor-layout.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index dc429263945..1986074c754 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -112,6 +112,10 @@ variable_size (size) 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 if (current_function && current_function->x_dont_save_pending_sizes_p) + /* The front-end doesn't want us to keep a list of the expressions + that determine sizes for variable size objects. */ + ; else pending_sizes = tree_cons (NULL_TREE, size, pending_sizes); |