]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR modula2/122407: Followup to spell check remaining intrinsics
authorGaius Mulley <gaiusmod2@gmail.com>
Fri, 24 Oct 2025 20:51:36 +0000 (21:51 +0100)
committerGaius Mulley <gaiusmod2@gmail.com>
Fri, 24 Oct 2025 20:51:36 +0000 (21:51 +0100)
commit617110ddabd97730cbc59b39d21d3e3ab8381a46
tree57b8f1dc9975e3d12bd757dde4990fab7f74a151
parent33f8e30e0af142eef40e1fd28fa92a23ecac5b47
PR modula2/122407: Followup to spell check remaining intrinsics

This followup patch ensures that any unknown symbol spell check
error in the instrinsics uses the parameter token rather than the
procedure name token.  In turn this allows the filter module to
detect and remove multiple unknowns at the same token.
The patch also adds spell checking to the instrinsic parameters.

gcc/m2/ChangeLog:

PR modula2/122407
* gm2-compiler/FilterError.def (Copyright): Use correct
licence.
* gm2-compiler/FilterError.mod (Copyright): Ditto.
* gm2-compiler/M2Quads.mod (BuildNewProcedure): Rewrite.
(BuildIncProcedure): Ditto.
(BuildDecProcedure): Ditto.
(BuildInclProcedure): Ditto.
(BuildExclProcedure): Ditto.
(BuildAbsFunction): Ditto.
(BuildCapFunction): Ditto.
(BuildChrFunction): Ditto.
(BuildOrdFunction): Ditto.
(BuildIntFunction): Ditto.
(BuildMinFunction): Ditto.
(BuildMaxFunction): Ditto.
(BuildTruncFunction): Ditto.
(BuildTBitSizeFunction): Ditto.
(BuildTSizeFunction): Ditto.
(BuildSizeFunction): Ditto.

gcc/testsuite/ChangeLog:

PR modula2/122407
* gm2.dg/spell/iso/fail/badspellabs.mod: New test.
* gm2.dg/spell/iso/fail/badspelladr.mod: New test.
* gm2.dg/spell/iso/fail/badspellcap.mod: New test.
* gm2.dg/spell/iso/fail/badspellchr.mod: New test.
* gm2.dg/spell/iso/fail/badspellchr2.mod: New test.
* gm2.dg/spell/iso/fail/badspelldec.mod: New test.
* gm2.dg/spell/iso/fail/badspellexcl.mod: New test.
* gm2.dg/spell/iso/fail/badspellinc.mod: New test.
* gm2.dg/spell/iso/fail/badspellincl.mod: New test.
* gm2.dg/spell/iso/fail/badspellnew.mod: New test.
* gm2.dg/spell/iso/fail/badspellsize.mod: New test.
* gm2.dg/spell/iso/fail/dg-spell-iso-fail.exp: New test.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
15 files changed:
gcc/m2/gm2-compiler/FilterError.def
gcc/m2/gm2-compiler/FilterError.mod
gcc/m2/gm2-compiler/M2Quads.mod
gcc/testsuite/gm2.dg/spell/iso/fail/badspellabs.mod [new file with mode: 0644]
gcc/testsuite/gm2.dg/spell/iso/fail/badspelladr.mod [new file with mode: 0644]
gcc/testsuite/gm2.dg/spell/iso/fail/badspellcap.mod [new file with mode: 0644]
gcc/testsuite/gm2.dg/spell/iso/fail/badspellchr.mod [new file with mode: 0644]
gcc/testsuite/gm2.dg/spell/iso/fail/badspellchr2.mod [new file with mode: 0644]
gcc/testsuite/gm2.dg/spell/iso/fail/badspelldec.mod [new file with mode: 0644]
gcc/testsuite/gm2.dg/spell/iso/fail/badspellexcl.mod [new file with mode: 0644]
gcc/testsuite/gm2.dg/spell/iso/fail/badspellinc.mod [new file with mode: 0644]
gcc/testsuite/gm2.dg/spell/iso/fail/badspellincl.mod [new file with mode: 0644]
gcc/testsuite/gm2.dg/spell/iso/fail/badspellnew.mod [new file with mode: 0644]
gcc/testsuite/gm2.dg/spell/iso/fail/badspellsize.mod [new file with mode: 0644]
gcc/testsuite/gm2.dg/spell/iso/fail/dg-spell-iso-fail.exp [new file with mode: 0644]