c-common.h (genrtl_clear_out_block): Remove.
authorMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 12 Sep 2000 14:29:45 +0000 (14:29 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 12 Sep 2000 14:29:45 +0000 (14:29 +0000)
* 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

index 991311ef1171623c33148d1ab9cb573cac46ec83..f1b54c4cfd2eef29408fd01fd30ac8663c2e3911 100644 (file)
@@ -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));