Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/dist/gcc/config/sparc The default configur...



details:   https://anonhg.NetBSD.org/src/rev/9c5be265d4b2
branches:  trunk
changeset: 773722:9c5be265d4b2
user:      nakayama <nakayama%NetBSD.org@localhost>
date:      Tue Feb 14 11:25:05 2012 +0000

description:
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.

diffstat:

 external/gpl3/gcc/dist/gcc/config/sparc/netbsd-elf.h |  7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diffs (17 lines):

diff -r f4ea51945dd2 -r 9c5be265d4b2 external/gpl3/gcc/dist/gcc/config/sparc/netbsd-elf.h
--- a/external/gpl3/gcc/dist/gcc/config/sparc/netbsd-elf.h      Tue Feb 14 11:05:32 2012 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/sparc/netbsd-elf.h      Tue Feb 14 11:25:05 2012 +0000
@@ -266,6 +266,13 @@
 
 #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



Home | Main Index | Thread Index | Old Index