diff options
author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-02 14:56:58 +0000 |
---|---|---|
committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-02 14:56:58 +0000 |
commit | 9bf5723dce955cb1210af9541787d03d9433cfd3 (patch) | |
tree | c070d60e2b0ce4ddf54fb60be91b6eb4e926d8f5 /boehm-gc/pthread_support.c | |
parent | 35ab36626c11fcbbcaee742f279cde163d681ae3 (diff) | |
download | gcc-9bf5723dce955cb1210af9541787d03d9433cfd3.tar.gz |
PR boehm-gc/21940
PR boehm-gc/21942
* configure.ac (GC_SOLARIS_THREADS): Don't define on *-*-solaris*.
Use alternate thread library in /usr/lib/lwp.
* configure: Regenerate.
* dyn_load.c: Use GC_SOLARIS_PTHREADS.
* include/gc_config_macros.h (GC_SOLARIS_THREADS): Don't define.
* include/private/gcconfig.h: Handle 64-bit Solaris 2/x86.
(GC_SOLARIS_THREADS): Don't define.
* include/private/solaris_threads.h: Remove.
* pthread_support.c (GC_thr_init) [GC_SOLARIS_PTHREADS]: Determine
GC_nprocs via sysconf().
* Makefile.am (libgcjgc_la_SOURCES): Remove solaris_pthreads.c and
solaris_threads.c.
(gctest_LDADD): Use THREADLIBS instead of THREADDLLIBS.
* Makefile.in: Regenerate.
* solaris_pthreads.c: Remove.
* solaris_threads.c: Remove.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126211 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'boehm-gc/pthread_support.c')
-rw-r--r-- | boehm-gc/pthread_support.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/boehm-gc/pthread_support.c b/boehm-gc/pthread_support.c index f0a58c886a3..8210357766c 100644 --- a/boehm-gc/pthread_support.c +++ b/boehm-gc/pthread_support.c @@ -883,7 +883,8 @@ void GC_thr_init() # if defined(GC_HPUX_THREADS) GC_nprocs = pthread_num_processors_np(); # endif -# if defined(GC_OSF1_THREADS) || defined(GC_AIX_THREADS) +# if defined(GC_OSF1_THREADS) || defined(GC_AIX_THREADS) \ + || defined(GC_SOLARIS_PTHREADS) GC_nprocs = sysconf(_SC_NPROCESSORS_ONLN); if (GC_nprocs <= 0) GC_nprocs = 1; # endif |