aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-tree.h
diff options
context:
space:
mode:
authorRichard Sandiford <richard@codesourcery.com>2007-09-12 13:16:42 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2007-09-12 13:16:42 +0000
commitb9baeecdcc22a80357e232383421c6cb0cd3ab69 (patch)
tree3cb5e6af2cd22e35ac9a75b750a8820ca617d258 /gcc/c-tree.h
parented557735d747bae60ca5d1c7f9f04088eaba5f69 (diff)
downloadgcc-b9baeecdcc22a80357e232383421c6cb0cd3ab69.zip
gcc-b9baeecdcc22a80357e232383421c6cb0cd3ab69.tar.gz
gcc-b9baeecdcc22a80357e232383421c6cb0cd3ab69.tar.bz2
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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-tree.h b/gcc/c-tree.h
index 57b19f6..9fd696b 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);