]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
s390x: Fix one more -Wformat-diag.
authorMartin Liska <mliska@suse.cz>
Thu, 3 Feb 2022 08:55:59 +0000 (09:55 +0100)
committerMartin Liska <mliska@suse.cz>
Thu, 3 Feb 2022 08:56:33 +0000 (09:56 +0100)
gcc/ChangeLog:

* config/s390/s390.cc (s390_valid_target_attribute_inner_p):
Use the error message for i386 target.

gcc/config/s390/s390.cc

index 2db12d4ba4b36688dfbc8a78ff3cc686ec0eb1b6..63b78ab16d856409b65f9cf8bb6fe14c18480ef7 100644 (file)
@@ -15903,7 +15903,7 @@ s390_valid_target_attribute_inner_p (tree args,
       /* Process the option.  */
       if (!found)
        {
-         error ("attribute(target(\"%s\")) is unknown", orig_p);
+         error ("attribute %qs argument %<target%> is unknown", orig_p);
          return false;
        }
       else if (attrs[i].only_as_pragma && !force_pragma)
@@ -15953,7 +15953,7 @@ s390_valid_target_attribute_inner_p (tree args,
            }
          else
            {
-             error ("attribute(target(\"%s\")) is unknown", orig_p);
+             error ("attribute %qs argument %<target%> is unknown", orig_p);
              ret = false;
            }
        }
@@ -15970,7 +15970,7 @@ s390_valid_target_attribute_inner_p (tree args,
                        global_dc);
          else
            {
-             error ("attribute(target(\"%s\")) is unknown", orig_p);
+             error ("attribute %qs argument %<target%> is unknown", orig_p);
              ret = false;
            }
        }