在 2026-9-26 21:30, Pali Rohár 写道:
Hello, in the attachment I'm sending second batch of changes which cleanups and improves various mingw-w64 crt parts of TLS code.Kirill run CI on github and tests passed: https://github.com/maiddaisuki/mingw-w64/actions/runs/36212375264 There are various changes which: - deduplicate code - rename variables (I tried to give them better names) - fixes mingw-w64 emulation of CRT _register_thread_local_exe_atexit_callback function for msvcrt builds - use tentative variables to link on demand _register_thread_local_exe_atexit_callback and helper code around - fix __dyn_tls_dtor to be executed before atexit callbacks - fixes/extends of existing tests and new tests for order verification
These changes are fine, so I have pushed them now.
Note that the last test t_cpp_dtor_atexit_order.cpp is failing for mingw-w64/gcc combination, so I explicitly skipped it. But this test is passing for mingw-w64/clang and also for linux/gcc combinations, so it is possible that there is a bug in gcc when targeting mingw-w64 or PE.
This is quite complicated. You probably want to check: - Is it the mingw-w64 `__cxa_thread_atexit()` or the libstdc++ one that is called? - Is it native TLS or emutls? - Is libgcc linked statically or as a DLL? - Is libstdc++ linked statically or as a DLL? -- 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
