OSDN Git Service

(decl_attributes): Always continue if attribute not found.
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 Apr 1995 01:09:12 +0000 (01:09 +0000)
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 Apr 1995 01:09:12 +0000 (01:09 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9522 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/c-common.c

index 474586e..4c4e317 100644 (file)
@@ -300,11 +300,11 @@ decl_attributes (node, attributes, prefix_attributes)
        if (attrtab[i].name == name)
          break;
 
-      if (i == attrtab_idx
-         && ! valid_machine_attribute (name, args, decl, type))
+      if (i == attrtab_idx)
        {
-         warning ("`%s' attribute directive ignored",
-                  IDENTIFIER_POINTER (name));
+         if (! valid_machine_attribute (name, args, decl, type))
+           warning ("`%s' attribute directive ignored",
+                    IDENTIFIER_POINTER (name));
          continue;
        }
       else if (attrtab[i].decl_req && decl == 0)