在 2026-1-22 01:47, Pali Rohár 写道:
With all those changes, the _gnu_exception_handler() is not needed or used.So based on the fact that __mingw_SEH_error_handler does not use those arguments and is ready to be removed, I chose the option to implement _gnu_exception_handler() around __mingw_SEH_error_handler() as an intermediate step until it is completely removed.
I have searched for `_gnu_exception_handler` on GitHub and found some references; most of them are duplicates, but I have examined all results on the first two pages and none of them are direct invocation from user code.
There are also references in GCC source, but in test data so maybe they are linked from CRT objects: $ git grep -Fnr _gnu_exception_handler Binary file libgo/go/debug/dwarf/testdata/line-gcc-win.bin matches Binary file libgo/go/debug/pe/testdata/gcc-386-mingw-exec matches Binary file libgo/go/debug/pe/testdata/gcc-amd64-mingw-exec matchesNow the only reference to `_gnu_exception_handler` seems to be in 'mingw-w64-libraries/winpthreads/src/thread.c'. If you have a patch which removes `_gnu_exception_handler` eventually, maybe it should be squashed into this one.
-- Best regards, LIU Hao
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
