public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-6673] Fix -Wformat-diag for rs6000 target (part 1).
@ 2022-01-18 13:38 Martin Liska
  0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2022-01-18 13:38 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:8355f3188bfb01b7e4f0dc3110cc6aaff7ee791e

commit r12-6673-g8355f3188bfb01b7e4f0dc3110cc6aaff7ee791e
Author: Martin Liska <mliska@suse.cz>
Date:   Wed Jan 12 09:43:28 2022 +0100

    Fix -Wformat-diag for rs6000 target (part 1).
    
    gcc/ChangeLog:
    
            * config/rs6000/rs6000-call.cc (rs6000_expand_builtin): Wrap
            keywords and use %qs instead of %<%s%>.

Diff:
---
 gcc/config/rs6000/rs6000-call.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/config/rs6000/rs6000-call.cc b/gcc/config/rs6000/rs6000-call.cc
index 8968929eccf..508f7c97ed8 100644
--- a/gcc/config/rs6000/rs6000-call.cc
+++ b/gcc/config/rs6000/rs6000-call.cc
@@ -5589,20 +5589,20 @@ rs6000_expand_builtin (tree exp, rtx target, rtx /* subtarget */,
   if (bif_is_nosoft (*bifaddr)
       && rs6000_isa_flags & OPTION_MASK_SOFT_FLOAT)
     {
-      error ("%<%s%> not supported with %<-msoft-float%>",
+      error ("%qs not supported with %<-msoft-float%>",
 	     bifaddr->bifname);
       return const0_rtx;
     }
 
   if (bif_is_no32bit (*bifaddr) && TARGET_32BIT)
     {
-      error ("%<%s%> is not supported in 32-bit mode", bifaddr->bifname);
+      error ("%qs is not supported in 32-bit mode", bifaddr->bifname);
       return const0_rtx;
     }
 
   if (bif_is_ibmld (*bifaddr) && !FLOAT128_2REG_P (TFmode))
     {
-      error ("%<%s%> requires %<long double%> to be IBM 128-bit format",
+      error ("%qs requires %<long double%> to be IBM 128-bit format",
 	     bifaddr->bifname);
       return const0_rtx;
     }


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

only message in thread, other threads:[~2022-01-18 13:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-18 13:38 [gcc r12-6673] Fix -Wformat-diag for rs6000 target (part 1) 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).