projects
/
platform
/
upstream
/
libgc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c22c01
)
Also enable the TSX workaround for i386 (Linux)
author
Jan Alexander Steffens (heftig)
<jan.steffens@gmail.com>
Thu, 11 Sep 2014 21:06:46 +0000
(23:06 +0200)
committer
Ivan 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
patch
|
blob
|
history
diff --git
a/include/private/gcconfig.h
b/include/private/gcconfig.h
index
72bef85
..
aa80d53
100644
(file)
--- 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"