1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-12-23 03:53:43 +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:
Ken Werner 2011-06-30 12:36:44 +02:00
parent e09f9701ff
commit b28335b5a5

View file

@ -55,7 +55,7 @@ arm_local_resume (unw_addr_space_t as, unw_cursor_t *cursor, void *arg)
"ldmia %0, {r4-r12, lr}\n" "ldmia %0, {r4-r12, lr}\n"
"mov sp, r12\n" "mov sp, r12\n"
"bx lr\n" "bx lr\n"
: : "r" (regs) : : : "r" (regs)
); );
} }
else else
@ -87,7 +87,7 @@ arm_local_resume (unw_addr_space_t as, unw_cursor_t *cursor, void *arg)
asm __volatile__ ( asm __volatile__ (
"mov sp, %0\n" "mov sp, %0\n"
"bx %1\n" "bx %1\n"
: : "r" (c->sigcontext_sp), "r" (c->sigcontext_pc) : : : "r" (c->sigcontext_sp), "r" (c->sigcontext_pc)
); );
} }
#else #else