projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80bf595
)
fix build failure for sh4a due to missing colon in asm statement
author
Thomas Petazzoni
<thomas.petazzoni@free-electrons.com>
Fri, 28 Jul 2017 21:05:54 +0000
(23:05 +0200)
committer
Rich Felker
<dalias@aerifal.cx>
Sat, 12 Aug 2017 01:06:57 +0000
(21:06 -0400)
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.
arch/sh/atomic_arch.h
patch
|
blob
|
history
diff --git
a/arch/sh/atomic_arch.h
b/arch/sh/atomic_arch.h
index 74444d5d51982dc3bbff6c254c79aff66b7ffffb..d48a7651625dbffdf9e3cb233e1787c0f42ccbd3 100644
(file)
--- 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