[llvm-commits] [compiler-rt] r129757 - /compiler-rt/trunk/make/platform/clang_darwin.mk

Daniel Dunbar daniel at zuster.org
Tue Apr 19 08:14:47 PDT 2011


Author: ddunbar
Date: Tue Apr 19 10:14:46 2011
New Revision: 129757

URL: http://llvm.org/viewvc/llvm-project?rev=129757&view=rev
Log:
clang_darwin: Tweak runtime library definitions to include divmod functions.

Modified:
    compiler-rt/trunk/make/platform/clang_darwin.mk

Modified: compiler-rt/trunk/make/platform/clang_darwin.mk
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/make/platform/clang_darwin.mk?rev=129757&r1=129756&r2=129757&view=diff
==============================================================================
--- compiler-rt/trunk/make/platform/clang_darwin.mk (original)
+++ compiler-rt/trunk/make/platform/clang_darwin.mk Tue Apr 19 10:14:46 2011
@@ -21,10 +21,11 @@
 Configs += 10.4
 UniversalArchs.10.4 := i386 x86_64
 
-# Configuration for targetting armv6. We need a few additional functions which
-# must be in the same linkage unit.
-Configs += armv6
-UniversalArchs.armv6 := armv6
+# Configuration for targetting iOS, for some ARMv6 functions, which must be
+# in the same linkage unit, and for a couple of other functions that didn't
+# make it into libSystem.
+Configs += ios
+UniversalArchs.ios := armv6 armv7
 
 # Configuration for use with kernel/kexts.
 Configs += cc_kext
@@ -42,8 +43,12 @@
 
 FUNCTIONS.eprintf := eprintf
 FUNCTIONS.10.4 := eprintf floatundidf floatundisf floatundixf
-FUNCTIONS.armv6 := switch16 switch32 switch8 switchu8 \
-                   save_vfp_d8_d15_regs restore_vfp_d8_d15_regs
+
+IOS_COMMON_FUNCTIONS := divmodsi4 udivmodsi4
+FUNCTIONS.ios.armv6 := $(IOS_COMMON_FUNCTIONS) \
+                       switch16 switch32 switch8 switchu8 \
+                       save_vfp_d8_d15_regs restore_vfp_d8_d15_regs
+FUNCTIONS.ios.armv7 := $(IOS_COMMON_FUNCTIONS)
 
 CCKEXT_COMMON_FUNCTIONS := \
 	absvdi2 \





More information about the llvm-commits mailing list