tls no direct
authorChanho Park <chanho61.park@samsung.com>
Fri, 18 Jul 2014 08:58:40 +0000 (17:58 +0900)
committerChanho Park <chanho61.park@samsung.com>
Mon, 21 Jul 2014 08:31:20 +0000 (17:31 +0900)
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
gcc/config/i386/linux.h

index 1fb1e03..a7c59fb 100644 (file)
@@ -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