]> gcc.gnu.org Git - gcc.git/commit
extend.texi (Attribute Syntax): Document that C++ labels on empty statements can...
authorIan Lance Taylor <iant@google.com>
Sun, 7 Jun 2009 06:39:04 +0000 (06:39 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Sun, 7 Jun 2009 06:39:04 +0000 (06:39 +0000)
commit5bca4e800bc5a61148a74c4656b274155275f9fc
treed6bdaa5091ac13eeb83382f918486bf5eb98b1f4
parent712b30cf6f380ea918f78d4ec208093df3566982
extend.texi (Attribute Syntax): Document that C++ labels on empty statements can now have attributes.

./: * doc/extend.texi (Attribute Syntax): Document that C++ labels on
empty statements can now have attributes.
cp/:
* parser.c (cp_parser_label_for_labeled_statement): Support
attribute on labels if immediately followed by semicolon.
* semantics.c (finish_label_stmt): Return new label.
* pt.c (tsubst_expr): Handle attributes for LABEL_EXPR.
testsuite/:
* gcc.dg/Wunused-label-1.c: New test case.
* g++.dg/warn/Wunused-label-1.C: New test case.
* g++.dg/warn/Wunused-label-2.C: New test case.
* g++.dg/warn/Wunused-label-3.C: New test case.

From-SVN: r148242
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wunused-label-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Wunused-label-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Wunused-label-3.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/Wunused-label-1.c [new file with mode: 0644]
This page took 0.06265 seconds and 5 git commands to generate.