[Bug libstdc++/115126] TU-local entity exposures in libstdc++

2024-05-17 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115126

Jakub Jelinek  changed:

   What|Removed |Added

 CC||jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek  ---
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?).

[Bug libstdc++/115126] TU-local entity exposures in libstdc++

2024-05-17 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115126

Patrick Palka  changed:

   What|Removed |Added

 CC||ppalka at gcc dot gnu.org

--- Comment #1 from Patrick Palka  ---
For __is_unique_ptr, seems we could just remove it since it isn't actually used
anywhere.