https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106435
--- Comment #8 from Iain Sandoe <iains at gcc dot gnu.org> --- 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 elide the __thread_init function for at least one of the direct inits. ... have to tidy up a bit and test more widely.