Hi compnerd,

Integrated AS likes UAL, and can't handle pre-UAL garbage like thumb1 'mov r0, 
#0'.

http://reviews.llvm.org/D7630

Files:
  UnwindRegistersSave.S

Index: UnwindRegistersSave.S
===================================================================
--- UnwindRegistersSave.S
+++ UnwindRegistersSave.S
@@ -307,16 +307,17 @@
   str r2, [r0, #52]
   str r3, [r0, #56]
   str r3, [r0, #60]  @ store return address as pc
+  movs r0, #0        @ return UNW_ESUCCESS
 #else
   @ 32bit thumb-2 restrictions for stm:
   @ . the sp (r13) cannot be in the list
   @ . the pc (r15) cannot be in the list in an STM instruction
   stm r0, {r0-r12}
   str sp, [r0, #52]
   str lr, [r0, #56]
   str lr, [r0, #60]  @ store return address as pc
-#endif
   mov r0, #0         @ return UNW_ESUCCESS
+#endif
   JMP(lr)
 
 @

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
Index: UnwindRegistersSave.S
===================================================================
--- UnwindRegistersSave.S
+++ UnwindRegistersSave.S
@@ -307,16 +307,17 @@
   str r2, [r0, #52]
   str r3, [r0, #56]
   str r3, [r0, #60]  @ store return address as pc
+  movs r0, #0        @ return UNW_ESUCCESS
 #else
   @ 32bit thumb-2 restrictions for stm:
   @ . the sp (r13) cannot be in the list
   @ . the pc (r15) cannot be in the list in an STM instruction
   stm r0, {r0-r12}
   str sp, [r0, #52]
   str lr, [r0, #56]
   str lr, [r0, #60]  @ store return address as pc
-#endif
   mov r0, #0         @ return UNW_ESUCCESS
+#endif
   JMP(lr)
 
 @
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to