OSDN Git Service

* c-parse.in (stmts_and_decls): Make label at end of compound
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Jan 2004 23:03:58 +0000 (23:03 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Jan 2004 23:03:58 +0000 (23:03 +0000)
commit76f8735ad14991c776a9db175730a7b2e7af54fe
treefb2f0477c443e1bcc4e0b1c4601f9fca76be4ac1
parent69435b7ff5e5a474296bf13e72507f00d97a6eb9
* c-parse.in (stmts_and_decls): Make label at end of compound
statement a hard error.

testsuite:
* gcc.dg/label-compound-stmt-1.c: New test.
* gcc.c-torture/compile/950922-1.c,
gcc.c-torture/compile/20000211-3.c,
gcc.c-torture/compile/20000518-1.c,
gcc.c-torture/compile/20021108-1.c: Avoid labels at and of
compound statements.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75891 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-parse.in
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20000211-3.c
gcc/testsuite/gcc.c-torture/compile/20000518-1.c
gcc/testsuite/gcc.c-torture/compile/20021108-1.c
gcc/testsuite/gcc.c-torture/compile/950922-1.c
gcc/testsuite/gcc.dg/label-compound-stmt-1.c [new file with mode: 0644]