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 <gaiusmod2@gmail.com>
This commit is contained in:
Gaius Mulley 2024-03-23 16:04:23 +00:00
parent c8a343f9f8
commit a68458187d

View file

@ -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