Re: [PATCH][pushed] s390x: Fix one more -Wformat-diag.

2022-02-03 Thread Martin Liška
On 2/3/22 10:08, Jakub Jelinek wrote: This is backwards, isn't it? It should be "attribute % argument %qs is unknown", no? Oh, correct: cat x.c && gcc x.c -c int __attribute__((target("-ff"))) foo() { } x.c:1:36: error: attribute ‘-ff’ argument ‘target’ is unknown 1 | int __attribute__((t

Re: [PATCH][pushed] s390x: Fix one more -Wformat-diag.

2022-02-03 Thread Jakub Jelinek via Gcc-patches
On Thu, Feb 03, 2022 at 09:56:25AM +0100, Martin Liška wrote: > gcc/ChangeLog: > > * config/s390/s390.cc (s390_valid_target_attribute_inner_p): > Use the error message for i386 target. > --- > gcc/config/s390/s390.cc | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > d

[PATCH][pushed] s390x: Fix one more -Wformat-diag.

2022-02-03 Thread Martin Liška
gcc/ChangeLog: * config/s390/s390.cc (s390_valid_target_attribute_inner_p): Use the error message for i386 target. --- gcc/config/s390/s390.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/config/s390/s390.cc b/gcc/config/s390/s390.cc index 2db12d4