This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [build] Move gthr to toplevel libgcc
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: Paolo Bonzini <bonzini at gnu dot org>
- Cc: John David Anglin <dave dot anglin at nrc-cnrc dot gc dot ca>, gcc-patches at gcc dot gnu dot org, "Joseph S. Myers" <joseph at codesourcery dot com>, Ian Lance Taylor <iant at google dot com>, Nathan Sidwell <nathan at codesourcery dot com>, Joel Sherrill <joel at oarcorp dot com>, Kai Tietz <ktietz at redhat dot com>, Richard Sandiford <rdsandiford at googlemail dot com>, David Edelsohn <dje dot gcc at gmail dot com>, Ulrich Weigand <uweigand at de dot ibm dot com>, Nicola Pero <nicola dot pero at meta-innovation dot com>, fortran at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Mon, 08 Aug 2011 17:53:30 +0200
- Subject: Re: [build] Move gthr to toplevel libgcc
- References: <yddr54wrp4q.fsf@manam.CeBiTec.Uni-Bielefeld.DE> <BLU0-SMTP97C5A5D7528A0366AFD69497210@phx.gbl> <4E400578.2040407@gnu.org>
Paolo Bonzini <bonzini@gnu.org> writes:
> On 08/08/2011 05:42 PM, John David Anglin wrote:
>>
>>
>>> ** _DCE_THREADS is used to select gthr-dce.h, but again dce is the
>>> only/default model on hppa[12]*-*-hpux10* (pa-hpux10.h), so the
>>> special-casing can be removed.
>>
>> DCE threads and thread single are both supported. There are
>> multilibs for both. Different libraries are needed for threaded and
>> non threaded programs, and there is no mechanism to detect whether
>> threads are active or not.
>
> Rainer used _REENTRANT for that, because it's already in the spec. Is that
> ok?
I could find no indication that HP-UX 10 supported anything but DCE
threads (especially no POSIX threads), so _REENTRANT being defined must
meant DCE threads, unless I'm mistaken.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University