]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
riscv: Don't set __NO_TLS to disable some uses of TLS.
authorJohn Baldwin <jhb@FreeBSD.org>
Thu, 18 Feb 2021 00:33:09 +0000 (16:33 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 18 Feb 2021 00:33:09 +0000 (16:33 -0800)
commitdd176fd7e7b5aad231cd6ebf49fd14ae7394dfee
tree7614b1437b00473b6cb98f1fb14dab660c9a7039
parent67932460c7b6893a637a47d98d5f29d63e92c727
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
sys/sys/cdefs.h