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-7780] rs6000: Adjust error messages. Date: Wed, 23 Mar 2022 11:51:19 +0000 (GMT) [thread overview] Message-ID: <20220323115119.C2A123858434@sourceware.org> (raw) https://gcc.gnu.org/g:018805e2791bafb40f8937d371d31325b037880d commit r12-7780-g018805e2791bafb40f8937d371d31325b037880d Author: Martin Liska <mliska@suse.cz> Date: Wed Mar 23 11:31:12 2022 +0100 rs6000: Adjust error messages. gcc/ChangeLog: * config/rs6000/rs6000-c.cc (altivec_resolve_overloaded_builtin): Use %qs in format. * config/rs6000/rs6000.cc (rs6000_option_override_internal): Reword the error message. Diff: --- gcc/config/rs6000/rs6000-c.cc | 5 +++-- gcc/config/rs6000/rs6000.cc | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/gcc/config/rs6000/rs6000-c.cc b/gcc/config/rs6000/rs6000-c.cc index ad976753a3c..2f0f4fe337d 100644 --- a/gcc/config/rs6000/rs6000-c.cc +++ b/gcc/config/rs6000/rs6000-c.cc @@ -1788,8 +1788,9 @@ altivec_resolve_overloaded_builtin (location_t loc, tree fndecl, { if (TYPE_READONLY (TREE_TYPE (type)) && !TYPE_READONLY (TREE_TYPE (decl_type))) - warning (0, "passing argument %d of %qE discards %<const%> " - "qualifier from pointer target type", n + 1, fndecl); + warning (0, "passing argument %d of %qE discards %qs " + "qualifier from pointer target type", n + 1, fndecl, + "const"); type = build_qualified_type (TREE_TYPE (type), 0); type = build_pointer_type (type); arg = fold_convert (type, arg); diff --git a/gcc/config/rs6000/rs6000.cc b/gcc/config/rs6000/rs6000.cc index a7645820b1e..cb18db06a2d 100644 --- a/gcc/config/rs6000/rs6000.cc +++ b/gcc/config/rs6000/rs6000.cc @@ -4345,8 +4345,8 @@ rs6000_option_override_internal (bool global_init_p) rs6000_veclib_handler = rs6000_builtin_vectorized_libmass; else { - error ("unknown vectorization library ABI type %qs for " - "%qs switch", rs6000_veclibabi_name, "-mveclibabi="); + error ("unknown vectorization library ABI type in " + "%<-mveclibabi=%s%>", rs6000_veclibabi_name); ret = false; } }
reply other threads:[~2022-03-23 11:51 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=20220323115119.C2A123858434@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).