From 97936f31db68a6bb67a04a026f083887d42bb1a8 Mon Sep 17 00:00:00 2001 From: kenner Date: Fri, 12 May 1995 19:53:36 +0000 Subject: [PATCH] (myparm): Handle attributes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9657 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/c-parse.in | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/gcc/c-parse.in b/gcc/c-parse.in index 55c350d4912..25f50f751d3 100644 --- a/gcc/c-parse.in +++ b/gcc/c-parse.in @@ -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: -- 2.11.0