On 8-Aug-11, at 11:53 AM, Rainer Orth wrote:
Paolo Bonzini <bonz...@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.
_REENTRANT doesn't imply DCE threads. The reentrant routines were added
to the non threaded version of libc in HP-UX 10 in preparation for the
transition
to POSIX threads in HP-UX 11. We define _REENTRANT under other
circumstances in pa-hpux10.h as the reentrant routines are needed for
libgfortran,
etc.
The multilib thread setup is done in t-dce-thr.
Dave