diff options
author | Janne Blomqvist <jb@gcc.gnu.org> | 2008-03-01 12:46:31 +0200 |
---|---|---|
committer | Janne Blomqvist <jb@gcc.gnu.org> | 2008-03-01 12:46:31 +0200 |
commit | 4dabf73695a37ef07074248a631edd06732bf8f9 (patch) | |
tree | 0a496ad8673e22a94b319a53eee147bd5fcac42a /gcc/gthr-single.h | |
parent | 63642d5a8dae511ccd320c89580c359a09b713dc (diff) | |
download | gcc-4dabf73695a37ef07074248a631edd06732bf8f9.zip gcc-4dabf73695a37ef07074248a631edd06732bf8f9.tar.gz gcc-4dabf73695a37ef07074248a631edd06732bf8f9.tar.bz2 |
re PR libfortran/35063 (Clean up use of destroy_unit_mutex())
gcc:
2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
PR gcc/35063
* gthr.h: Add __gthread_mutex_destroy as a function that must be
implemented.
* gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
* gthr-single.h (__gthread_mutex_destroy): Likewise.
* gthr-rtems.h (__gthread_mutex_destroy): Likewise.
* gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
* gthr-nks.h (__gthread_mutex_destroy): Likewise.
* gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
* gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
(__gthread_mutex_destroy_function): Rename to
__gthread_mutex_destroy.
* gthr-dce.h (__gthread_mutex_destroy): Call
pthread_mutex_destroy.
* gthr-tpf.h (__gthread_mutex_destroy): Likewise.
* gthr-posix.h (__gthread_mutex_destroy): Likewise.
* gthr-posix95.h (__gthread_mutex_destroy): Likewise.
libgfortran:
2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
PR libfortran/35063
* io/unit.c (destroy_unit_mutex): Call __gthread_mutex_destroy
instead of macro kludge.
From-SVN: r132800
Diffstat (limited to 'gcc/gthr-single.h')
-rw-r--r-- | gcc/gthr-single.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/gthr-single.h b/gcc/gthr-single.h index c3a903d..7dd1f54 100644 --- a/gcc/gthr-single.h +++ b/gcc/gthr-single.h @@ -216,6 +216,12 @@ __gthread_active_p (void) } static inline int +__gthread_mutex_destroy (__gthread_mutex_t * UNUSED(mutex)) +{ + return 0; +} + +static inline int __gthread_mutex_lock (__gthread_mutex_t * UNUSED(mutex)) { return 0; |