]> gcc.gnu.org Git - gcc.git/commit
PR modula2/114418 missing import of TSIZE from system causes ICE
authorGaius Mulley <gaiusmod2@gmail.com>
Thu, 21 Mar 2024 18:30:23 +0000 (18:30 +0000)
committerGaius Mulley <gaiusmod2@gmail.com>
Thu, 21 Mar 2024 18:30:23 +0000 (18:30 +0000)
commitba744d50ac0360f7992a42494db766f6548913e3
tree276e5c526a90bb02c9e80ad86fffbf85a99959f7
parent509352069d6f166d396f4b4a86e71ea521f2ca78
PR modula2/114418 missing import of TSIZE from system causes ICE

This patch detects whether the symbol func is NulSym before generating
an error and if so just uses the token location and fixed string to
generate an error message.

gcc/m2/ChangeLog:

PR modula2/114418
* gm2-compiler/PCSymBuild.mod (PushConstFunctionType): Check
func against NulSym and issue an error.

gcc/testsuite/ChangeLog:

PR modula2/114418
* gm2/pim/fail/missingtsize.mod: New test.
* gm2/pim/fail/missingtsize2.mod: New test.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
gcc/m2/gm2-compiler/PCSymBuild.mod
gcc/testsuite/gm2/pim/fail/missingtsize.mod [new file with mode: 0644]
gcc/testsuite/gm2/pim/fail/missingtsize2.mod [new file with mode: 0644]
This page took 0.061511 seconds and 6 git commands to generate.