From 57939159aa9c2799048f2655366c0182fe8f713e Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Tue, 12 Sep 2000 14:29:45 +0000 Subject: [PATCH] c-common.h (genrtl_clear_out_block): Remove. * c-common.h (genrtl_clear_out_block): Remove. * c-semantics.c (genrtl_clear_out_block): Remove. (genrtl_while_stmt): Don't call it. (genrtl_for_stmt): Likewise. From-SVN: r36360 --- gcc/c-semantics.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/gcc/c-semantics.c b/gcc/c-semantics.c index 991311ef117..f1b54c4cfd2 100644 --- a/gcc/c-semantics.c +++ b/gcc/c-semantics.c @@ -267,18 +267,6 @@ genrtl_do_pushlevel () clear_last_expr (); } -/* Helper for generating the RTL. */ - -void -genrtl_clear_out_block () -{ - /* If COND wasn't a declaration, clear out the - block we made for it and start a new one here so the - optimization in expand_end_loop will work. */ - if (getdecls () == NULL_TREE) - genrtl_do_pushlevel (); -} - /* Generate the RTL for DESTINATION, which is a GOTO_STMT. */ void @@ -398,7 +386,7 @@ genrtl_while_stmt (t) cond = expand_cond (WHILE_COND (t)); emit_line_note (input_filename, lineno); expand_exit_loop_if_false (0, cond); - genrtl_clear_out_block (); + genrtl_do_pushlevel (); expand_stmt (WHILE_BODY (t)); @@ -475,7 +463,7 @@ genrtl_for_stmt (t) emit_line_note (input_filename, lineno); if (cond) expand_exit_loop_if_false (0, cond); - genrtl_clear_out_block (); + genrtl_do_pushlevel (); tmp = FOR_EXPR (t); expand_stmt (FOR_BODY (t)); -- 2.30.2