PATCH: Re: eh_globals.cc compilation errors with -threads under hpux 10.20
Benjamin Kosnik
bkoz@redhat.com
Wed May 23 10:00:00 GMT 2001
> >> 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
More information about the Libstdc++
mailing list