Commit f6999fed by Richard Kenner

(myparm): Handle attributes.

From-SVN: r9657
parent 5eb9a4c3
...@@ -2613,12 +2613,21 @@ myparms: ...@@ -2613,12 +2613,21 @@ myparms:
as found in a parmlist. DOES NOT ALLOW AN INITIALIZER OR ASMSPEC */ as found in a parmlist. DOES NOT ALLOW AN INITIALIZER OR ASMSPEC */
myparm: myparm:
parm_declarator parm_declarator maybe_attribute
{ $$ = build_tree_list (current_declspecs, $1) ; } { $$ = build_tree_list (build_tree_list (current_declspecs,
| notype_declarator $1),
{ $$ = build_tree_list (current_declspecs, $1) ; } build_tree_list (prefix_attributes,
| absdcl $2)); }
{ $$ = build_tree_list (current_declspecs, $1) ; } | notype_declarator maybe_attribute
{ $$ = build_tree_list (build_tree_list (current_declspecs,
$1),
build_tree_list (prefix_attributes,
$2)); }
| absdcl maybe_attribute
{ $$ = build_tree_list (build_tree_list (current_declspecs,
$1),
build_tree_list (prefix_attributes,
$2)); }
; ;
optparmlist: optparmlist:
......
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