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


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


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