For armv6 builds, add -mfloat-abi=softfp. This tells the compiler it can

use floating point hardware instructions (because all armv6/7 systems we
support have fp hardware), but it passes args using a soft-float compatible
ABI.  This should give noticible performance improvement (but not as much
as using the armv6hf arch).
This commit is contained in:
Ian Lepore 2015-01-19 04:56:17 +00:00
parent 9a53618ab2
commit 1d2c1366bf

View File

@ -251,6 +251,10 @@ MACHINE_CPU = v9 ultrasparc ultrasparc3
CFLAGS += -G0
.endif
.if ${MACHINE_ARCH} == "armv6"
_CPUCFLAGS += -mfloat-abi=softfp
.endif
# NB: COPTFLAGS is handled in /usr/src/sys/conf/kern.pre.mk
.if !defined(NO_CPU_CFLAGS)