]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Reapply r322168 (partially, by br):
authorDimitry Andric <dim@FreeBSD.org>
Sun, 2 Aug 2020 18:27:59 +0000 (18:27 +0000)
committerDimitry Andric <dim@FreeBSD.org>
Sun, 2 Aug 2020 18:27:59 +0000 (18:27 +0000)
commitfd28fec2f0ba63a68ca0c9a041facc4fd86f4ba8
tree5fb269ef23bd118ef90494e29018bd06ec46b701
parentcfe333b850cee184f0658cdf4e3001b537d8f120
Reapply r322168 (partially, by br):

o Replace __riscv__ with __riscv
o Replace __riscv64 with (__riscv && __riscv_xlen == 64)

This is required to support new GCC 7.1 compiler.
This is compatible with current GCC 6.1 compiler.

RISC-V is extensible ISA and the idea here is to have built-in define
per each extension, so together with __riscv we will have some subset
of these as well (depending on -march string passed to compiler):

__riscv_compressed
__riscv_atomic
__riscv_mul
__riscv_div
__riscv_muldiv
__riscv_fdiv
__riscv_fsqrt
__riscv_float_abi_soft
__riscv_float_abi_single
__riscv_float_abi_double
__riscv_cmodel_medlow
__riscv_cmodel_medany
__riscv_cmodel_pic
__riscv_xlen

Reviewed by: ngie
Sponsored by: DARPA, AFRL

Differential Revision: https://reviews.freebsd.org/D11901
contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h