This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

bootstrap failure with pthreads on solaris-2.6


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)


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