summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-07-28 23:05:54 +0200
committerRich Felker <dalias@aerifal.cx>2017-08-11 21:06:57 -0400
commit1698fe6cdcdeaad03aa19a85433d5396ecfc51ef (patch)
treebfc46f2ce6ea131f10b292f6d513452922ea9e1b /arch
parent80bf5952551c002cf12d96deb145629765272db0 (diff)
downloadmusl-1698fe6cdcdeaad03aa19a85433d5396ecfc51ef.tar.gz
musl-1698fe6cdcdeaad03aa19a85433d5396ecfc51ef.tar.bz2
musl-1698fe6cdcdeaad03aa19a85433d5396ecfc51ef.tar.xz
musl-1698fe6cdcdeaad03aa19a85433d5396ecfc51ef.zip
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.
Diffstat (limited to 'arch')
-rw-r--r--arch/sh/atomic_arch.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/atomic_arch.h b/arch/sh/atomic_arch.h
index 74444d5d..d48a7651 100644
--- a/arch/sh/atomic_arch.h
+++ b/arch/sh/atomic_arch.h
@@ -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