diff options
author | Richard Sandiford <richard@codesourcery.com> | 2007-09-12 13:16:42 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2007-09-12 13:16:42 +0000 |
commit | b9baeecdcc22a80357e232383421c6cb0cd3ab69 (patch) | |
tree | 3cb5e6af2cd22e35ac9a75b750a8820ca617d258 /gcc/c-tree.h | |
parent | ed557735d747bae60ca5d1c7f9f04088eaba5f69 (diff) | |
download | gcc-b9baeecdcc22a80357e232383421c6cb0cd3ab69.tar.gz |
c-tree.h (grokfield): Add a "tree *" argument.
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.
From-SVN: r128437
Diffstat (limited to 'gcc/c-tree.h')
-rw-r--r-- | gcc/c-tree.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-tree.h b/gcc/c-tree.h index 57b19f69857..9fd696b925d 100644 --- a/gcc/c-tree.h +++ b/gcc/c-tree.h @@ -476,7 +476,8 @@ extern tree finish_enum (tree, tree, tree); extern void finish_function (void); extern tree finish_struct (tree, tree, tree); extern struct c_arg_info *get_parm_info (bool); -extern tree grokfield (struct c_declarator *, struct c_declspecs *, tree); +extern tree grokfield (struct c_declarator *, struct c_declspecs *, + tree, tree *); extern tree groktypename (struct c_type_name *); extern tree grokparm (const struct c_parm *); extern tree implicitly_declare (tree); |