Also enable the TSX workaround for i386 (Linux)
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Thu, 11 Sep 2014 21:06:46 +0000 (23:06 +0200)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 23 Sep 2014 19:48:49 +0000 (23:48 +0400)
* include/private/gcconfig.h (GLIBC_2_19_TSX_BUG): Define for
LINUX/I386 (if __GLIBC__).

include/private/gcconfig.h

index 72bef85..aa80d53 100644 (file)
 #         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"