public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Martin Liska <marxin@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-7014] Fix wording for: attribute ‘-xyz’ argument ‘target’ is unknown Date: Thu, 3 Feb 2022 09:21:13 +0000 (GMT) [thread overview] Message-ID: <20220203092113.6E4C6385BF86@sourceware.org> (raw) 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; } }
reply other threads:[~2022-02-03 9:21 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220203092113.6E4C6385BF86@sourceware.org \ --to=marxin@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).