]> gcc.gnu.org Git - gcc.git/commit
re PR c/13014 (if shortcut misses required diagnostics)
authorEric Christopher <echristo@gcc.gnu.org>
Mon, 24 Nov 2003 20:12:06 +0000 (20:12 +0000)
committerEric Christopher <echristo@gcc.gnu.org>
Mon, 24 Nov 2003 20:12:06 +0000 (20:12 +0000)
commite13e48e70711cf7328c91eedf04ad4771dc9a002
tree4b0dd5bf92fd53863d57bb29f006b3c57aff1bf0
parent8273c02d611966557eff0bedb92f841e854738b1
re PR c/13014 (if shortcut misses required diagnostics)

2003-11-24  Eric Christopher  <echristo@redhat.com>

PR C/13014
* c-decl.c (c_in_iteration_stmt, c_in_case_stmt): New.
(start_function): Use.
(c_push_function_context): Ditto.
(c-pop_function_context): Ditto.
        (language_function): Move...
* c-tree.h: ... here. Add x_in_iteration_stmt, and
x_in_case_stmt.
* c-parse.in (do_stmt_start, select_or_iter_stmt, stmt): Use
c_in_iteration_stmt, c_in_case_stmt for parser state. Move
check for valid break or continue statment here...
* c-semantics.c (genrtl_break_stmt, genrtl_continue_stmt): From
here. Change original errors to abort.

From-SVN: r73887
gcc/ChangeLog
gcc/c-decl.c
gcc/c-parse.in
gcc/c-semantics.c
gcc/c-tree.h
This page took 0.064412 seconds and 5 git commands to generate.