Commit c7fdde6d by Per Bothner Committed by Richard Kenner

(FOR): Call note_level_for_for.

From-SVN: r10276
parent f3be9e3c
...@@ -55,7 +55,6 @@ extern int errno; ...@@ -55,7 +55,6 @@ extern int errno;
extern int end_of_file; extern int end_of_file;
extern int current_class_depth; extern int current_class_depth;
extern int flag_new_for_scope;
void yyerror (); void yyerror ();
...@@ -3246,10 +3245,11 @@ simple_stmt: ...@@ -3246,10 +3245,11 @@ simple_stmt:
finish_stmt (); } finish_stmt (); }
| FOR | FOR
{ emit_line_note (input_filename, lineno); { emit_line_note (input_filename, lineno);
if (flag_new_for_scope) if (flag_new_for_scope > 0)
{ {
/* Conditionalize .pushlevel */ /* Conditionalize .pushlevel */
pushlevel (0); pushlevel (0);
note_level_for_for ();
clear_last_expr (); clear_last_expr ();
push_momentary (); push_momentary ();
expand_start_bindings (0); expand_start_bindings (0);
...@@ -3272,7 +3272,7 @@ simple_stmt: ...@@ -3272,7 +3272,7 @@ simple_stmt:
if ($10) cplus_expand_expr_stmt ($10); if ($10) cplus_expand_expr_stmt ($10);
pop_momentary (); pop_momentary ();
expand_end_loop (); expand_end_loop ();
if (flag_new_for_scope) if (flag_new_for_scope > 0)
{ {
expand_end_bindings (getdecls (), kept_level_p (), 1); expand_end_bindings (getdecls (), kept_level_p (), 1);
poplevel (kept_level_p (), 1, 0); poplevel (kept_level_p (), 1, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment