From ecc82929a44b5a046c89ba1361c354f1466b85e4 Mon Sep 17 00:00:00 2001 From: rth Date: Fri, 29 Aug 2003 22:25:19 +0000 Subject: * 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 --- gcc/stmt.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'gcc/stmt.c') diff --git a/gcc/stmt.c b/gcc/stmt.c index defbb70df21..54c93be7909 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -433,25 +433,7 @@ using_eh_for_cleanups (void) void init_stmt_for_function (void) { - cfun->stmt =ggc_alloc (sizeof (struct stmt_status)); - - /* We are not currently within any block, conditional, loop or case. */ - block_stack = 0; - stack_block_stack = 0; - loop_stack = 0; - case_stack = 0; - cond_stack = 0; - nesting_stack = 0; - nesting_depth = 0; - - current_block_start_count = 0; - - /* No gotos have been expanded yet. */ - goto_fixup_chain = 0; - - /* We are not processing a ({...}) grouping. */ - expr_stmts_for_value = 0; - clear_last_expr (); + cfun->stmt = ggc_alloc_cleared (sizeof (struct stmt_status)); } /* Record the current file and line. Called from emit_line_note. */ -- cgit v1.2.1