diff options
Diffstat (limited to 'gcc/c-parse.y')
-rw-r--r-- | gcc/c-parse.y | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/c-parse.y b/gcc/c-parse.y index aa5a5b4..1d6064c 100644 --- a/gcc/c-parse.y +++ b/gcc/c-parse.y @@ -2019,12 +2019,15 @@ label: CASE expr_no_commas ':' error_with_decl (duplicate, "this is the first default label"); } position_after_white_space (); } - | identifier ':' + | identifier ':' maybe_attribute { tree label = define_label (input_filename, lineno, $1); stmt_count++; emit_nop (); if (label) - expand_label (label); + { + expand_label (label); + decl_attributes (label, $3, NULL_TREE); + } position_after_white_space (); } ; |