summaryrefslogtreecommitdiffstats
path: root/compiler-rt
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-04-19 15:14:46 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-04-19 15:14:46 +0000
commitddd3a2ec1db55a1b42f36648785b1c1e3e34ab93 (patch)
tree18bf08d3621c14d79e306c753a534fc0d66d2125 /compiler-rt
parentfb1249548fe25e8f0c1fee54f1519aaa4b5bf6f5 (diff)
downloadbcm5719-llvm-ddd3a2ec1db55a1b42f36648785b1c1e3e34ab93.tar.gz
bcm5719-llvm-ddd3a2ec1db55a1b42f36648785b1c1e3e34ab93.zip
clang_darwin: Tweak runtime library definitions to include divmod functions.
llvm-svn: 129757
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/make/platform/clang_darwin.mk17
1 files changed, 11 insertions, 6 deletions
diff --git a/compiler-rt/make/platform/clang_darwin.mk b/compiler-rt/make/platform/clang_darwin.mk
index 3abed346f04..cf0e6cbbf39 100644
--- a/compiler-rt/make/platform/clang_darwin.mk
+++ b/compiler-rt/make/platform/clang_darwin.mk
@@ -21,10 +21,11 @@ UniversalArchs.eprintf := i386
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 @@ CFLAGS := -Wall -Werror -O3 -fomit-frame-pointer
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 \
OpenPOWER on IntegriCloud