]> git.ipfire.org Git - thirdparty/gcc.git/commit
modula2 Fixes to the error format specifications
authorGaius Mulley <gaiusmod2@gmail.com>
Tue, 13 Jun 2023 22:21:42 +0000 (23:21 +0100)
committerGaius Mulley <gaiusmod2@gmail.com>
Tue, 13 Jun 2023 22:21:42 +0000 (23:21 +0100)
commitc980eeb88f897e0c3cc2ed40577b22d8032480a9
tree0cc943856b2a0e597580c6e789a6ed73e6e8e8fa
parent7474c46cf2d3715fe23871671c756fd5f65bc225
modula2 Fixes to the error format specifications

This patch contains a python3 script to check the meta format error
specifications.  It also includes about 20 fixes to M2Quads.mod format
specifications.

gcc/m2/ChangeLog:

* Make-lang.in (check-format-error): New rule.
* gm2-compiler/M2MetaError.mod (op): Add calls InternalError if
digits are detected.
* gm2-compiler/M2Quads.mod (BuildForToByDo): Bugfix to format
specifier.
(BuildLengthFunction): Bugfix to format specifiers.
(BuildOddFunction): Bugfix to format specifiers.
(BuildAbsFunction): Bugfix to format specifiers.
(BuildCapFunction): Bugfix to format specifiers.
(BuildChrFunction): Bugfix to format specifiers.
(BuildOrdFunction): Bugfix to format specifiers.
(BuildMakeAdrFunction): Bugfix to format specifiers.
(BuildSizeFunction): Bugfix to format specifiers.
(BuildBitSizeFunction): Bugfix to format specifiers.
* tools-src/checkmeta.py: New file.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
gcc/m2/Make-lang.in
gcc/m2/gm2-compiler/M2MetaError.mod
gcc/m2/gm2-compiler/M2Quads.mod
gcc/m2/tools-src/checkmeta.py [new file with mode: 0644]