[llvm-commits] [llvm-gcc-4.2] r101304 - /llvm-gcc-4.2/trunk/gcc/config/arm/arm.h
Jim Grosbach
grosbach at apple.com
Wed Apr 14 15:29:40 PDT 2010
Author: grosbach
Date: Wed Apr 14 17:29:39 2010
New Revision: 101304
URL: http://llvm.org/viewvc/llvm-project?rev=101304&view=rev
Log:
When building a kext, enable -arm-long-calls.
Modified:
llvm-gcc-4.2/trunk/gcc/config/arm/arm.h
Modified: llvm-gcc-4.2/trunk/gcc/config/arm/arm.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/arm/arm.h?rev=101304&r1=101303&r2=101304&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/arm/arm.h (original)
+++ llvm-gcc-4.2/trunk/gcc/config/arm/arm.h Wed Apr 14 17:29:39 2010
@@ -3552,7 +3552,9 @@
if (TARGET_SOFT_FLOAT) \
argvec.push_back("-soft-float"); \
if (TARGET_HARD_FLOAT_ABI) \
- argvec.push_back("-float-abi=hard");
+ argvec.push_back("-float-abi=hard"); \
+ if (flag_mkernel || flag_apple_kext) \
+ argvec.push_back("-arm-long-calls");
/* Doing struct copy by partial-word loads and stores is not a good idea on ARM. */
#define TARGET_LLVM_MIN_BYTES_COPY_BY_MEMCPY 4
More information about the llvm-commits
mailing list