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

commit r15-4072-ge2a701cd0419a1898a2a359711572a8bcf4f8eb3
Author: Gaius Mulley <gaiusm...@gmail.com>
Date:   Fri Oct 4 15:30:10 2024 +0100

    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 <gaiusm...@gmail.com>

Diff:
---
 gcc/m2/gm2-compiler/M2Swig.mod | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/m2/gm2-compiler/M2Swig.mod b/gcc/m2/gm2-compiler/M2Swig.mod
index b7f34426adb8..7ef8ff36da77 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) ;

Reply via email to