This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


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

Re: PATCH: Re: eh_globals.cc compilation errors with -threads under hpux 10.20


> >> Notice that _PTHREADS is defined in ./config/threads-posix.h after it
> >> included ./include/bits/c++config.h (which checked for that macro being
> >> defined)...
> 
> > I didn't notice this problem but it further confirms that threads-posix.h
> > shouldn't muck with a define that is normally a compiler define.

I now agree with this postion: threads-posix.h shouldn't re-define 
_PTHREADS or _REENTRENT.

> BTW, none of this is to say that I would not support making gcc
> declare _GCC_PTHREADS (and _PTHREADS and other symbols, if required
> for a given port's headers) when -pthread was provided by the user and
> making -pthread an option for all POSIX thread-capable ports.  I have
> supported basically that position for years.  Who do we have to
> convince?

I think you just have to supply a patch. 

-benjamin


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