https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115126
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Note, weakrefs are unfortunately required to be static (I think we want from them being extern initially and they were quickly changed into static - 4.1 had them extern, 4.2+ is static). Sure, for glibc >= 2.34 (except for Hurd) we stopped using those, but on older glibc or non-glibc we didn't... Non-weakrefs are all static inline right now, perhaps we could use some __GTHREAD_INLINE macro which would expand to static inline in C and just inline in C++ (or what else is desirable there?).