This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] centralize building of c_arg_info structure


On Sat, 7 Aug 2010, Nathan Froyd wrote:

> struct c_arg_info is allocated and initialized nearly identically in
> several different places.  This patch moves all of that code to a common
> function.  The initialization of the tags field in build_arg_info will
> work without my patch to convert tags to a VEC, but the initialization
> will be more correct with said patch.
> 
> Tested on x86_64-unknown-linux-gnu.  OK to commit?
> 
> -Nathan
> 
> 	* c-tree.h (build_arg_info): Declare.
> 	* c-decl.c (build_arg_info): Define.
> 	(get_parm_info): Call it.  Delete initialization code.
> 	* c-parser.c (c_parser_parms_declarator): Likewise.
> 	(c_parser_parms_list_declaractor): Likewise.

OK.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]