summaryrefslogtreecommitdiff
path: root/boehm-gc/include
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2006-02-07 01:02:31 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2006-02-07 01:02:31 +0000
commit4b04d5da9664071707b4d123f361fe50de22fb9a (patch)
tree743d9a439c476b1312d603f747bf02782d271c50 /boehm-gc/include
parentdb21128ecc6870fbcd060be3d869dc0114ce37d7 (diff)
downloadgcc-4b04d5da9664071707b4d123f361fe50de22fb9a.tar.gz
2006-02-06 Jakub Jelinek <jakub@redhat.com>
Anthony Green <green@redhat.com> Tom Tromey <tromey@redhat.com> * include/gc_ext_config.h.in: Added GC_PTHREAD_SYM_VERSION. * include/gc_config.h.in: Rebuilt. * include/gc_pthread_redirects.h (pthread_create): Conditionally define. * pthread_support.c (pthread_create_): New global. (constr): New function. (pthread_create): Conditionally renamed. * configure: Rebuilt. * configure.ac (GC_PTHREAD_SYM_VERSION): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110682 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'boehm-gc/include')
-rw-r--r--boehm-gc/include/gc_config.h.in3
-rw-r--r--boehm-gc/include/gc_ext_config.h.in2
-rw-r--r--boehm-gc/include/gc_pthread_redirects.h2
3 files changed, 7 insertions, 0 deletions
diff --git a/boehm-gc/include/gc_config.h.in b/boehm-gc/include/gc_config.h.in
index 92f1b2cf460..cfaae9dd464 100644
--- a/boehm-gc/include/gc_config.h.in
+++ b/boehm-gc/include/gc_config.h.in
@@ -45,6 +45,9 @@
/* support for Tru64 pthreads */
#undef GC_OSF1_THREADS
+/* symbol version of pthread_create */
+#undef GC_PTHREAD_SYM_VERSION
+
/* support for Solaris pthreads */
#undef GC_SOLARIS_PTHREADS
diff --git a/boehm-gc/include/gc_ext_config.h.in b/boehm-gc/include/gc_ext_config.h.in
index 52a662dcf0b..716143dc62f 100644
--- a/boehm-gc/include/gc_ext_config.h.in
+++ b/boehm-gc/include/gc_ext_config.h.in
@@ -3,3 +3,5 @@ external clients that do not want to include the full gc.h. Currently this
is used by libjava/include/boehm-gc.h. */
#undef THREAD_LOCAL_ALLOC
+
+#undef GC_PTHREAD_SYM_VERSION
diff --git a/boehm-gc/include/gc_pthread_redirects.h b/boehm-gc/include/gc_pthread_redirects.h
index 842518cfcc4..f9d4939affc 100644
--- a/boehm-gc/include/gc_pthread_redirects.h
+++ b/boehm-gc/include/gc_pthread_redirects.h
@@ -68,7 +68,9 @@
# undef pthread_detach
#endif
+#ifndef GC_PTHREAD_SYM_VERSION
# define pthread_create GC_pthread_create
+#endif
# define pthread_join GC_pthread_join
# define pthread_detach GC_pthread_detach