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: John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>
- Subject: Re: PATCH: Re: eh_globals.cc compilation errors with -threads under hpux 10.20
- From: Phil Edwards <pedwards at disaster dot jaj dot com>
- Date: Tue, 22 May 2001 17:55:35 -0400
- Cc: rittle at labs dot mot dot com, libstdc++ at gcc dot gnu dot org, dave dot anglin at nrc dot ca
- References: <200105222111.f4MLB1I49283@latour.rsch.comm.mot.com> <200105222149.RAA11651@hiauly1.hia.nrc.ca>
On Tue, May 22, 2001 at 05:48:59PM -0400, John David Anglin wrote:
> > >From ./include/bits/c++config.h:
> >
> > [...]
> > // From SGI's stl_config.h; generic settings and user hooks (_NOTHREADS).
> > #ifdef _REENTRANT
> > # define __STL_THREADS
> > #endif
> >
> > #if defined(_PTHREADS) && !defined(_NOTHREADS)
> > # define __STL_PTHREADS
> > #endif
> > [...]
>
> and further down in `# ifdef __GNUC__'
>
> # ifdef _REENTRANT
> # define __STL_THREADS
> # endif
> # ifdef _PTHREADS
> # define __STL_PTHREADS
> # endif
>
> some duplication and inconsistency.
More than just 'some' I'm sure. Thread-related issues were the one area
during the stl_config.h removal/merge/cleanup that I absolutely shied away
from; too much other stuff going on then.
There's also the issue brought up here
http://gcc.gnu.org/ml/libstdc++/2001-05/msg00136.html (way at the bottom)
with __STL_THREADS and _NOTHREADS. Patches to clean this up (and thus
finish the work that I've let slide) would be most appreciated.
Phil
--
pedwards at disaster dot jaj dot com | pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools. Fools are protected by more capable fools.