summaryrefslogtreecommitdiff
path: root/sysdeps/mach/hurd/bits/libc-lock.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mach/hurd/bits/libc-lock.h')
-rw-r--r--sysdeps/mach/hurd/bits/libc-lock.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/sysdeps/mach/hurd/bits/libc-lock.h b/sysdeps/mach/hurd/bits/libc-lock.h
index a0f83728e4..b8b7bec8bf 100644
--- a/sysdeps/mach/hurd/bits/libc-lock.h
+++ b/sysdeps/mach/hurd/bits/libc-lock.h
@@ -35,11 +35,7 @@ typedef struct
typedef __libc_lock_recursive_t __rtld_lock_recursive_t;
extern char __libc_lock_self0[0];
-/* We have to hide the __libc_lock_self access behind a function call,
- otherwise gcc >= 4.9 would try to prefetch the TLS dereference even before
- the __LIBC_NO_TLS test is finished... */
-extern void *__libc_get_lock_self(void);
-#define __libc_lock_owner_self() (__LIBC_NO_TLS() ? &__libc_lock_self0 : __libc_get_lock_self())
+#define __libc_lock_owner_self() (__LIBC_NO_TLS() ? &__libc_lock_self0 : THREAD_SELF)
#else
typedef struct __libc_lock_opaque__ __libc_lock_t;