HomeFreeBSD

Don't specify the desired march/mabi for RISC-V in ACFLAGS.

Description

Don't specify the desired march/mabi for RISC-V in ACFLAGS.

ACFLAGS is only used in addition to CFLAGS, so setting the options in
both was redundant. However, ACFLAGS is added to the command line
after CFLAGS, so the settings from ACFLAGS were applied for assembly
files in kernel modules after the kernel-specific march/abi in CFLAGS.
As a result, the hard-float ACFLAGS in bsd.cpu.mk was overriding the
soft-float CFLAGS.gcc in sys/conf/kern.mk. In particular,
dtrace_asm.o was compiled as hard-float and the linker refused to link
dtrace.ko since its object files contained a mix of hard and soft
float.

Reviewed by: br
Sponsored by: DARPA / AFRL
Differential Revision: https://reviews.freebsd.org/D16054

Details

Provenance
jhbAuthored on
Reviewer
br
Differential Revision
D16054: Don't specify the desired march/mabi for RISC-V in ACFLAGS.
Parents
rS335891: MFC r327317:
Branches
Unknown
Tags
Unknown