RFA: Merge C frontend calls to decl_attributes

Joseph S. Myers joseph@codesourcery.com
Wed Sep 12 12:12:00 GMT 2007

On Wed, 12 Sep 2007, Richard Sandiford wrote:

> gcc/
> 	* c-tree.h (grokfield): Add a "tree *" argument.
> 	* c-decl.c (grokdeclarator): Take a pointer to the decl's attributes.
> 	Chain nested decl attributes to it.  Don't call decl_attributes here.
> 	(groktypename): Pass grokdeclarator a pointer to the attribute list.
> 	(start_decl, grokparm, push_parm_decl, start_function): Likewise.
> 	(grokfield): Take a pointer to the decl's attributes and pass
> 	it to grokdeclarator.
> 	* c-parser.c (c_parser_struct_declaration): Update the calls to
> 	grokfield.  Call decl_attributes for anonymous struct and union
> 	fields.


Joseph S. Myers

More information about the Gcc-patches mailing list