c-decl.c (finish_decl): Don't call get_pending_sizes.
authorJoseph Myers <joseph@codesourcery.com>
Thu, 5 May 2011 10:20:31 +0000 (11:20 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Thu, 5 May 2011 10:20:31 +0000 (11:20 +0100)
commita04a722b88baf5568f3ba02a07189cbd65b0dc22
treeb17a45e382a8a322480a5f68a04bd1948915571e
parentc92a6f97df83d8ee957dbfd7871a0ad517dcd699
c-decl.c (finish_decl): Don't call get_pending_sizes.

* c-decl.c (finish_decl): Don't call get_pending_sizes.
(grokparm): Add parameter expr.  Pass it to grokdeclarator.
(push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
(c_variable_size): Remove.
(grokdeclarator): Use save_expr instead of c_variable_size.  Don't
call put_pending_sizes.
(get_parm_info): Add parameter expr.  Use it to set
arg_info->pending_sizes.
(store_parm_decls): Use arg_info->pending_sizes instead or calling
get_pending_sizes.
* c-parser.c (c_parser_parms_declarator): Update call to
c_parser_parms_list_declarator.
(c_parser_parms_list_declarator): Take parameter expr.  Update
call to push_parm_decl.  Update recursive call.  Don't call
get_pending_sizes.  Update calls to get_parm_info.
(c_parser_objc_method_definition): Update calls to
c_parser_objc_method_decl and objc_start_method_definition.
(c_parser_objc_methodproto): Update call to
c_parser_objc_method_decl.
(c_parser_objc_method_decl): Add parameter expr.  Update call to
grokparm.
(c_parser_objc_try_catch_finally_statement): Update call to
grokparm.
* c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
(get_parm_info, grokparm, push_parm_decl): Update prototypes.

c-family:
* c-objc.h (objc_start_method_definition): Update prototype.
* stub-objc.c (objc_start_method_definition): Add extra parameter.

cp:
* parser.c (cp_parser_objc_method_definition_list): Update call to
objc_start_method_definition.

objc:
* objc-act.c (objc_start_method_definition): Add parameter expr.
Update call to start_method_def.
(objc_generate_cxx_ctor_or_dtor, objc_synthesize_getter,
objc_synthesize_setter) Update calls to
objc_start_method_definition.
(objc_get_parm_info): Add parameter expr.  Update call to
get_parm_info.
(start_method_def): Add parameter expr.  Update call to
objc_get_parm_info.
* objc-gnu-runtime-abi-01.c (build_module_initializer_routine):
Update call to objc_get_parm_info.
* objc-runtime-shared-support.h (objc_get_parm_info): Add extra
parameter.

From-SVN: r173422
13 files changed:
gcc/ChangeLog
gcc/c-decl.c
gcc/c-family/ChangeLog
gcc/c-family/c-objc.h
gcc/c-family/stub-objc.c
gcc/c-parser.c
gcc/c-tree.h
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/objc/ChangeLog
gcc/objc/objc-act.c
gcc/objc/objc-gnu-runtime-abi-01.c
gcc/objc/objc-runtime-shared-support.h