svn commit: r276645 - head/sys/conf

Ian Lepore ian at FreeBSD.org
Sun Jan 4 00:12:31 UTC 2015


Author: ian
Date: Sun Jan  4 00:12:30 2015
New Revision: 276645
URL: https://svnweb.freebsd.org/changeset/base/276645

Log:
  Don't allow clang to use fpu instructions or registers in kernel modules.
  
  Submitted by:	Keith White <kwhite at site.uottawa.ca>

Modified:
  head/sys/conf/kmod.mk

Modified: head/sys/conf/kmod.mk
==============================================================================
--- head/sys/conf/kmod.mk	Sat Jan  3 23:57:03 2015	(r276644)
+++ head/sys/conf/kmod.mk	Sun Jan  4 00:12:30 2015	(r276645)
@@ -119,8 +119,10 @@ CFLAGS+=	-fno-omit-frame-pointer -mno-om
 .endif
 
 # Temporary workaround for PR 196407, which contains the fascinating details.
+# Don't allow clang to use fpu instructions or registers in kernel modules.
 .if ${MACHINE_CPUARCH} == arm
 CFLAGS.clang+=	-mllvm -arm-use-movt=0
+CFLAGS.clang+=	-mfpu=none
 .endif
 
 .if ${MACHINE_CPUARCH} == powerpc


More information about the svn-src-all mailing list