From: Gaius Mulley Date: Fri, 4 Oct 2024 14:30:10 +0000 (+0100) Subject: PR modula2/116918 -fswig correct syntax fixup X-Git-Tag: basepoints/gcc-16~5481 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2a701cd0419a1898a2a359711572a8bcf4f8eb3;p=thirdparty%2Fgcc.git PR modula2/116918 -fswig correct syntax fixup This patch adds a missing % escape in DoCheckUnbounded. gcc/m2/ChangeLog: PR modula2/116918 * gm2-compiler/M2Swig.mod (DoCheckUnbounded): Escape the % character used in array_functions with %%. Signed-off-by: Gaius Mulley --- diff --git a/gcc/m2/gm2-compiler/M2Swig.mod b/gcc/m2/gm2-compiler/M2Swig.mod index b7f34426adb..7ef8ff36da7 100644 --- a/gcc/m2/gm2-compiler/M2Swig.mod +++ b/gcc/m2/gm2-compiler/M2Swig.mod @@ -887,7 +887,7 @@ BEGIN fprintf0(f, ') };\n') ; IF typeUnique THEN - fprintf0(f, '%array_functions(') ; + fprintf0(f, '%%array_functions(') ; DoType(type) ; fprintf0(f, ', ') ; DoType(type) ;