From 6a0bec2ce1817d8cb78a4a9c1729855382d412cd Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 30 Jun 2004 17:38:38 -0700 Subject: 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 --- gcc/stor-layout.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'gcc/stor-layout.c') 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; } -- cgit v1.1