aboutsummaryrefslogtreecommitdiff
path: root/gcc/stmt.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/stmt.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/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 defbb70..54c93be 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. */