Hi Michael, Not only your patch lets the signal.c sample work on Windows x64/tcc -m64 but it also makes OpenLisp REPL happy on invalid code:
? (cons . 1) ** <program-error> : OpenLisp : machine-error : 11 Cherry on the cake, tcc is now promoted a Gold port :o)) There is no functional differences between VC++, gcc and now tcc. Needleless to say I'm happy! Thank you! You can apply this patch to mod. Thank you also to grischka for his help. C. -----Original Message----- From: Tinycc-devel [mailto:tinycc-devel-bounces+eligis=orange...@nongnu.org] On Behalf Of Michael Matz Sent: Thursday, April 11, 2019 02:10 To: tinycc-devel@nongnu.org Subject: Re: [Tinycc-devel] Windows x86_64 BUG, SIGSEV is not correctly handled by installed signal handler. Hello, On Thu, 11 Apr 2019, Michael Matz wrote: >> I wonder why the result worked under wine then, though; strange. > > Must be the very old wine version on the machine I initially used for > testing (where the program indeed works). With newer wine I can > reproduce the non-working. So, with the hint of grischka I came up with the attached patch which implements the plumbing in the startup files so that Christians example signal.c works. It's not in any way a real implementation of SEH, but that isn't necessary. I'll wait for feedback on this and not yet commit to git. Ciao, Michael. _______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel