This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Make the thread_local g_global_boundary accessed from a single file

Authored by mstorsjo on Oct 13 2021, 11:44 PM.



This makes the compiler generated code for accessing the thread local
variable much simpler (no need for wrapper functions and weak pointers
to potential init functions), and can avoid toolchain bugs regarding how
to access TLS variables.

In particular, this fixes LLDB when built with current GCC/binutils for
MinGW, see

Diff Detail

Event Timeline

mstorsjo requested review of this revision.Oct 13 2021, 11:44 PM
mstorsjo created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptOct 13 2021, 11:44 PM
labath accepted this revision.Oct 13 2021, 11:50 PM

Seems straight-forward enough, though I am wondering how much of this code is actually necessary given the deprecation/repurposing of reproducers.

This revision is now accepted and ready to land.Oct 13 2021, 11:50 PM