提交 1698fe6c 编写于 作者: T Thomas Petazzoni 提交者: Rich Felker

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.
上级 80bf5952
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册