summaryrefslogtreecommitdiff
path: root/gcc/c-parse.in
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-05-11 19:27:13 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-05-11 19:27:13 -0400
commit67b0763ea8f42e8e9e4e7bcc001229cf3e629a68 (patch)
tree74a8ec77f1f76ee3cdf1259cbdc45c70de2f2aea /gcc/c-parse.in
parent9a381dd472d82a91c568c7ea97e41411a47f74e1 (diff)
downloadgcc-67b0763ea8f42e8e9e4e7bcc001229cf3e629a68.tar.gz
(nested_function, notype_nested_function): Allow old-style arg
definitions (use xdecls). From-SVN: r9628
Diffstat (limited to 'gcc/c-parse.in')
-rw-r--r--gcc/c-parse.in10
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in
index f6bdbe330a7..b4eea8ec229 100644
--- a/gcc/c-parse.in
+++ b/gcc/c-parse.in
@@ -1193,8 +1193,9 @@ nested_function:
pop_c_function_context ();
YYERROR1;
}
- reinit_parse_for_function ();
- store_parm_decls (); }
+ reinit_parse_for_function (); }
+ xdecls
+ { store_parm_decls (); }
/* This used to use compstmt_or_error.
That caused a bug with input `f(g) int g {}',
where the use of YYERROR1 above caused an error
@@ -1215,8 +1216,9 @@ notype_nested_function:
pop_c_function_context ();
YYERROR1;
}
- reinit_parse_for_function ();
- store_parm_decls (); }
+ reinit_parse_for_function (); }
+ xdecls
+ { store_parm_decls (); }
/* This used to use compstmt_or_error.
That caused a bug with input `f(g) int g {}',
where the use of YYERROR1 above caused an error