OSDN Git Service

(decl_attributes): Chain multiple attributes correctly.
authorcoxs <coxs@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 May 1996 20:58:44 +0000 (20:58 +0000)
committercoxs <coxs@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 May 1996 20:58:44 +0000 (20:58 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@11942 138bc75d-0d04-0410-961f-82ee72b054a4

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)