This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
bootstrap failure with pthreads on solaris-2.6
- To: rittle at labs dot mot dot com
- Subject: bootstrap failure with pthreads on solaris-2.6
- From: Andreas Tobler <toa at pop dot agri dot ch>
- Date: Tue, 23 Oct 2001 12:09:41 +0200
- CC: gcc-patches at gcc dot gnu dot org
- Organization: zero
- References: <200110170251.f9H2pei56323@latour.rsch.comm.mot.com>
- Reply-To: toa at pop dot agri dot ch
Hi,
2001-10-16 Loren J. Rittle <ljrittle@acm.org>
* include/gc_pthread_redirects.h: Generalize test to use GC_PTHREADS.
* linux_threads.c (WRAP_FUNC(pthread_join)): Conditionalized on
GC_FREEBSD_THREADS, handle strange interaction between system
pthread implementation and boehm-gc signal-handler architecture.
* tests/test.c (main): Conditionalized on GC_FREEBSD_THREADS,
set stack.
* include/private/gcconfig.h (configuration keyed off FREEBSD):
Define SIG_SUSPEND, SIG_THR_RESTART. Do not define
MPROTECT_VDB when GC_FREEBSD_THREADS is defined.
first off, I don't have a clue about what's the correct solution. On
solaris-2.6 the bootstrap failed in solaris_pthreads.c
telling GC_thread was not declared.
A quick hack in private/solaris_threads.h brought it at least to
compile. I defined the top line to:
#ifdef GC_SOLARIS_PTHREADS iso. SOLARIS_THREADS.
I guess this is not correct, but could anyone have a look at?
Thanks,
Andreas
(testing, not coding)