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: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Tue, 22 May 2001 17:48:59 -0400 (EDT)
- Cc: libstdc++ at gcc dot gnu dot org, dave dot anglin at nrc dot ca
> >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)