https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89714
--- Comment #4 from Jonathan Wakely ---
That wouldn't help when people link directly with -lpthread rather than
-pthread. _REENTRANT is not required for pthreads, so I don't think we should
depend on it.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89714
--- Comment #3 from Thomas Neumann ---
Perhaps the header files could be changed to react to _REENTRANT, as that seems
to be the define that is set by gcc when requesting threading support.
The redundant checks within the shared library are
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89714
--- Comment #2 from Jonathan Wakely ---
-D_GLIBCXX_GTHREAD_USE_WEAK=0 appears to work, but is not officially supported.
It also only affects the code in the libstdc++ headers, not the code inside
libstdc++.so that checks __gthread_active_p.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89714
Jonathan Wakely changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|