[AArch64] Mark LR clobbered by BL in inline asm
Commit Message
LR is a caller-save register, so, if inline asm does BL (which touches
LR), we should mark LR clobbered.
I'll push it in.
gdb/testsuite:
2017-10-27 Yao Qi <yao.qi@linaro.org>
* gdb.arch/insn-reloc.c (can_relocate_bl): Mark "x30" clobbered.
---
gdb/testsuite/ChangeLog | 4 ++++
gdb/testsuite/gdb.arch/insn-reloc.c | 3 ++-
2 files changed, 6 insertions(+), 1 deletion(-)
@@ -1,3 +1,7 @@
+2017-10-27 Yao Qi <yao.qi@linaro.org>
+
+ * gdb.arch/insn-reloc.c (can_relocate_bl): Mark "x30" clobbered.
+
2017-10-26 Patrick Frants <osscontribute@gmail.com>
* gdb.cp/classes.exp (test_static_members): Test printing
@@ -508,7 +508,8 @@ can_relocate_bl (void)
{
asm ("set_point11:\n"
" bl foo\n"
- " bl pass\n"); /* Test that LR is updated correctly. */
+ " bl pass\n"
+ : : : "x30"); /* Test that LR is updated correctly. */
}
#endif