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 82dd5016bd.  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
This commit is contained in:
John Baldwin 2021-02-17 16:33:09 -08:00
parent 67932460c7
commit dd176fd7e7

View File

@ -768,7 +768,7 @@
#endif #endif
#endif /* __STDC_WANT_LIB_EXT1__ */ #endif /* __STDC_WANT_LIB_EXT1__ */
#if defined(__mips) || defined(__riscv) || \ #if defined(__mips) || \
(defined(__powerpc64__) && (!defined(_CALL_ELF) || _CALL_ELF == 1)) (defined(__powerpc64__) && (!defined(_CALL_ELF) || _CALL_ELF == 1))
#define __NO_TLS 1 #define __NO_TLS 1
#endif #endif