mirror of
https://github.com/fluencelabs/musl
synced 2025-04-24 23:02:14 +00:00
fix build failure for sh4a due to missing colon in asm statement
Due to a missing ":" in an asm() statement, the "memory" clobber is considered by gcc as an input operand and not a clobber, which causes a build failure.
This commit is contained in:
parent
80bf595255
commit
1698fe6cdc
@ -21,7 +21,7 @@ static inline int a_sc(volatile int *p, int v)
|
||||
#define a_barrier a_barrier
|
||||
static inline void a_barrier()
|
||||
{
|
||||
__asm__ __volatile__ ("synco" : : "memory");
|
||||
__asm__ __volatile__ ("synco" ::: "memory");
|
||||
}
|
||||
|
||||
#define a_pre_llsc a_barrier
|
||||
|
Loading…
x
Reference in New Issue
Block a user