[Bug c++/108299] toplevel thread_local variables are not initialized if not referenced and initialized at wrong moment when referenced
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jan 5 15:17:31 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108299
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org,
| |redi at gcc dot gnu.org
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
CCing C++ committee members.
Requiring that any odr-uses of thread_local vars which have static
initialization (which strongly happens before any dynamic initialization) would
dynamically initialize all thread_local variables in the same TU declared
before such vars would have serious ABI and performance effects for no useful
gains.
More information about the Gcc-bugs
mailing list