2003-11-24 Eric Christopher <echristo@redhat.com>
authorechristo <echristo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 24 Nov 2003 20:12:06 +0000 (20:12 +0000)
committerechristo <echristo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 24 Nov 2003 20:12:06 +0000 (20:12 +0000)
commitd9cf68bf7f8e2752432f76987ccee33de4d3ff96
tree4b0dd5bf92fd53863d57bb29f006b3c57aff1bf0
parentef8a1eb2c7a0c9f0209f79f1938f01d7fa966eb4
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73887 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-decl.c
gcc/c-parse.in
gcc/c-semantics.c
gcc/c-tree.h