diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-04-25 16:06:42 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-04-25 16:06:42 -0400 |
commit | daa6d5ffc0ae3c2419a7d7ce5c9b2c7a98366678 (patch) | |
tree | e16f75d6e03d8224ddeaf6b02a340115383ac9de /gcc | |
parent | c15b1d450745c9d7272cd99f8035f7c8f93a334b (diff) | |
download | gcc-daa6d5ffc0ae3c2419a7d7ce5c9b2c7a98366678.zip gcc-daa6d5ffc0ae3c2419a7d7ce5c9b2c7a98366678.tar.gz gcc-daa6d5ffc0ae3c2419a7d7ce5c9b2c7a98366678.tar.bz2 |
(start_decl): New args for attributes; call decl_attributes.
From-SVN: r9444
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/c-decl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index fdad007..1e3a241 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -3435,9 +3435,10 @@ groktypename_in_parm_context (typename) int debug_temp_inits = 1; tree -start_decl (declarator, declspecs, initialized) +start_decl (declarator, declspecs, initialized, attributes, prefix_attributes) tree declarator, declspecs; int initialized; + tree attributes, prefix_attributes; { register tree decl = grokdeclarator (declarator, declspecs, NORMAL, initialized); @@ -3531,6 +3532,9 @@ start_decl (declarator, declspecs, initialized) if (TREE_CODE (decl) == FUNCTION_DECL) gen_aux_info_record (decl, 0, 0, TYPE_ARG_TYPES (TREE_TYPE (decl)) != 0); + /* Set attributes here so if duplicate decl, will have proper attributes. */ + decl_attributes (decl, attributes, prefix_attributes); + /* Add this decl to the current binding level. TEM may equal DECL or it may be a previous decl of the same name. */ tem = pushdecl (decl); |