[Bug libstdc++/11953] _REENTRANT defined when compiling non-threaded code.
pinskia at physics dot uc dot edu
gcc-bugzilla@gcc.gnu.org
Wed Jun 9 19:30:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list