diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-08-29 22:25:19 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-08-29 22:25:19 +0000 |
commit | ecc82929a44b5a046c89ba1361c354f1466b85e4 (patch) | |
tree | 2b7d9919b762379cce787bd3a1941eca17aa5e19 /gcc/expr.c | |
parent | 82702f8a0cb499f36b757a4feb99fff60009edc4 (diff) | |
download | gcc-ecc82929a44b5a046c89ba1361c354f1466b85e4.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70929 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/expr.c')
-rw-r--r-- | gcc/expr.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/gcc/expr.c b/gcc/expr.c index 52cdfee3938..94c453dec84 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. */ |