diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-03-12 14:23:27 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-03-12 14:23:27 +0000 |
commit | 2e7d9be1858cec72e45a81b2fd4f343e1629614d (patch) | |
tree | 0b5bc7d4e9657ab185aa593ffce407fded974b61 /libgcc/gthr-single.h | |
parent | 1e6cd7f698fcf5c91b3b676319f8f19e71d6bb23 (diff) |
2012-03-12 Richard Guenther <rguenther@suse.de>
* gthr.h (__GTHREAD_MUTEX_INIT_FUNCTION): Adjust specification.
* gthr-posix.h (__GTHREAD_MUTEX_INIT_FUNCTION): Define.
(__gthread_mutex_init_function): New function.
* gthr-single.h (__GTHREAD_MUTEX_INIT_FUNCTION): Define.
PR gcov/49484
* libgcov.c: Include gthr.h.
(__gcov_flush_mx): New global variable.
(init_mx, init_mx_once): New functions.
(__gcov_flush): Protect self with a mutex.
(__gcov_fork): Re-initialize mutex after forking.
* unwind-dw2-fde.c: Change condition under which to use
__GTHREAD_MUTEX_INIT_FUNCTION.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185231 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgcc/gthr-single.h')
-rw-r--r-- | libgcc/gthr-single.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libgcc/gthr-single.h b/libgcc/gthr-single.h index 357528ad1f1..87b7579e899 100644 --- a/libgcc/gthr-single.h +++ b/libgcc/gthr-single.h @@ -36,6 +36,7 @@ typedef int __gthread_recursive_mutex_t; #define __GTHREAD_ONCE_INIT 0 #define __GTHREAD_MUTEX_INIT 0 +#define __GTHREAD_MUTEX_INIT_FUNCTION (mx) #define __GTHREAD_RECURSIVE_MUTEX_INIT 0 #define UNUSED __attribute__((unused)) |