From: Gaius Mulley Date: Sat, 23 Mar 2024 16:04:23 +0000 (+0000) Subject: PR modula2/114444 trunc float malformed error cause ICE X-Git-Tag: basepoints/gcc-15~491 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a68458187d4c889dc11b2b95f08a61adf087f69d;p=thirdparty%2Fgcc.git PR modula2/114444 trunc float malformed error cause ICE This patch corrects two error format specifiers. gcc/m2/ChangeLog: PR modula2/114444 * gm2-compiler/M2Quads.mod (BuildTruncFunction): Correct error format specifier. (BuildFloatFunction): Correct error format specifier. Signed-off-by: Gaius Mulley --- diff --git a/gcc/m2/gm2-compiler/M2Quads.mod b/gcc/m2/gm2-compiler/M2Quads.mod index 52d72f6cd628..891a76b4660e 100644 --- a/gcc/m2/gm2-compiler/M2Quads.mod +++ b/gcc/m2/gm2-compiler/M2Quads.mod @@ -9840,12 +9840,12 @@ BEGIN BuildConvertFunction ELSE MetaErrorT1 (functok, - 'argument to {%1E%ad} must be a float point type', Sym) ; + 'argument to {%1Ead} must be a float point type', Sym) ; PushTFtok (MakeConstLit (functok, MakeKey('0'), Type), Type, functok) END ELSE MetaErrorT2 (vartok, - 'argument to {%1E%ad} must be a variable or constant, seen {%2ad}', + 'argument to {%1Ead} must be a variable or constant, seen {%2ad}', Sym, Var) ; PushTFtok (MakeConstLit (functok, MakeKey('0'), Type), Type, functok) END @@ -9924,7 +9924,7 @@ BEGIN BuildConvertFunction ELSE MetaErrorT1 (vartok, - 'argument to {%1E%ad} must be a variable or constant', ProcSym) ; + 'argument to {%1Ead} must be a variable or constant', ProcSym) ; PushTFtok (MakeConstLit (functok, MakeKey('0.0'), Type), Type, functok) END ELSE