Module Name:    src
Committed By:   nakayama
Date:           Tue Feb 14 11:25:05 UTC 2012

Modified Files:
        src/external/gpl3/gcc/dist/gcc/config/sparc: netbsd-elf.h

Log Message:
The default configuration for TLS support is supposed to use Sun
as, but we use GNU as.  So in this case it generates wrong
relocations in non-PIC mode.

This change fixes lib/libc/tls/t_tls_dynamic test failure on 32-bit
sparc as described in PR toolchain/45985.

Approved by releng.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
    src/external/gpl3/gcc/dist/gcc/config/sparc/netbsd-elf.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/gcc/config/sparc/netbsd-elf.h
diff -u src/external/gpl3/gcc/dist/gcc/config/sparc/netbsd-elf.h:1.3 src/external/gpl3/gcc/dist/gcc/config/sparc/netbsd-elf.h:1.4
--- src/external/gpl3/gcc/dist/gcc/config/sparc/netbsd-elf.h:1.3	Fri Jul  1 01:24:04 2011
+++ src/external/gpl3/gcc/dist/gcc/config/sparc/netbsd-elf.h	Tue Feb 14 11:25:05 2012
@@ -266,6 +266,13 @@ along with GCC; see the file COPYING3.  
 
 #endif	/* SPARC_BI_ARCH */
 
+#ifdef HAVE_AS_TLS
+#undef TARGET_SUN_TLS
+#undef TARGET_GNU_TLS
+#define TARGET_SUN_TLS 0
+#define TARGET_GNU_TLS 1
+#endif
+
 /* We use GNU ld so undefine this so that attribute((init_priority)) works.  */
 #undef CTORS_SECTION_ASM_OP
 #undef DTORS_SECTION_ASM_OP

Reply via email to