diff options
author | Gaius Mulley <gaiusmod2@gmail.com> | 2024-03-23 16:04:23 +0000 |
---|---|---|
committer | Gaius Mulley <gaiusmod2@gmail.com> | 2024-03-23 16:04:23 +0000 |
commit | a68458187d4c889dc11b2b95f08a61adf087f69d (patch) | |
tree | 64e857c73ad83f5371f9cd7dde38040ec4b0cc0e | |
parent | c8a343f9f8602f4e6c1b385ddbeb58572234d447 (diff) | |
download | gcc-a68458187d4c889dc11b2b95f08a61adf087f69d.zip gcc-a68458187d4c889dc11b2b95f08a61adf087f69d.tar.gz gcc-a68458187d4c889dc11b2b95f08a61adf087f69d.tar.bz2 |
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>
-rw-r--r-- | gcc/m2/gm2-compiler/M2Quads.mod | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/m2/gm2-compiler/M2Quads.mod b/gcc/m2/gm2-compiler/M2Quads.mod index 52d72f6..891a76b 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 |