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: dave at HIAULY1 dot HIA dot NRC dot CA (John David Anglin)
- 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: Wed, 23 May 2001 13:50:08 -0400 (EDT)
- Cc: rittle at labs dot mot dot com, libstdc++ at gcc dot gnu dot org, dave dot anglin at NRC dot CA
> eh_globals.cc and eh_alloc.cc include gthr.h. For gthr.h to include
> the correct thread definitions, the following have to be correctly defined
> or not defined as the case may be:
This is what currently happens under i686 linux compiling eh_globals.cc:
# 34 "../../../../libstdc++-v3/libsupc++/eh_globals.cc" 2
# 1 "../../../../gcc/gthr.h" 1
# 102 "../../../../gcc/gthr.h"
# 1 "../../../../gcc/gthr-single.h" 1
# 34 "../../../../gcc/gthr-single.h"
typedef int __gthread_mutex_t;
We got the wrong thread model. We should have got gthr-default.h
which is a link to gthr-posix.h. If _PTHREADS were defined, gthr.h
would have have directly included gthr-posix.h, but there is a difference
with respect to the handling of GTHREAD_USE_WEAK.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)