diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-05-12 11:08:56 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-05-12 11:08:56 +0000 |
commit | 7a0d8a4d02f8f40b21e9cdb7ce38d8ef6c15235d (patch) | |
tree | d21716339ed02e9511698ee21aa29dbde6e2719e /gcc/c-parse.in | |
parent | f2a975c15e00fde5bb85956c7bda2387ad33dbb4 (diff) | |
download | gcc-7a0d8a4d02f8f40b21e9cdb7ce38d8ef6c15235d.tar.gz |
Adjust number of shift/reduce conflicts.
(parm): Support attributes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9638 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-parse.in')
-rw-r--r-- | gcc/c-parse.in | 35 |
1 files changed, 23 insertions, 12 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in index b4eea8ec229..55c350d4912 100644 --- a/gcc/c-parse.in +++ b/gcc/c-parse.in @@ -27,10 +27,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ written by AT&T, but I have never seen it. */ ifobjc -%expect 42 +%expect 46 end ifobjc ifc -%expect 30 +%expect 34 /* These are the 23 conflicts you should get in parse.output; the state numbers may vary if minor changes in the grammar are made. @@ -2118,16 +2118,27 @@ parms: /* A single parameter declaration or parameter type name, as found in a parmlist. */ parm: - typed_declspecs parm_declarator - { $$ = build_tree_list ($1, $2) ; } - | typed_declspecs notype_declarator - { $$ = build_tree_list ($1, $2) ; } - | typed_declspecs absdcl - { $$ = build_tree_list ($1, $2); } - | declmods notype_declarator - { $$ = build_tree_list ($1, $2) ; } - | declmods absdcl - { $$ = build_tree_list ($1, $2); } + typed_declspecs parm_declarator maybe_attribute + { $$ = build_tree_list (build_tree_list ($1, $2), + build_tree_list (prefix_attributes, + $3)); } + | typed_declspecs notype_declarator maybe_attribute + { $$ = build_tree_list (build_tree_list ($1, $2), + build_tree_list (prefix_attributes, + $3)); } + | typed_declspecs absdcl maybe_attribute + { $$ = build_tree_list (build_tree_list ($1, $2), + build_tree_list (prefix_attributes, + $3)); } + | declmods notype_declarator maybe_attribute + { $$ = build_tree_list (build_tree_list ($1, $2), + build_tree_list (prefix_attributes, + $3)); } + + | declmods absdcl maybe_attribute + { $$ = build_tree_list (build_tree_list ($1, $2), + build_tree_list (prefix_attributes, + $3)); } ; /* This is used in a function definition |