This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/11953] _REENTRANT defined when compiling non-threaded code.
- From: "redi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 May 2004 21:21:31 -0000
- Subject: [Bug libstdc++/11953] _REENTRANT defined when compiling non-threaded code.
- References: <20030817022106.11953.carlo@alinoe.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From redi at gcc dot gnu dot org 2004-05-18 21:21 -------
Rainer,
Admittedly, Boost was never correct to use that macro, but the fact remains that
the change has caused problems that Boost must now address.
If there is a better way to tell (at preprocessing stage) whether g++ will link
to the real pthread_* symbols or the weak ones defined in gthr-posix.c I'm sure
the Boost developers would be glad to use it.
Detecting _REENTRANT used to work on linux and other key platforms and so my
naive opinion is that a similar, but documented and cross-platform, macro such
as __GXX_PTHREADS__ would serve the purpose better.
If something like this were acceptable I'd help the work where possible
(is there an easier way than adding it to the all the config/${cpu}/*.h files
for relevant platforms?)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11953