[PATCH] D30867: [Builtin][ARM] Try to address error on FreeBSD with r288777
Weiming Zhao via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 11 12:21:47 PST 2017
weimingz created this revision.
Herald added a subscriber: aemerson.
It seems the only suspicious change in r288777 is the extra "#ifdef __ARM_ARCH_EXT_IDIV__".
The rest of the change in r288777 should not affect the "#else" part of "__ARM_ARCH_ISA_THUMB == 1"
https://reviews.llvm.org/D30867
Files:
lib/builtins/arm/udivsi3.S
Index: lib/builtins/arm/udivsi3.S
===================================================================
--- lib/builtins/arm/udivsi3.S
+++ lib/builtins/arm/udivsi3.S
@@ -252,14 +252,12 @@
JMP(lr)
#endif /* __ARM_ARCH_EXT_IDIV__ */
-#if __ARM_ARCH_EXT_IDIV__
LOCAL_LABEL(divby0):
- mov r0, #0
-# ifdef __ARM_EABI__
- b __aeabi_idiv0
-# else
- JMP(lr)
-# endif
+ mov r0, #0
+#ifdef __ARM_EABI__
+ b __aeabi_idiv0
+#else
+ JMP(lr)
#endif
END_COMPILERRT_FUNCTION(__udivsi3)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30867.91478.patch
Type: text/x-patch
Size: 522 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170311/eff33a67/attachment.bin>
More information about the llvm-commits
mailing list