aboutsummaryrefslogtreecommitdiff
path: root/gcc/stor-layout.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2004-06-30 17:38:38 -0700
committerRichard Henderson <rth@gcc.gnu.org>2004-06-30 17:38:38 -0700
commit6a0bec2ce1817d8cb78a4a9c1729855382d412cd (patch)
tree11be711913612228df3a6979d2909f5aa10224d3 /gcc/stor-layout.c
parent1730c8f5a7e5dfdbb208ce8ae60b7630d1bb5bc4 (diff)
downloadgcc-6a0bec2ce1817d8cb78a4a9c1729855382d412cd.zip
gcc-6a0bec2ce1817d8cb78a4a9c1729855382d412cd.tar.gz
gcc-6a0bec2ce1817d8cb78a4a9c1729855382d412cd.tar.bz2
tree.h (immediate_size_expand): Delete.
* tree.h (immediate_size_expand): Delete. * stor-layout.c (immediate_size_expand): Delete. (variable_size): Don't look at it. * c-decl.c (push_parm_decl): Don't frob immediate_size_expand. (start_function): Likewise. * cfgexpand.c (construct_exit_block): Likewise. * function.c (init_function_start, expand_function_end): Likewise. * tree-optimize.c (tree_rest_of_compilation): Likewise. cp/ * decl.c (start_preparsed_function): Don't set immediate_size_expand. * method.c (use_thunk): Likewise. fortran/ * trans-decl.c (gfc_generate_function_code): Don't set immediate_size_expand. (gfc_generate_constructors): Likewise. From-SVN: r83946
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r--gcc/stor-layout.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
index b2ef41d..94bc46f 100644
--- a/gcc/stor-layout.c
+++ b/gcc/stor-layout.c
@@ -73,11 +73,6 @@ extern void debug_rli (record_layout_info);
static GTY(()) tree pending_sizes;
-/* Nonzero means cannot safely call expand_expr now,
- so put variable sizes onto `pending_sizes' instead. */
-
-int immediate_size_expand;
-
/* Show that REFERENCE_TYPES are internal and should be Pmode. Called only
by front end. */
@@ -154,7 +149,7 @@ variable_size (tree size)
if (TREE_CODE (save) == SAVE_EXPR)
SAVE_EXPR_PERSISTENT_P (save) = 1;
- if (!immediate_size_expand && cfun && cfun->x_dont_save_pending_sizes_p)
+ if (cfun && cfun->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. Trust it. */
return size;
@@ -169,10 +164,7 @@ variable_size (tree size)
return size_one_node;
}
- if (immediate_size_expand)
- expand_expr (save, const0_rtx, VOIDmode, 0);
- else
- put_pending_size (save);
+ put_pending_size (save);
return size;
}