PATCH: Re: eh_globals.cc compilation errors with -threads under hpux 10.20
John David Anglin
dave@hiauly1.hia.nrc.ca
Tue May 22 14:49:00 GMT 2001
> >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.
> 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.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
More information about the Libstdc++
mailing list