diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-03-13 09:33:43 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-03-13 09:33:43 +0000 |
commit | 0e6ad6995bb183352a0697ecaf0647e4199aecf0 (patch) | |
tree | 1cdcb2276b46dec2319ff6602e8d876a56fb5aa1 /libgcc | |
parent | b966bb5f1b8165e0bdd8ab8341364f871241c750 (diff) | |
download | gcc-0e6ad6995bb183352a0697ecaf0647e4199aecf0.tar.gz |
2012-03-13 Richard Guenther <rguenther@suse.de>
* gthr-posix.h: Remove duplicate __GTHREAD_MUTEX_INIT_FUNCTION
and __gthread_mutex_init_function definitions.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185320 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgcc')
-rw-r--r-- | libgcc/ChangeLog | 5 | ||||
-rw-r--r-- | libgcc/gthr-posix.h | 11 |
2 files changed, 5 insertions, 11 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index 9e4446279c8..7dd7076a34b 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,8 @@ +2012-03-13 Richard Guenther <rguenther@suse.de> + + * gthr-posix.h: Remove duplicate __GTHREAD_MUTEX_INIT_FUNCTION + and __gthread_mutex_init_function definitions. + 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> * config.host (mips*-*-openbsd*): Remove. diff --git a/libgcc/gthr-posix.h b/libgcc/gthr-posix.h index 67d79ff3e7c..b5b161184f4 100644 --- a/libgcc/gthr-posix.h +++ b/libgcc/gthr-posix.h @@ -72,7 +72,6 @@ typedef struct timespec __gthread_time_t; #ifdef _GTHREAD_USE_MUTEX_INIT_FUNC # undef __GTHREAD_MUTEX_INIT -# define __GTHREAD_MUTEX_INIT_FUNCTION __gthread_mutex_init_function #endif #ifdef _GTHREAD_USE_RECURSIVE_MUTEX_INIT_FUNC # undef __GTHREAD_RECURSIVE_MUTEX_INIT @@ -702,22 +701,12 @@ __gthread_setspecific (__gthread_key_t __key, const void *__ptr) return __gthrw_(pthread_setspecific) (__key, __ptr); } -#ifdef _GTHREAD_USE_MUTEX_INIT_FUNC static inline void __gthread_mutex_init_function (__gthread_mutex_t *__mutex) { if (__gthread_active_p ()) __gthrw_(pthread_mutex_init) (__mutex, NULL); } -#endif - -static inline int -__gthread_mutex_init_function (__gthread_mutex_t *__mutex) -{ - if (__gthread_active_p ()) - return __gthrw_(pthread_mutex_init) (__mutex, NULL); - return 0; -} static inline int __gthread_mutex_destroy (__gthread_mutex_t *__mutex) |