This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/11953] _REENTRANT defined when compiling non-threaded code.


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]