[Bug middle-end/106435] constructor of thread_local static member is not called

2022-07-25 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106435 --- Comment #8 from Iain Sandoe --- I think we can fix this for non-alias targets by building stub functions instead of the alias. There is a small penalty for size and speed from the call, but for at least x86 at O2 we sibcall and effectively e

[Bug middle-end/106435] constructor of thread_local static member is not called

2022-07-25 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106435 Iain Sandoe changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug middle-end/106435] constructor of thread_local static member is not called

2022-07-25 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106435 Iain Sandoe changed: What|Removed |Added Known to fail||13.0 Build|aarch64-apple-dar

[Bug middle-end/106435] constructor of thread_local static member is not called

2022-07-25 Thread fxcoudert at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106435 --- Comment #5 from Francois-Xavier Coudert --- > there was a change made to support cross-TU static inits for TLS For what it's worth, putting everything in a single cpp file makes it work as expected.

[Bug middle-end/106435] constructor of thread_local static member is not called

2022-07-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106435 --- Comment #4 from Andrew Pinski --- (In reply to Iain Sandoe from comment #3) > (In reply to Andrew Pinski from comment #2) > > This might be an emulated TLS issue ... As it looks like it is not working > > on mingw either. > > quite possibly

[Bug middle-end/106435] constructor of thread_local static member is not called

2022-07-25 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106435 --- Comment #3 from Iain Sandoe --- (In reply to Andrew Pinski from comment #2) > This might be an emulated TLS issue ... As it looks like it is not working > on mingw either. quite possibly; - there was a change made to support cross-TU static

[Bug middle-end/106435] constructor of thread_local static member is not called

2022-07-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106435 --- Comment #2 from Andrew Pinski --- This might be an emulated TLS issue ... As it looks like it is not working on mingw either.