OSDN Git Service

./:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 7 Jun 2009 06:39:04 +0000 (06:39 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 7 Jun 2009 06:39:04 +0000 (06:39 +0000)
commite1c8f1c586d8879584089e0f35bae491164de9b8
treed6bdaa5091ac13eeb83382f918486bf5eb98b1f4
parentb633be6df2f4c62590ba87a05c103f07a249fd5c
./:
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148242 138bc75d-0d04-0410-961f-82ee72b054a4
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]