This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: PATCH: Re: eh_globals.cc compilation errors with -threads under hpux 10.20
- To: rittle at labs dot mot dot com
- Subject: Re: PATCH: Re: eh_globals.cc compilation errors with -threads under hpux 10.20
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Wed, 23 May 2001 10:00:00 -0700 (PDT)
- cc: libstdc++ at gcc dot gnu dot org, dave dot anglin at nrc dot ca
> >> 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