From: Martin Liska Date: Thu, 3 Feb 2022 08:55:59 +0000 (+0100) Subject: s390x: Fix one more -Wformat-diag. X-Git-Tag: basepoints/gcc-13~1300 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0415470c8d66200f6ae8ffb5ff4342bafc06251b;p=thirdparty%2Fgcc.git s390x: Fix one more -Wformat-diag. gcc/ChangeLog: * config/s390/s390.cc (s390_valid_target_attribute_inner_p): Use the error message for i386 target. --- diff --git a/gcc/config/s390/s390.cc b/gcc/config/s390/s390.cc index 2db12d4ba4b3..63b78ab16d85 100644 --- a/gcc/config/s390/s390.cc +++ b/gcc/config/s390/s390.cc @@ -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 % 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 % 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 % is unknown", orig_p); ret = false; } }