[PATCH] Make the unwinder build on thumbv6-m with the integrated assembler.

Jonathan Roelofs jonathan at codesourcery.com
Fri Feb 13 16:17:08 PST 2015


Sounds good to me.


http://reviews.llvm.org/D7630

Files:
  UnwindRegistersSave.S

Index: UnwindRegistersSave.S
===================================================================
--- UnwindRegistersSave.S
+++ UnwindRegistersSave.S
@@ -316,7 +316,11 @@
   str lr, [r0, #56]
   str lr, [r0, #60]  @ store return address as pc
 #endif
+#if __ARM_ARCH_ISA_THUMB1 == 1
+  movs r0, #0        @ return UNW_ESUCCESS
+#else
   mov r0, #0         @ return UNW_ESUCCESS
+#endif
   JMP(lr)
 
 @

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7630.19948.patch
Type: text/x-patch
Size: 401 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150214/1231608d/attachment.bin>


More information about the cfe-commits mailing list