OSDN Git Service

PR target/41810
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Nov 2009 15:17:04 +0000 (15:17 +0000)
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Nov 2009 15:17:04 +0000 (15:17 +0000)
* gthr-solaris.h (__gthread_mutex_destroy): Remove UNUSED.
[SUPPORTS_WEAK && GTHREAD_USE_WEAK] (__gthread_active_p): Use
__extension__ to allow cast from function pointer to object
pointer in C++.
* doc/install.texi (--enable-threads): Clarify use of Solaris
threads.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154708 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/doc/install.texi
gcc/gthr-solaris.h

index 2c22499..73b15a8 100644 (file)
@@ -1,3 +1,13 @@
+2009-11-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       PR target/41810
+       * gthr-solaris.h (__gthread_mutex_destroy): Remove UNUSED.
+       [SUPPORTS_WEAK && GTHREAD_USE_WEAK] (__gthread_active_p): Use
+       __extension__ to allow cast from function pointer to object
+       pointer in C++.
+       * doc/install.texi (--enable-threads): Clarify use of Solaris
+       threads.
+
 2009-11-27  Steven Bosscher  <steven@gcc.gnu.org>
 
        * config/ia64/itanium1.md: Remove.
index 98da008..be7e69f 100644 (file)
@@ -1118,7 +1118,8 @@ RTEMS thread support.
 @item single
 Disable thread support, should work for all platforms.
 @item solaris
-Sun Solaris 2 thread support.
+Sun Solaris 2/Unix International thread support.  Only use this if you
+really need to use this legacy API instead of the default, @samp{posix}.
 @item vxworks
 VxWorks thread support.
 @item win32
index af2c37f..5aed7ad 100644 (file)
@@ -102,7 +102,8 @@ __gthrw(cond_signal)
 static inline int
 __gthread_active_p (void)
 {
-  static void *const __gthread_active_ptr = (void *) &__gthrw_(thr_create);
+  static void *const __gthread_active_ptr
+    = __extension__ (void *) &__gthrw_(thr_create);
   return __gthread_active_ptr != 0;
 }
 
@@ -460,7 +461,7 @@ __gthread_setspecific (__gthread_key_t __key, const void *__ptr)
 }
 
 static inline int
-__gthread_mutex_destroy (__gthread_mutex_t * UNUSED(__mutex))
+__gthread_mutex_destroy (__gthread_mutex_t *__mutex)
 {
   if (__gthread_active_p ())
     return __gthrw_(mutex_destroy) (__mutex);