Commit f6999fed by Richard Kenner

(myparm): Handle attributes.

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