diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2009-11-27 15:17:04 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2009-11-27 15:17:04 +0000 |
commit | 67c330aec42b2b57cf42abc7ceb46865d51cd789 (patch) | |
tree | b19c28214d215279252a5733ac60ea7974dc83db | |
parent | 7400e46be65723976aa88901ceb47bc4578a5055 (diff) | |
download | gcc-67c330aec42b2b57cf42abc7ceb46865d51cd789.zip gcc-67c330aec42b2b57cf42abc7ceb46865d51cd789.tar.gz gcc-67c330aec42b2b57cf42abc7ceb46865d51cd789.tar.bz2 |
re PR target/41810 (Cannot build gcc: gthr-default.h:466: error: '__mutex' was not declared in this scope)
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.
From-SVN: r154708
-rw-r--r-- | gcc/ChangeLog | 10 | ||||
-rw-r--r-- | gcc/doc/install.texi | 3 | ||||
-rw-r--r-- | gcc/gthr-solaris.h | 5 |
3 files changed, 15 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2c22499..73b15a8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi index 98da008..be7e69f 100644 --- a/gcc/doc/install.texi +++ b/gcc/doc/install.texi @@ -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 diff --git a/gcc/gthr-solaris.h b/gcc/gthr-solaris.h index af2c37f..5aed7ad 100644 --- a/gcc/gthr-solaris.h +++ b/gcc/gthr-solaris.h @@ -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); |