From ff97b4a1d695c4f2ac96a590cd8b7a8bfd6f3e8c Mon Sep 17 00:00:00 2001 From: Chanho Park Date: Fri, 18 Jul 2014 17:58:40 +0900 Subject: [PATCH] tls no direct Signed-off-by: Chanho Park --- gcc/config/i386/linux.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gcc/config/i386/linux.h b/gcc/config/i386/linux.h index 1fb1e03..a7c59fb 100644 --- a/gcc/config/i386/linux.h +++ b/gcc/config/i386/linux.h @@ -21,3 +21,9 @@ along with GCC; see the file COPYING3. If not see #define GNU_USER_LINK_EMULATION "elf_i386" #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" + +/* This slows down Xen, so take a very small general performance hit + for not accessing the %fs segment with negative offsets by making + GCC not emit direct accesses to %fs at all. */ +#undef TARGET_TLS_DIRECT_SEG_REFS_DEFAULT +#define TARGET_TLS_DIRECT_SEG_REFS_DEFAULT 0 -- 2.7.4