(decl_attributes): Chain multiple attributes correctly.
authorStan Cox <coxs@gnu.org>
Mon, 6 May 1996 20:58:44 +0000 (20:58 +0000)
committerStan Cox <coxs@gnu.org>
Mon, 6 May 1996 20:58:44 +0000 (20:58 +0000)
From-SVN: r11942

gcc/c-common.c

index 8a834dd..3f6b28e 100644 (file)
@@ -322,6 +322,8 @@ decl_attributes (node, attributes, prefix_attributes)
          if (! valid_machine_attribute (name, args, decl, type))
            warning ("`%s' attribute directive ignored",
                     IDENTIFIER_POINTER (name));
+         else if (decl != 0)
+           type = TREE_TYPE (decl);
          continue;
        }
       else if (attrtab[i].decl_req && decl == 0)