[PATCH] ntdll: Only call wine exception handlers on the current stack.

Jacek Caban jacek at codeweavers.com
Tue Feb 1 09:06:41 CST 2022


On 2/1/22 13:57, Paul Gofman wrote:
> Not sure though if that is good enough though, the prior understanding 
> was that these sort of fixes are waiting for mingw .seh support.


It's not just SEH support that's missing in mingw (in fact, GCC mingw 
already supports SEH on x86_64 and llvm-mingw on all targets), but it'd 
also need some sort of __try/__except support (or something similar), 
which is not present in GCC.


clang already supports it on all targets. I gave it a try when I was 
working on clang support and it looked promising. Back then, I decided 
to put it aside until clang builds are generally in a better shape. I 
just gave it another quick look and with the attached patch, I was able 
to build x64_64 Wine. Unfortunately it fails to run iexplore (my quick 
test), so there is more work needed. If you'd like to give it a try, use 
something like this for configure:

configure CROSSCC=clang CROSSCFLAGS="-g -O2 -DUSE_COMPILER_EXCEPTIONS" 
--enable-win64


Jacek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: seh.diff
Type: text/x-patch
Size: 5172 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20220201/039c179f/attachment.bin>


More information about the wine-devel mailing list