Skip to content

Commit

Permalink
libtock: Use __asm__ instead of asm
Browse files Browse the repository at this point in the history
The GCC documentation states:
"When writing code that can be compiled with -ansi and the various
-std options, use __asm__ instead of asm"
Switch to use __asm__ to be more flexible.

Signed-off-by: Alistair Francis <[email protected]>
  • Loading branch information
alistair23 committed Mar 12, 2021
1 parent 1368073 commit af15016
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libtock/crt0.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ void _start(void* app_start __attribute__((unused)),

#elif defined(__riscv)

asm volatile (
__asm__ volatile (
// Compute the stack top.
//
// struct hdr* myhdr = (struct hdr*) app_start;
Expand Down

0 comments on commit af15016

Please sign in to comment.