From d4e43dffb70dfa4f978554b5a8af43895a5cf6c1 Mon Sep 17 00:00:00 2001 From: Ziemowit Laski Date: Fri, 3 Sep 2004 02:07:18 +0000 Subject: [PATCH] c-decl.c (store_parm_decls_newstyle): Make static. [gcc/ChangeLog] 2004-09-02 Ziemowit Laski * 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 --- gcc/ChangeLog | 7 +++++++ gcc/c-decl.c | 12 +++++++++++- gcc/c-tree.h | 2 +- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ab1327ba75e..896ab3f4c67 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2004-09-02 Ziemowit Laski + + * 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. + 2004-09-02 David Edelsohn * config/rs6000/rs6000.c (expand_block_move): Use SImode and diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 8b75ab78255..97f93524589 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. diff --git a/gcc/c-tree.h b/gcc/c-tree.h index 7d18f1a766b..acecbe96768 100644 --- a/gcc/c-tree.h +++ b/gcc/c-tree.h @@ -200,8 +200,8 @@ extern tree start_enum (tree); extern int start_function (tree, tree, tree); extern tree start_decl (tree, tree, bool, tree); extern tree start_struct (enum tree_code, tree); -extern void store_parm_decls_newstyle (tree, tree); extern void store_parm_decls (void); +extern void store_parm_decls_from (tree); extern tree xref_tag (enum tree_code, tree); extern int c_expand_decl (tree); extern tree build_c_parm (tree, tree, tree); -- 2.30.2