diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-03-13 10:00:48 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-03-13 10:00:48 +0000 |
commit | b4e1521f31eae496eb8451188cf04900ba3d63d8 (patch) | |
tree | ddcadfa94e9a46ad26ab4d1a77031787ea37a3ab /libgcc | |
parent | 1d110375324d4c1f915f2ad631a3834c37282558 (diff) | |
download | gcc-b4e1521f31eae496eb8451188cf04900ba3d63d8.tar.gz |
2012-03-13 Richard Guenther <rguenther@suse.de>
PR target/52569
* unwind-dw2-fde.c: Make avoid-include-gthr.h hacks work again.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185322 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgcc')
-rw-r--r-- | libgcc/ChangeLog | 5 | ||||
-rw-r--r-- | libgcc/unwind-dw2-fde.c | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index 61b2c6766c2..de9eebe9671 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,5 +1,10 @@ 2012-03-13 Richard Guenther <rguenther@suse.de> + PR target/52569 + * unwind-dw2-fde.c: Make avoid-include-gthr.h hacks work again. + +2012-03-13 Richard Guenther <rguenther@suse.de> + * gthr-single.h (__GTHREAD_MUTEX_INIT_FUNCTION): Fix definition. 2012-03-13 Richard Guenther <rguenther@suse.de> diff --git a/libgcc/unwind-dw2-fde.c b/libgcc/unwind-dw2-fde.c index 54eaebac27e..b99a432edb9 100644 --- a/libgcc/unwind-dw2-fde.c +++ b/libgcc/unwind-dw2-fde.c @@ -49,6 +49,7 @@ static struct object *seen_objects; static __gthread_mutex_t object_mutex = __GTHREAD_MUTEX_INIT; #define init_object_mutex_once() #else +#ifdef __GTHREAD_MUTEX_INIT_FUNCTION static __gthread_mutex_t object_mutex; static void @@ -63,6 +64,12 @@ init_object_mutex_once (void) static __gthread_once_t once = __GTHREAD_ONCE_INIT; __gthread_once (&once, init_object_mutex); } +#else +/* ??? Several targets include this file with stubbing parts of gthr.h + and expect no locking to be done. */ +#define init_object_mutex_once() +static __gthread_mutex_t object_mutex; +#endif #endif /* Called from crtbegin.o to register the unwind info for an object. */ |