HomeFreeBSD

riscv: Don't set __NO_TLS to disable some uses of TLS.

Description

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

Details

Provenance
jhbAuthored on Feb 18 2021, 12:33 AM
Reviewer
mhorne
Differential Revision
D28712: riscv: Don't set __NO_TLS to disable some uses of TLS.
Parents
rG67932460c7b6: Add a VA_IS_CLEANMAP() macro.
Branches
Unknown
Tags
Unknown