Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jan 2016 22:44:59 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r293384 - projects/clang380-import/sys/conf
Message-ID:  <201601072244.u07Mix2n079353@repo.freebsd.org>

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



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