diff options
author | Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> | 2014-09-11 23:06:46 +0200 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2014-09-23 23:48:49 +0400 |
commit | 6927ee91a4ffee37d757777351b5eca81440b2ee (patch) | |
tree | 333aafd23a1eb8de93fb702f8c91dde4fb7cc522 | |
parent | 8c22c0169386cce271f9e85189aed3e82165e178 (diff) | |
download | bdwgc-6927ee91a4ffee37d757777351b5eca81440b2ee.tar.gz |
Also enable the TSX workaround for i386 (Linux)
* include/private/gcconfig.h (GLIBC_2_19_TSX_BUG): Define for
LINUX/I386 (if __GLIBC__).
-rw-r--r-- | include/private/gcconfig.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 <gnu/libc-version.h> /* for gnu_get_libc_version() */ +# endif # endif # ifdef CYGWIN32 # define OS_TYPE "CYGWIN32" |