[llvm] [MinGW] MinGW emulate TLS (PR #74980)

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 11 04:32:33 PST 2023


mstorsjo wrote:

This is an ABI break for environments that currently use native TLS - llvm-mingw and the msys2 environment clang64 currently successfully use the default of native TLS.

While the fact that emulated TLS has to be manually enabled when interacting with GCC/libstdc++ isn't ideal, any path forward needs to acknowledge that the current default also is useful and that someone may want to keep using that.

Also to acknowledge the issue, msys2 does patch their llvm builds in the mingw32/mingw64 environments (where clang is used with libstdc++) to do exactly this. But one can't blindly change this without a plan for how to deal with the cases that currently use native TLS.

CC @mati865 @lazka @jeremyd2019.

https://github.com/llvm/llvm-project/pull/74980


More information about the llvm-commits mailing list