svn commit: r278678 - stable/10/sys/conf

Ian Lepore ian at FreeBSD.org
Fri Feb 13 15:41:29 UTC 2015


Author: ian
Date: Fri Feb 13 15:41:28 2015
New Revision: 278678
URL: https://svnweb.freebsd.org/changeset/base/278678

Log:
  MFC r276645:
  
    Don't allow clang to use fpu instructions or registers in kernel modules.

Modified:
  stable/10/sys/conf/kmod.mk
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/conf/kmod.mk
==============================================================================
--- stable/10/sys/conf/kmod.mk	Fri Feb 13 15:32:31 2015	(r278677)
+++ stable/10/sys/conf/kmod.mk	Fri Feb 13 15:41:28 2015	(r278678)
@@ -126,8 +126,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-stable mailing list