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


> >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)


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