Commit 06c6bfb1 by Richard Kenner

(maybe_attribute): Allow multiple __attribute__ clauses on a

declaration.

From-SVN: r6389
parent 9f7287cd
/* YACC parser for C syntax and for Objective C. -*-c-*- /* YACC parser for C syntax and for Objective C. -*-c-*-
Copyright (C) 1987, 1988, 1989, 1992, 1993 Free Software Foundation, Inc. Copyright (C) 1987, 88, 89, 92, 93, 1994 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -1052,8 +1052,8 @@ notype_initdcl: ...@@ -1052,8 +1052,8 @@ notype_initdcl:
maybe_attribute: maybe_attribute:
/* empty */ /* empty */
{ $$ = NULL_TREE; } { $$ = NULL_TREE; }
| ATTRIBUTE '(' '(' attribute_list ')' ')' | maybe_attribute ATTRIBUTE '(' '(' attribute_list ')' ')'
{ $$ = $4; } { $$ = chainon ($5, $1); }
; ;
attribute_list attribute_list
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment