aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2003-08-29 15:25:19 -0700
committerRichard Henderson <rth@gcc.gnu.org>2003-08-29 15:25:19 -0700
commit3a70d621853e616201bac254b8e3900b63b6fcf4 (patch)
tree2b7d9919b762379cce787bd3a1941eca17aa5e19 /gcc/expr.c
parent23b6da1098061c61f47bf0edd2fde594b42e8134 (diff)
downloadgcc-3a70d621853e616201bac254b8e3900b63b6fcf4.zip
gcc-3a70d621853e616201bac254b8e3900b63b6fcf4.tar.gz
gcc-3a70d621853e616201bac254b8e3900b63b6fcf4.tar.bz2
function.c (allocate_struct_function): New, split out of ...
* function.c (allocate_struct_function): New, split out of ... (prepare_function_start, init_function_start): ... here. * expr.c (init_expr): Use ggc_alloc_cleared. * stmt.c (init_stmt_for_function): Likewise. * tree.h (allocate_struct_function): Declare. From-SVN: r70929
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 52cdfee..94c453d 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -338,15 +338,7 @@ init_expr_once (void)
void
init_expr (void)
{
- cfun->expr = ggc_alloc (sizeof (struct expr_status));
-
- pending_chain = 0;
- pending_stack_adjust = 0;
- stack_pointer_delta = 0;
- inhibit_defer_pop = 0;
- saveregs_value = 0;
- apply_args_value = 0;
- forced_labels = 0;
+ cfun->expr = ggc_alloc_cleared (sizeof (struct expr_status));
}
/* Small sanity check that the queue is empty at the end of a function. */