diff options
author | ian <ian@FreeBSD.org> | 2015-01-19 04:56:17 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2015-01-19 04:56:17 +0000 |
commit | af9bc7a40f2d38430430e3ed9591762b9efa6c2d (patch) | |
tree | cacf7b7e95e20cc19fdc2e34da6ecc1cff079ec9 | |
parent | 8fa2e2513fe9dbec0abce5ce0e7d267f47ef5d18 (diff) | |
download | FreeBSD-src-af9bc7a40f2d38430430e3ed9591762b9efa6c2d.zip FreeBSD-src-af9bc7a40f2d38430430e3ed9591762b9efa6c2d.tar.gz |
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).
-rw-r--r-- | share/mk/bsd.cpu.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/share/mk/bsd.cpu.mk b/share/mk/bsd.cpu.mk index a3b9c1f..da5f5f2 100644 --- a/share/mk/bsd.cpu.mk +++ b/share/mk/bsd.cpu.mk @@ -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) |