diff options
author | Billy Donahue <BillyDonahue@users.noreply.github.com> | 2020-03-09 12:45:47 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-09 09:45:47 -0700 |
commit | e56a679deaa9b28d9a8b7732e8fe6da408b49478 (patch) | |
tree | 117876e08825aa9bad9c24e66a3c74e2c0007907 /src/sh | |
parent | 49d2bf0e55c1b4ff90371e8e6fd9ac88c3d26834 (diff) | |
download | libunwind-e56a679deaa9b28d9a8b7732e8fe6da408b49478.tar.gz |
change asm to __asm__ to support -std=c11 or similar (#149)
Diffstat (limited to 'src/sh')
-rw-r--r-- | src/sh/Gresume.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sh/Gresume.c b/src/sh/Gresume.c index a263c927..5590bafa 100644 --- a/src/sh/Gresume.c +++ b/src/sh/Gresume.c @@ -55,7 +55,7 @@ sh_local_resume (unw_addr_space_t as, unw_cursor_t *cursor, void *arg) char x[sizeof(regs)]; }; - asm volatile ( + __asm__ __volatile__ ( "mov.l @%0+, r8\n" "mov.l @%0+, r9\n" "mov.l @%0+, r10\n" @@ -99,7 +99,7 @@ sh_local_resume (unw_addr_space_t as, unw_cursor_t *cursor, void *arg) /* Set the SP and the PC in order to continue execution at the modified trampoline which restores the signal mask and the registers. */ - asm __volatile__ ( + __asm__ __volatile__ ( "mov %0, r15\n" "lds %1, pr\n" "rts\n" |