From 6927ee91a4ffee37d757777351b5eca81440b2ee Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Thu, 11 Sep 2014 23:06:46 +0200 Subject: [PATCH] Also enable the TSX workaround for i386 (Linux) * include/private/gcconfig.h (GLIBC_2_19_TSX_BUG): Define for LINUX/I386 (if __GLIBC__). --- include/private/gcconfig.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h index 72bef854..aa80d532 100644 --- a/include/private/gcconfig.h +++ b/include/private/gcconfig.h @@ -1375,6 +1375,11 @@ # define PREFETCH_FOR_WRITE(x) \ __asm__ __volatile__ ("prefetchw %0" : : "m"(*(char *)(x))) # endif +# if defined(__GLIBC__) + /* Workaround lock elision implementation for some glibc. */ +# define GLIBC_2_19_TSX_BUG +# include /* for gnu_get_libc_version() */ +# endif # endif # ifdef CYGWIN32 # define OS_TYPE "CYGWIN32" -- 2.40.0