OSDN Git Service

(decl_attributes): Handle prefix and suffix attributes the same way.
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Mar 1995 02:33:58 +0000 (02:33 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Mar 1995 02:33:58 +0000 (02:33 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9152 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/c-common.c

index 6c60d6d..49bafc9 100644 (file)
@@ -211,15 +211,7 @@ decl_attributes (decl, attributes, prefix_attributes)
   tree a, name, args, type;
 
   type = TREE_TYPE (decl);
-
-  for (a = prefix_attributes; a; a = TREE_CHAIN (a))
-    if (!(name = TREE_VALUE (a)))
-      continue;
-    else if (valid_machine_attribute (name, decl, type))
-      ;
-    else
-      warning ("`%s' attribute directive ignored",
-              IDENTIFIER_POINTER (name));
+  attributes = chainon (prefix_attributes, attributes);
 
   for (a = attributes; a; a = TREE_CHAIN (a))
     if (!(name = TREE_VALUE (a)))