public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-7762] rs6000: wrap const in an error message.
@ 2022-03-22 12:51 Martin Liska
  0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2022-03-22 12:51 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:a47b1599f2885bc7691e01c0edcd54d6ebf2e7c9

commit r12-7762-ga47b1599f2885bc7691e01c0edcd54d6ebf2e7c9
Author: Martin Liska <mliska@suse.cz>
Date:   Tue Mar 22 13:48:54 2022 +0100

    rs6000: wrap const in an error message.
    
            PR target/104903
    
    gcc/ChangeLog:
    
            * config/rs6000/rs6000-c.cc (altivec_resolve_overloaded_builtin):
            Wrap const keyword.

Diff:
---
 gcc/config/rs6000/rs6000-c.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/config/rs6000/rs6000-c.cc b/gcc/config/rs6000/rs6000-c.cc
index 3b62b499df2..ad976753a3c 100644
--- a/gcc/config/rs6000/rs6000-c.cc
+++ b/gcc/config/rs6000/rs6000-c.cc
@@ -1788,8 +1788,8 @@ 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 %<const%> "
+		     "qualifier from pointer target type", n + 1, fndecl);
 	  type = build_qualified_type (TREE_TYPE (type), 0);
 	  type = build_pointer_type (type);
 	  arg = fold_convert (type, arg);


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

only message in thread, other threads:[~2022-03-22 12:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-22 12:51 [gcc r12-7762] rs6000: wrap const in an error message 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).