https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121314

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Gaius Mulley <ga...@gcc.gnu.org>:

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

commit r16-2696-gaa19c1076f4949c95f4eafb8fbe5a44dfb8ae11c
Author: Gaius Mulley <gaiusm...@gmail.com>
Date:   Thu Jul 31 23:28:53 2025 +0100

    PR modula2/121314: quotes appearing in concatenated error strings

    This patch fixes the addition of strings so that no extraneous quotes
    appear in the result string.  The fix is made to the bootstrap tool mc
    and it has been rebuilt.

    gcc/m2/ChangeLog:

            PR modula2/121314
            * mc-boot/GFormatStrings.cc (PerformFormatString): Rebuilt.
            * mc-boot/GM2EXCEPTION.cc (M2EXCEPTION_M2Exception): Rebuilt.
            * mc-boot/GSFIO.cc (SFIO_GetFileName): Rebuilt.
            * mc-boot/GSFIO.h (SFIO_GetFileName): Rebuilt.
            * mc-boot/Gdecl.cc: Rebuilt.
            * mc-boot/GmcFileName.h: Rebuilt.
            * mc/decl.mod (getStringChar): New procedure function.
            (getStringContents): Call getStringChar.
            (addQuotes): New procedure function.
            (foldBinary): Call addQuotes to add delimiting quotes
            to the new string.

    gcc/testsuite/ChangeLog:

            PR modula2/121314
            * gm2/errors/fail/badindrtype.mod: New test.
            * gm2/errors/fail/badindrtype2.mod: New test.

    Signed-off-by: Gaius Mulley <gaiusm...@gmail.com>

Reply via email to