diff options
author | Gaius Mulley <gaiusmod2@gmail.com> | 2023-08-02 00:34:29 +0100 |
---|---|---|
committer | Gaius Mulley <gaiusmod2@gmail.com> | 2023-08-02 00:34:29 +0100 |
commit | 8bf244e32a0d505720396fbb7df26f824c7f77eb (patch) | |
tree | 17852afe0ad9f2736b56553fd5dc6cf53998900b /ChangeLog | |
parent | 6cb2f2c7f36c999590a949f663d6057cbc67271f (diff) | |
download | gcc-8bf244e32a0d505720396fbb7df26f824c7f77eb.zip gcc-8bf244e32a0d505720396fbb7df26f824c7f77eb.tar.gz gcc-8bf244e32a0d505720396fbb7df26f824c7f77eb.tar.bz2 |
PR modula2/110161 Comparing a typed procedure variable to 0 gives ICE or assertion
This patch allows a proc type to be compared against an address.
gcc/m2/ChangeLog:
PR modula2/110161
* gm2-compiler/M2Check.mod (checkProcTypeEquivalence): New
procedure function.
(checkTypeKindEquivalence): Call checkProcTypeEquivalence
if either left or right is a proc type.
* gm2-compiler/M2Quads.mod (BuildRelOp): Create
combinedTok prior to creating the range check quadruple.
Use combinedTok when creating the range check quadruple.
gcc/testsuite/ChangeLog:
PR modula2/110161
* gm2/pim/fail/badxproc.mod: New test.
Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
Diffstat (limited to 'ChangeLog')
0 files changed, 0 insertions, 0 deletions