This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] centralize building of c_arg_info structure
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Nathan Froyd <froydnj at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 8 Aug 2010 12:40:46 +0000 (UTC)
- Subject: Re: [PATCH] centralize building of c_arg_info structure
- References: <20100808013327.GR17362@codesourcery.com>
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