diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-06-14 13:23:47 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-06-14 13:23:47 -0400 |
commit | 9fe9dd86e65d79ffa7b4a7d763803e4f71bdaee6 (patch) | |
tree | 9223bff9cbfcd04d77e4a8d758ad5d6800a1da3e | |
parent | 0763f3ab57d26a2b05ba36aecf044fb90c4c1327 (diff) | |
download | gcc-9fe9dd86e65d79ffa7b4a7d763803e4f71bdaee6.zip gcc-9fe9dd86e65d79ffa7b4a7d763803e4f71bdaee6.tar.gz gcc-9fe9dd86e65d79ffa7b4a7d763803e4f71bdaee6.tar.bz2 |
Revert most of last change.
From-SVN: r9946
-rw-r--r-- | gcc/c-parse.in | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in index ad6a343..5cef45b 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 53 +%expect 48 end ifobjc ifc -%expect 39 +%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. @@ -338,8 +338,9 @@ datadef: ; fndef: - typed_declspecs setspecs declarator maybe_attribute - { if (! start_function ($1, $3, prefix_attributes, $4, 0)) + typed_declspecs setspecs declarator + { if (! start_function ($1, $3, prefix_attributes, + NULL_TREE, 0)) YYERROR1; reinit_parse_for_function (); } xdecls @@ -355,8 +356,9 @@ fndef: prefix_attributes = TREE_PURPOSE (declspec_stack); declspec_stack = TREE_CHAIN (declspec_stack); resume_momentary ($2); } - | declmods setspecs notype_declarator maybe_attribute - { if (! start_function ($1, $3, prefix_attributes, $4, 0)) + | declmods setspecs notype_declarator + { if (! start_function ($1, $3, prefix_attributes, + NULL_TREE, 0)) YYERROR1; reinit_parse_for_function (); } xdecls @@ -372,9 +374,9 @@ fndef: prefix_attributes = TREE_PURPOSE (declspec_stack); declspec_stack = TREE_CHAIN (declspec_stack); resume_momentary ($2); } - | setspecs notype_declarator maybe_attribute + | setspecs notype_declarator { if (! start_function (NULL_TREE, $2, - prefix_attributes, $3, 0)) + prefix_attributes, NULL_TREE, 0)) YYERROR1; reinit_parse_for_function (); } xdecls @@ -1218,10 +1220,10 @@ end ifc ; nested_function: - declarator maybe_attribute + declarator { push_c_function_context (); if (! start_function (current_declspecs, $1, - prefix_attributes, $2, 1)) + prefix_attributes, NULL_TREE, 1)) { pop_c_function_context (); YYERROR1; @@ -1241,10 +1243,10 @@ nested_function: ; notype_nested_function: - notype_declarator maybe_attribute + notype_declarator { push_c_function_context (); if (! start_function (current_declspecs, $1, - prefix_attributes, $2, 1)) + prefix_attributes, NULL_TREE, 1)) { pop_c_function_context (); YYERROR1; |