svn commit: r312898 - projects/clang400-import/lib/clang
Ed Maste
emaste at FreeBSD.org
Fri Jan 27 21:26:25 UTC 2017
Author: emaste
Date: Fri Jan 27 21:26:23 2017
New Revision: 312898
URL: https://svnweb.freebsd.org/changeset/base/312898
Log:
Add -mlong-calls also to LLVM's STATIC_CFLAGS on ARM
-mlong-calls was set only in STATIC_CXXFLAGS, but there are some .c
source files in LLVM which also need -mlong-calls.
Unfortunately this is not sufficient to fix linking lldb on ARM,
because LLVM-generated calls to __aeabi_read_tp do not honour the
-mlong-calls flag. See LLVM PR31769 for details.
Reviewed by: dim
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D9348
Modified:
projects/clang400-import/lib/clang/llvm.build.mk
Modified: projects/clang400-import/lib/clang/llvm.build.mk
==============================================================================
--- projects/clang400-import/lib/clang/llvm.build.mk Fri Jan 27 21:18:23 2017 (r312897)
+++ projects/clang400-import/lib/clang/llvm.build.mk Fri Jan 27 21:26:23 2017 (r312898)
@@ -46,5 +46,6 @@ CXXFLAGS+= -fno-rtti
CXXFLAGS.clang+= -stdlib=libc++
.if ${MACHINE_CPUARCH} == "arm"
+STATIC_CFLAGS+= -mlong-calls
STATIC_CXXFLAGS+= -mlong-calls
.endif
More information about the svn-src-projects
mailing list