PATCH: Re: eh_globals.cc compilation errors with -threads under hpux 10.20
Phil Edwards
pedwards@disaster.jaj.com
Tue May 22 16:13:00 GMT 2001
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.
More information about the Libstdc++
mailing list