[ARM/Unwind] Fix wrong usage of write-back on register save
authorRenato Golin <renato.golin@linaro.org>
Thu, 6 Aug 2015 18:15:17 +0000 (18:15 +0000)
committerRenato Golin <renato.golin@linaro.org>
Thu, 6 Aug 2015 18:15:17 +0000 (18:15 +0000)
commit14c3c4bb85e9a2fb8178a09981a0310c997e9ffc
tree939f1370b58ab8b6f9c2241e574c1ee43ca1563a
parent45c20b474e8057b8dae813b799136ca4d36bdcb7
[ARM/Unwind] Fix wrong usage of write-back on register save

The register save routine in libunwind was using write-back addressing
mode to r0 for thumb, when that was not only different from the ARM
version and more importantly the register restore, but also saving the
wrong address.

Patch by Manuel Freiberger.

Fixes PR24331.

llvm-svn: 244237
libunwind/src/UnwindRegistersSave.S