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 <[email protected]>

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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to