From: Gaius Mulley Date: Fri, 17 Mar 2023 12:47:06 +0000 (+0000) Subject: PR modula2/109102 Wrong quotes in diagnostic X-Git-Tag: basepoints/gcc-14~472 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=daf20b4b83615d61bf1793e8edcd64681275e598;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/m2/gm2-gcc/m2builtins.cc b/gcc/m2/gm2-gcc/m2builtins.cc index b9ac7fc5da4b..8d104c41a1ee 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); \ } \ }