diff options
author | Ruslan Bukin <br@FreeBSD.org> | 2017-08-07 14:09:57 +0000 |
---|---|---|
committer | Ruslan Bukin <br@FreeBSD.org> | 2017-08-07 14:09:57 +0000 |
commit | ca20f8ec29d76ceb3b2d802d0c1ebf7a715558a9 (patch) | |
tree | 490db99d657a6c647fe622a690481570c3a41c9d /sys/sys/cdefs.h | |
parent | b96793ae434b0c1254b3963516c2db4109bc9d7b (diff) | |
download | src-ca20f8ec29d76ceb3b2d802d0c1ebf7a715558a9.tar.gz src-ca20f8ec29d76ceb3b2d802d0c1ebf7a715558a9.zip |
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
Notes
Notes:
svn path=/head/; revision=322168
Diffstat (limited to 'sys/sys/cdefs.h')
-rw-r--r-- | sys/sys/cdefs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index 9cdc03c861cb..08d28c0f2219 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -782,7 +782,7 @@ #endif #endif /* __STDC_WANT_LIB_EXT1__ */ -#if defined(__mips) || defined(__powerpc64__) || defined(__riscv__) +#if defined(__mips) || defined(__powerpc64__) || defined(__riscv) #define __NO_TLS 1 #endif |