summaryrefslogtreecommitdiff
path: root/gcc/stmt.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-29 22:25:19 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-29 22:25:19 +0000
commitecc82929a44b5a046c89ba1361c354f1466b85e4 (patch)
tree2b7d9919b762379cce787bd3a1941eca17aa5e19 /gcc/stmt.c
parent82702f8a0cb499f36b757a4feb99fff60009edc4 (diff)
downloadgcc-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/stmt.c')
-rw-r--r--gcc/stmt.c20
1 files changed, 1 insertions, 19 deletions
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. */