From: Richard Kenner Date: Tue, 25 Apr 1995 20:06:42 +0000 (-0400) Subject: (start_decl): New args for attributes; call decl_attributes. X-Git-Tag: misc/cutover-egcs-0~4514 X-Git-Url: https://gcc.gnu.org/git/?a=commitdiff_plain;h=daa6d5ffc0ae3c2419a7d7ce5c9b2c7a98366678;p=gcc.git (start_decl): New args for attributes; call decl_attributes. From-SVN: r9444 --- diff --git a/gcc/c-decl.c b/gcc/c-decl.c index fdad00745575..1e3a241c2056 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);