[gcc r12-6673] Fix -Wformat-diag for rs6000 target (part 1).

Martin Liska marxin@gcc.gnu.org
Tue Jan 18 13:38:37 GMT 2022


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;
     }


More information about the Gcc-cvs mailing list