aboutsummaryrefslogtreecommitdiff
path: root/gcc/c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c')
-rw-r--r--gcc/c/ChangeLog7
-rw-r--r--gcc/c/c-parser.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog
index 72b5a4d..108c0d3 100644
--- a/gcc/c/ChangeLog
+++ b/gcc/c/ChangeLog
@@ -1,3 +1,10 @@
+2012-08-24 Jakub Jelinek <jakub@redhat.com>
+
+ PR c/54355
+ * c-decl.c (c_parser_label): Pass true as nested and fix up comments
+ for nested and empty_ok arguments in the call to
+ c_parser_declaration_or_fndef.
+
2012-08-17 Jakub Jelinek <jakub@redhat.com>
* c-tree.h (c_last_sizeof_arg): Declare.
diff --git a/gcc/c/c-parser.c b/gcc/c/c-parser.c
index 7536dc5..bea9791 100644
--- a/gcc/c/c-parser.c
+++ b/gcc/c/c-parser.c
@@ -4327,7 +4327,7 @@ c_parser_label (c_parser *parser)
"a declaration is not a statement");
c_parser_declaration_or_fndef (parser, /*fndef_ok*/ false,
/*static_assert_ok*/ true,
- /*nested*/ true, /*empty_ok*/ false,
+ /*empty_ok*/ true, /*nested*/ true,
/*start_attr_ok*/ true, NULL);
}
}