diff options
author | Joseph Myers <jsm28@cam.ac.uk> | 2001-07-13 21:40:43 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2001-07-13 21:40:43 +0100 |
commit | 59387d2e310983bced3bf86cb759a1dbc1520277 (patch) | |
tree | 7344925821f5f63d7da1217406a45dd134918cfd /gcc/c-decl.c | |
parent | e47c5acd7b2c5dcaf4ece03897e9baa12e867cf9 (diff) | |
download | gcc-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-decl.c')
-rw-r--r-- | gcc/c-decl.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index dc100db..a9f6968 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -3341,8 +3341,8 @@ start_decl (declarator, declspecs, initialized, attributes) int initialized; tree attributes; { - register tree decl = grokdeclarator (declarator, declspecs, - NORMAL, initialized); + tree decl = grokdeclarator (declarator, declspecs, + NORMAL, initialized); register tree tem; if (warn_main > 0 && TREE_CODE (decl) != FUNCTION_DECL @@ -3448,7 +3448,7 @@ start_decl (declarator, declspecs, initialized, attributes) DECL_COMMON (decl) = 1; /* Set attributes here so if duplicate decl, will have proper attributes. */ - decl_attributes (decl, attributes); + decl_attributes (&decl, attributes, 0); /* Add this decl to the current binding level. TEM may equal DECL or it may be a previous decl of the same name. */ @@ -3712,7 +3712,7 @@ push_parm_decl (parm) decl = grokdeclarator (TREE_VALUE (TREE_PURPOSE (parm)), TREE_PURPOSE (TREE_PURPOSE (parm)), PARM, 0); - decl_attributes (decl, TREE_VALUE (parm)); + decl_attributes (&decl, TREE_VALUE (parm), 0); #if 0 if (DECL_NAME (decl)) @@ -5340,7 +5340,7 @@ finish_struct (t, fieldlist, attributes) TYPE_SIZE (t) = 0; - decl_attributes (t, attributes); + decl_attributes (&t, attributes, 0); /* Nameless union parm types are useful as GCC extension. */ if (! (TREE_CODE (t) == UNION_TYPE && TYPE_NAME (t) == 0) && !pedantic) @@ -5704,7 +5704,7 @@ finish_enum (enumtype, values, attributes) if (in_parm_level_p ()) warning ("enum defined inside parms"); - decl_attributes (enumtype, attributes); + decl_attributes (&enumtype, attributes, 0); /* Calculate the maximum value of any enumerator in this type. */ @@ -5928,7 +5928,7 @@ start_function (declspecs, declarator, attributes) return 0; } - decl_attributes (decl1, attributes); + decl_attributes (&decl1, attributes, 0); announce_function (decl1); |