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: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jun 2004 19:30:48 -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 pinskia at physics dot uc dot edu 2004-06-09 19:30 -------
Subject: Re: _REENTRANT defined when compiling non-threaded code.
>
>
> ------- Additional Comments From ro at techfak dot uni-bielefeld dot de 2004-06-09 19:24 -------
> Subject: Re: _REENTRANT defined when compiling non-threaded code.
>
> mmitchel at gcc dot gnu dot org writes:
>
> > Can we conditionalize the definition of _REENTRANT only for those platforms
> > whose POSIX threads implementation really does depend on this?
>
> That would be one possibility. Currently, only Tru64 UNIX V5.1[AB] is
> known to need this.
>
> Otherwise, a patch like the following would be necessary, which is really
> ugly. It requires every user of gthr.h to define _REENTRANT for Tru64 UNIX
> (or other platforms that need might it), even without knowing if pthreads
> are in use at all. Currently, libjava has a mechanism for
> platform-specific defines, while libobjc (the other gthr.h user) has not.
The libobjc part is fine with me since there is no need for platform-specific
defines as the header file is only included the sources of libobjc and never
included with from any user code.
Thanks,
Andrew Pinski
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11953