Don't allow clang to use fpu instructions or registers in kernel modules.

Submitted by:	Keith White <kwhite@site.uottawa.ca>
This commit is contained in:
Ian Lepore 2015-01-04 00:12:30 +00:00
parent fbf1ef4849
commit c6f7b90092
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=276645

View File

@ -119,8 +119,10 @@ CFLAGS+= -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
.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