For clang 3.8.0 and higher targeting arm, use the new -mno-movt flag to

disable emitting movt instructions.
This commit is contained in:
Dimitry Andric 2016-01-07 22:44:58 +00:00
parent a1bd240c5d
commit 67e3484f3d

View file

@ -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