svn commit: r293426 - projects/clang380-import/lib/libstand
Dimitry Andric
dim at FreeBSD.org
Fri Jan 8 16:50:05 UTC 2016
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
More information about the svn-src-projects
mailing list