diff options
author | Ziemowit Laski <zlaski@apple.com> | 2004-09-03 02:07:18 +0000 |
---|---|---|
committer | Ziemowit Laski <zlaski@gcc.gnu.org> | 2004-09-03 02:07:18 +0000 |
commit | d4e43dffb70dfa4f978554b5a8af43895a5cf6c1 (patch) | |
tree | df6edc7a5b10fc17e0d5e212fd5809cc05e727d8 /gcc/c-decl.c | |
parent | cd7d9ca495768408221349309a0e5ea0f46c6b75 (diff) | |
download | gcc-d4e43dffb70dfa4f978554b5a8af43895a5cf6c1.zip gcc-d4e43dffb70dfa4f978554b5a8af43895a5cf6c1.tar.gz gcc-d4e43dffb70dfa4f978554b5a8af43895a5cf6c1.tar.bz2 |
c-decl.c (store_parm_decls_newstyle): Make static.
[gcc/ChangeLog]
2004-09-02 Ziemowit Laski <zlaski@apple.com>
* c-decl.c (store_parm_decls_newstyle): Make static.
(store_parm_decls_from): New function.
* c-tree.h (store_parm_decls_newstyle): Remove prototype.
(store_parm_decls_from): New prototype.
From-SVN: r87022
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 8b75ab7..97f9352 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -6158,7 +6158,7 @@ start_function (tree declspecs, tree declarator, tree attributes) definitions (prototype format). The parms already have decls, so we need only record them as in effect and complain if any redundant old-style parm decls were written. */ -void +static void store_parm_decls_newstyle (tree fndecl, tree arg_info) { tree decl; @@ -6438,6 +6438,16 @@ store_parm_decls_oldstyle (tree fndecl, tree arg_info) } } +/* Store parameter declarations passed in ARG_INFO into the current + function declaration. */ + +void +store_parm_decls_from (tree arg_info) +{ + current_function_arg_info = arg_info; + store_parm_decls (); +} + /* Store the parameter declarations into the current function declaration. This is called after parsing the parameter declarations, before digesting the body of the function. |