summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2015-01-19 04:56:17 +0000
committerian <ian@FreeBSD.org>2015-01-19 04:56:17 +0000
commitaf9bc7a40f2d38430430e3ed9591762b9efa6c2d (patch)
treecacf7b7e95e20cc19fdc2e34da6ecc1cff079ec9 /share
parent8fa2e2513fe9dbec0abce5ce0e7d267f47ef5d18 (diff)
downloadFreeBSD-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).
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.cpu.mk4
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)
OpenPOWER on IntegriCloud