svn commit: r293384 - projects/clang380-import/sys/conf
Dimitry Andric
dim at FreeBSD.org
Thu Jan 7 22:45:00 UTC 2016
Author: dim
Date: Thu Jan 7 22:44:58 2016
New Revision: 293384
URL: https://svnweb.freebsd.org/changeset/base/293384
Log:
For clang 3.8.0 and higher targeting arm, use the new -mno-movt flag to
disable emitting movt instructions.
Modified:
projects/clang380-import/sys/conf/kmod.mk
Modified: projects/clang380-import/sys/conf/kmod.mk
==============================================================================
--- projects/clang380-import/sys/conf/kmod.mk Thu Jan 7 22:44:13 2016 (r293383)
+++ projects/clang380-import/sys/conf/kmod.mk Thu Jan 7 22:44:58 2016 (r293384)
@@ -127,7 +127,11 @@ CFLAGS+= -fPIC
# 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
+.if ${COMPILER_VERSION} < 30800
CFLAGS.clang+= -mllvm -arm-use-movt=0
+.else
+CFLAGS.clang+= -mno-movt
+.endif
CFLAGS.clang+= -mfpu=none
CFLAGS+= -funwind-tables
.endif
More information about the svn-src-projects
mailing list