]> gcc.gnu.org Git - gcc.git/commitdiff
(start_decl): New args for attributes; call decl_attributes.
authorRichard Kenner <kenner@gcc.gnu.org>
Tue, 25 Apr 1995 20:06:42 +0000 (16:06 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Tue, 25 Apr 1995 20:06:42 +0000 (16:06 -0400)
From-SVN: r9444

gcc/c-decl.c

index fdad00745575a7824d758d957a91fa91c8c0ffad..1e3a241c2056090a6fe65df75f36b2905c19bf40 100644 (file)
@@ -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);
This page took 0.065905 seconds and 5 git commands to generate.