Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jan 2016 16:50:04 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r293426 - projects/clang380-import/lib/libstand
Message-ID:  <201601081650.u08Go4pU006222@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Fri Jan  8 16:50:04 2016
New Revision: 293426
URL: https://svnweb.freebsd.org/changeset/base/293426

Log:
  Similar to r293384, for libstand, also use the new -mno-movt flag with
  clang >= 3.8.0 targeting arm.

Modified:
  projects/clang380-import/lib/libstand/Makefile

Modified: projects/clang380-import/lib/libstand/Makefile
==============================================================================
--- projects/clang380-import/lib/libstand/Makefile	Fri Jan  8 16:37:22 2016	(r293425)
+++ projects/clang380-import/lib/libstand/Makefile	Fri Jan  8 16:50:04 2016	(r293426)
@@ -49,7 +49,11 @@ SRCS+=	bcmp.c bcopy.c bzero.c ffs.c fls.
 # Do not generate movt/movw, because the relocation fixup for them does not
 # translate to the -Bsymbolic -pie format required by self_reloc() in loader(8).
 # Also, the fpu is not available in a standalone environment.
+.if ${COMPILER_VERSION} < 30800
 CFLAGS.clang+=	-mllvm -arm-use-movt=0
+.else
+CFLAGS.clang+=	-mno-movt
+.endif
 CFLAGS.clang+=	-mfpu=none
 
 # Compiler support functions



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