svn commit: r277355 - head/share/mk

Ian Lepore ian at FreeBSD.org
Mon Jan 19 04:56:18 UTC 2015


Author: ian
Date: Mon Jan 19 04:56:17 2015
New Revision: 277355
URL: https://svnweb.freebsd.org/changeset/base/277355

Log:
  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).

Modified:
  head/share/mk/bsd.cpu.mk

Modified: head/share/mk/bsd.cpu.mk
==============================================================================
--- head/share/mk/bsd.cpu.mk	Mon Jan 19 03:30:45 2015	(r277354)
+++ head/share/mk/bsd.cpu.mk	Mon Jan 19 04:56:17 2015	(r277355)
@@ -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)


More information about the svn-src-all mailing list