public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-7013] s390x: Fix one more -Wformat-diag.
@ 2022-02-03  8:58 Martin Liska
  0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2022-02-03  8:58 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:0415470c8d66200f6ae8ffb5ff4342bafc06251b

commit r12-7013-g0415470c8d66200f6ae8ffb5ff4342bafc06251b
Author: Martin Liska <mliska@suse.cz>
Date:   Thu Feb 3 09:55:59 2022 +0100

    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:
---
 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 2db12d4ba4b..63b78ab16d8 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 %<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;
 	    }
 	}


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-03  8:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-03  8:58 [gcc r12-7013] s390x: Fix one more -Wformat-diag Martin Liska

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).