aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-semantics.c
diff options
context:
space:
mode:
authorMark Mitchell <mmitchel@gcc.gnu.org>2000-09-12 14:29:45 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2000-09-12 14:29:45 +0000
commit57939159aa9c2799048f2655366c0182fe8f713e (patch)
tree26b7d49ef9a27096f5cfeeb6e2116afde0fab1d2 /gcc/c-semantics.c
parent3af556f74d0d938e1ad240fe44bedf47e97ce4f5 (diff)
downloadgcc-57939159aa9c2799048f2655366c0182fe8f713e.zip
gcc-57939159aa9c2799048f2655366c0182fe8f713e.tar.gz
gcc-57939159aa9c2799048f2655366c0182fe8f713e.tar.bz2
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
Diffstat (limited to 'gcc/c-semantics.c')
-rw-r--r--gcc/c-semantics.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/gcc/c-semantics.c b/gcc/c-semantics.c
index 991311e..f1b54c4 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));