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


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.


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