From 8355f3188bfb01b7e4f0dc3110cc6aaff7ee791e Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Wed, 12 Jan 2022 09:43:28 +0100 Subject: [PATCH] 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%>. --- 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 % to be IBM 128-bit format", + error ("%qs requires % to be IBM 128-bit format", bifaddr->bifname); return const0_rtx; }