aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2021-02-18 00:33:09 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2021-02-18 00:33:09 +0000
commitdd176fd7e7b5aad231cd6ebf49fd14ae7394dfee (patch)
tree7614b1437b00473b6cb98f1fb14dab660c9a7039 /sys
parent67932460c7b6893a637a47d98d5f29d63e92c727 (diff)
downloadsrc-dd176fd7e7b5aad231cd6ebf49fd14ae7394dfee.tar.gz
src-dd176fd7e7b5aad231cd6ebf49fd14ae7394dfee.zip
riscv: Don't set __NO_TLS to disable some uses of TLS.
__NO_TLS was originally added to disable use of _Thread in the locale code in libc in 82dd5016bd749d1d9e1531bd1703aebeecceab34. The initial RISC-V import set this for RISC-V presumably due to immaturity in the toolchains at the time. However, TLS via _Thread works fine in both GCC and clang on RISC-V. Reviewed by: mhorne, imp Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D28712
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/cdefs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h
index 72ef942084f2..64f26480a2f5 100644
--- a/sys/sys/cdefs.h
+++ b/sys/sys/cdefs.h
@@ -768,7 +768,7 @@
#endif
#endif /* __STDC_WANT_LIB_EXT1__ */
-#if defined(__mips) || defined(__riscv) || \
+#if defined(__mips) || \
(defined(__powerpc64__) && (!defined(_CALL_ELF) || _CALL_ELF == 1))
#define __NO_TLS 1
#endif