HomeFreeBSD

Reapply r322168 (partially, by br):

Description

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

(cherry picked from commit fd28fec2f0ba63a68ca0c9a041facc4fd86f4ba8)

Details

Provenance
dimAuthored on Aug 2 2020, 6:27 PM
Reviewer
ngie
Differential Revision
D11901: RISC-V: support for GCC 7.1
Parents
rG598207e3fa27: Reapply r311165:
Branches
Unknown
Tags
Unknown