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]

PATCH: Support pthread on IRIX 6


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)


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