Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Jan 2015 00:12:31 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r276645 - head/sys/conf
Message-ID:  <201501040012.t040CVDf060682@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501040012.t040CVDf060682>