aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-parse.in
diff options
context:
space:
mode:
authorJoseph Myers <jsm28@cam.ac.uk>2001-07-13 21:40:43 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2001-07-13 21:40:43 +0100
commit59387d2e310983bced3bf86cb759a1dbc1520277 (patch)
tree7344925821f5f63d7da1217406a45dd134918cfd /gcc/c-parse.in
parente47c5acd7b2c5dcaf4ece03897e9baa12e867cf9 (diff)
downloadgcc-59387d2e310983bced3bf86cb759a1dbc1520277.zip
gcc-59387d2e310983bced3bf86cb759a1dbc1520277.tar.gz
gcc-59387d2e310983bced3bf86cb759a1dbc1520277.tar.bz2
c-common.c (decl_attributes): Take a pointer to the node to which attributes are to be attached...
* c-common.c (decl_attributes): Take a pointer to the node to which attributes are to be attached, and a flags argument. * c-common.h (enum attribute_flags): New. (decl_attributes): Update prototype. * c-decl.c (start_decl, push_parm_decl, finish_struct, finish_enum, start_function): Update calls to decl_attributes. * c-parse.in (component_declarator, component_notype_declarator, label): Update calls to decl_attributes. cp: * decl2.c (cplus_decl_attributes): Take a pointer to the node to which attributes are to be attached, and a flags argument. Update call to decl_attributes. (grokfield): Update call to decl_attributes. * class.c (finish_struct): Update call to cplus_decl_attributes. * cp-tree.h (cplus_decl_attributes): Update prototype. * decl.c (start_decl, grokdeclarator, start_function): Update calls to decl_attributes and cplus_decl_attributes. * friend.c (do_friend): Update call to cplus_decl_attributes. * parse.y (parse_bitfield): Update call to cplus_decl_attributes. From-SVN: r43995
Diffstat (limited to 'gcc/c-parse.in')
-rw-r--r--gcc/c-parse.in14
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in
index ad2d5f7..a094ebb 100644
--- a/gcc/c-parse.in
+++ b/gcc/c-parse.in
@@ -1896,27 +1896,27 @@ components_notype:
component_declarator:
save_filename save_lineno declarator maybe_attribute
{ $$ = grokfield ($1, $2, $3, current_declspecs, NULL_TREE);
- decl_attributes ($$, chainon ($4, prefix_attributes)); }
+ decl_attributes (&$$, chainon ($4, prefix_attributes), 0); }
| save_filename save_lineno
declarator ':' expr_no_commas maybe_attribute
{ $$ = grokfield ($1, $2, $3, current_declspecs, $5);
- decl_attributes ($$, chainon ($6, prefix_attributes)); }
+ decl_attributes (&$$, chainon ($6, prefix_attributes), 0); }
| save_filename save_lineno ':' expr_no_commas maybe_attribute
{ $$ = grokfield ($1, $2, NULL_TREE, current_declspecs, $4);
- decl_attributes ($$, chainon ($5, prefix_attributes)); }
+ decl_attributes (&$$, chainon ($5, prefix_attributes), 0); }
;
component_notype_declarator:
save_filename save_lineno notype_declarator maybe_attribute
{ $$ = grokfield ($1, $2, $3, current_declspecs, NULL_TREE);
- decl_attributes ($$, chainon ($4, prefix_attributes)); }
+ decl_attributes (&$$, chainon ($4, prefix_attributes), 0); }
| save_filename save_lineno
notype_declarator ':' expr_no_commas maybe_attribute
{ $$ = grokfield ($1, $2, $3, current_declspecs, $5);
- decl_attributes ($$, chainon ($6, prefix_attributes)); }
+ decl_attributes (&$$, chainon ($6, prefix_attributes), 0); }
| save_filename save_lineno ':' expr_no_commas maybe_attribute
{ $$ = grokfield ($1, $2, NULL_TREE, current_declspecs, $4);
- decl_attributes ($$, chainon ($5, prefix_attributes)); }
+ decl_attributes (&$$, chainon ($5, prefix_attributes), 0); }
;
/* We chain the enumerators in reverse order.
@@ -2447,7 +2447,7 @@ label: CASE expr_no_commas ':'
stmt_count++;
if (label)
{
- decl_attributes (label, $5);
+ decl_attributes (&label, $5, 0);
$$ = add_stmt (build_stmt (LABEL_STMT, label));
}
else