public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-7014] Fix wording for: attribute ‘-xyz’ argument ‘target’ is unknown
@ 2022-02-03  9:21 Martin Liska
  0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2022-02-03  9:21 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:9db03cd0caf6bbde1de302bf3509dc26ca8bff2b

commit r12-7014-g9db03cd0caf6bbde1de302bf3509dc26ca8bff2b
Author: Martin Liska <mliska@suse.cz>
Date:   Thu Feb 3 10:19:33 2022 +0100

    Fix wording for: attribute ‘-xyz’ argument ‘target’ is unknown
    
    gcc/ChangeLog:
    
            * config/i386/i386-options.cc (ix86_valid_target_attribute_inner_p):
            Change subject and object in the error message.
            * config/s390/s390.cc (s390_valid_target_attribute_inner_p):
            Likewise.

Diff:
---
 gcc/config/i386/i386-options.cc | 2 +-
 gcc/config/s390/s390.cc         | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/gcc/config/i386/i386-options.cc b/gcc/config/i386/i386-options.cc
index 715d9a15ff5..082abd2c948 100644
--- a/gcc/config/i386/i386-options.cc
+++ b/gcc/config/i386/i386-options.cc
@@ -1201,7 +1201,7 @@ ix86_valid_target_attribute_inner_p (tree fndecl, tree args, char *p_strings[],
       if (opt == N_OPTS)
 	{
 	  error_at (loc, "attribute %qs argument %qs is unknown",
-		    orig_p, attr_name);
+		    attr_name, orig_p);
 	  ret = false;
 	}
 
diff --git a/gcc/config/s390/s390.cc b/gcc/config/s390/s390.cc
index 63b78ab16d8..5c2a830f9f0 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 %qs argument %<target%> is unknown", orig_p);
+	  error ("attribute %<target%> argument %qs 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 %qs argument %<target%> is unknown", orig_p);
+	      error ("attribute %<target%> argument %qs is unknown", orig_p);
 	      ret = false;
 	    }
 	}
@@ -15970,7 +15970,7 @@ s390_valid_target_attribute_inner_p (tree args,
 			global_dc);
 	  else
 	    {
-	      error ("attribute %qs argument %<target%> is unknown", orig_p);
+	      error ("attribute %<target%> argument %qs is unknown", orig_p);
 	      ret = false;
 	    }
 	}


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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-03  9:21 [gcc r12-7014] Fix wording for: attribute ‘-xyz’ argument ‘target’ is unknown 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).