public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-6735] PR modula2/109102 Wrong quotes in diagnostic
@ 2023-03-17 12:48 Gaius Mulley
  0 siblings, 0 replies; only message in thread
From: Gaius Mulley @ 2023-03-17 12:48 UTC (permalink / raw)
  To: gcc-cvs

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

commit r13-6735-gdaf20b4b83615d61bf1793e8edcd64681275e598
Author: Gaius Mulley <gaiusmod2@gmail.com>
Date:   Fri Mar 17 12:47:06 2023 +0000

    PR modula2/109102 Wrong quotes in diagnostic
    
    The backtick and single quote should be replaced with %< and %> or
    %qs.
    
    gcc/m2/ChangeLog:
    
            PR modula2/109102
            * gm2-gcc/m2builtins.cc (ASSERT): Change format specifier to
            use %qs rather than quotes.
    
    Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>

Diff:
---
 gcc/m2/gm2-gcc/m2builtins.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/m2/gm2-gcc/m2builtins.cc b/gcc/m2/gm2-gcc/m2builtins.cc
index b9ac7fc5da4..8d104c41a1e 100644
--- a/gcc/m2/gm2-gcc/m2builtins.cc
+++ b/gcc/m2/gm2-gcc/m2builtins.cc
@@ -40,7 +40,7 @@ along with GNU Modula-2; see the file COPYING3.  If not see
     if (!(X))                                                                 \
       {                                                                       \
         debug_tree (Y);                                                       \
-        internal_error ("%s:%d:assertion of condition `%s' failed", __FILE__, __LINE__,  \
+        internal_error ("%s:%d:assertion of condition %qs failed", __FILE__, __LINE__,  \
                         #X);                                                  \
       }                                                                       \
   }

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

only message in thread, other threads:[~2023-03-17 12:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-17 12:48 [gcc r13-6735] PR modula2/109102 Wrong quotes in diagnostic Gaius Mulley

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).