OSDN Git Service

* config/i386/i386-protos.h (ix86_split_fp_branch): New rtx
[pf3gnuchains/gcc-fork.git] / gcc / gthr-posix.h
index 9120410..7cab614 100644 (file)
@@ -1,6 +1,6 @@
 /* Threads compatibility routines for libgcc2 and libobjc.  */
 /* Compile this one with gcc.  */
-/* Copyright (C) 1997, 1999, 2000, 2001, 2002, 2003
+/* Copyright (C) 1997, 1999, 2000, 2001, 2002, 2003, 2004
    Free Software Foundation, Inc.
 
 This file is part of GCC.
@@ -70,6 +70,11 @@ typedef pthread_mutex_t __gthread_recursive_mutex_t;
 #pragma weak pthread_mutex_lock
 #pragma weak pthread_mutex_trylock
 #pragma weak pthread_mutex_unlock
+#pragma weak pthread_mutexattr_init
+#pragma weak pthread_mutexattr_settype
+#pragma weak pthread_mutexattr_destroy
+
+#pragma weak pthread_mutex_init
 
 #if defined(_LIBOBJC) || defined(_LIBOBJC_WEAK)
 /* Objective-C.  */
@@ -79,7 +84,6 @@ typedef pthread_mutex_t __gthread_recursive_mutex_t;
 #pragma weak pthread_cond_signal
 #pragma weak pthread_cond_wait
 #pragma weak pthread_exit
-#pragma weak pthread_mutex_init
 #pragma weak pthread_mutex_destroy
 #pragma weak pthread_self
 #ifdef _POSIX_PRIORITY_SCHEDULING
@@ -101,7 +105,8 @@ typedef pthread_mutex_t __gthread_recursive_mutex_t;
 static inline int
 __gthread_active_p (void)
 {
-  static void *const __gthread_active_ptr = (void *) &pthread_create;
+  static void *const __gthread_active_ptr 
+    = __extension__ (void *) &pthread_create;
   return __gthread_active_ptr != 0;
 }
 
@@ -139,7 +144,7 @@ __gthread_objc_init_thread_system (void)
 {
   if (__gthread_active_p ())
     {
-      /* Initialize the thread storage key */
+      /* Initialize the thread storage key */
       if (pthread_key_create (&_objc_thread_storage, NULL) == 0)
        {
          /* The normal default detach state for threads is