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 /gcc/gthr-solaris.h | |
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
Diffstat (limited to 'gcc/gthr-solaris.h')
-rw-r--r-- | gcc/gthr-solaris.h | 5 |
1 files changed, 3 insertions, 2 deletions
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); |