]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
(decl_attributes): Always continue if attribute not found.
authorDoug Evans <dje@gnu.org>
Fri, 28 Apr 1995 01:09:12 +0000 (01:09 +0000)
committerDoug Evans <dje@gnu.org>
Fri, 28 Apr 1995 01:09:12 +0000 (01:09 +0000)
From-SVN: r9522

gcc/c-common.c

index 474586ec81ddea5fc4fd0f3afee5b57ade5c6455..4c4e317bc2e30778e9b21adbb94afd87b6e1ec25 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)