mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-12-22 19:43:42 +01:00
Fix inline assembly.
Remove the third colon if the clobber list is not present. Signed-off-by: Ken Werner <ken.werner@linaro.org>
This commit is contained in:
parent
e09f9701ff
commit
b28335b5a5
1 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ arm_local_resume (unw_addr_space_t as, unw_cursor_t *cursor, void *arg)
|
|||
"ldmia %0, {r4-r12, lr}\n"
|
||||
"mov sp, r12\n"
|
||||
"bx lr\n"
|
||||
: : "r" (regs) :
|
||||
: : "r" (regs)
|
||||
);
|
||||
}
|
||||
else
|
||||
|
@ -87,7 +87,7 @@ arm_local_resume (unw_addr_space_t as, unw_cursor_t *cursor, void *arg)
|
|||
asm __volatile__ (
|
||||
"mov sp, %0\n"
|
||||
"bx %1\n"
|
||||
: : "r" (c->sigcontext_sp), "r" (c->sigcontext_pc) :
|
||||
: : "r" (c->sigcontext_sp), "r" (c->sigcontext_pc)
|
||||
);
|
||||
}
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue