This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Support pthread on IRIX 6
- To: gcc-patches at gcc dot gnu dot org
- Subject: PATCH: Support pthread on IRIX 6
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Tue, 12 Jun 2001 15:19:32 -0700
This patch adds the pthread support on IRIX 6.
H.J.
---
2001-06-12 H.J. Lu <hjl@gnu.org>
* gthr-posix.h (__gthread_active_ptr): Initiliazed with
pthread_once instead of pthread_create. IRIX 6.5 has
pthread_create in libc.so.
--- gcc/gthr-posix.h.irix Tue Jun 12 14:54:42 2001
+++ gcc/gthr-posix.h Tue Jun 12 14:55:23 2001
@@ -70,7 +70,7 @@ typedef pthread_mutex_t __gthread_mutex_
#pragma weak sched_yield
#endif
-static void *__gthread_active_ptr = &pthread_create;
+static void *__gthread_active_ptr = &pthread_once;
static inline int
__gthread_active_p (void)