Skip to content

Commit

Permalink
Merge #194
Browse files Browse the repository at this point in the history
194: libtock: Use __asm__ instead of asm r=ppannuto a=alistair23

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]>

Co-authored-by: Alistair Francis <[email protected]>
  • Loading branch information
bors[bot] and alistair23 authored Mar 12, 2021
2 parents 1368073 + af15016 commit bfcd622
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 bfcd622

Please sign in to comment.