[Bug modula2/108404] M2RTS_Halt fails with a segv (it should emit a diagnostic and exit).

2023-08-10 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108404 Gaius Mulley changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug modula2/108404] M2RTS_Halt fails with a segv (it should emit a diagnostic and exit).

2023-08-10 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108404 --- Comment #8 from Iain Sandoe --- (In reply to Gaius Mulley from comment #7) > I wonder if this bug has now been fixed via the other PR fixes. > Specifically the rewrite of RTco.cc, the defensive use of select, bugfixes > to HIGH and FIO.mod

[Bug modula2/108404] M2RTS_Halt fails with a segv (it should emit a diagnostic and exit).

2023-08-05 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108404 --- Comment #7 from Gaius Mulley --- I wonder if this bug has now been fixed via the other PR fixes. Specifically the rewrite of RTco.cc, the defensive use of select, bugfixes to HIGH and FIO.mod (memcpy parameters)? It might be worth a re-run

[Bug modula2/108404] M2RTS_Halt fails with a segv (it should emit a diagnostic and exit).

2023-01-17 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108404 --- Comment #6 from Iain Sandoe --- (In reply to Gaius Mulley from comment #5) > I've committed the patch above - since the source tree without it definitely > has a mismatched prototype. The exit issue needs to be resolved before > this PR ca

[Bug modula2/108404] M2RTS_Halt fails with a segv (it should emit a diagnostic and exit).

2023-01-17 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108404 --- Comment #5 from Gaius Mulley --- I've committed the patch above - since the source tree without it definitely has a mismatched prototype. The exit issue needs to be resolved before this PR can close.

[Bug modula2/108404] M2RTS_Halt fails with a segv (it should emit a diagnostic and exit).

2023-01-16 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108404 --- Comment #4 from Iain Sandoe --- Works for me - now the failing test cases produce a diagnostic; /src-local/gcc-master/libgm2/libm2iso/RTco.cc:373:in initThread has caused failed to set stack size attribute Although it does not seem to exi

[Bug modula2/108404] M2RTS_Halt fails with a segv (it should emit a diagnostic and exit).

2023-01-16 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108404 Gaius Mulley changed: What|Removed |Added CC||gaius at gcc dot gnu.org --- Comment #3

[Bug modula2/108404] M2RTS_Halt fails with a segv (it should emit a diagnostic and exit).

2023-01-16 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108404 --- Comment #2 from Gaius Mulley --- For completeness if Modula-2 calls a C function defined in a DEFINITION FOR "C" module then it will pass a "hello world" as a pointer to a null terminated character sequence. All strings gm2 generate are nul

[Bug modula2/108404] M2RTS_Halt fails with a segv (it should emit a diagnostic and exit).

2023-01-15 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108404 --- Comment #1 from Gaius Mulley --- Ah the ARRAY OF CHAR is passed as: struct { char *contents; unsigned int high }. (Even if VAR or non VAR). The effect of non VAR is for the callee to take a copy. Essentially if RTco calls halt it should: