mirror of
https://github.com/fluencelabs/musl
synced 2025-05-29 07:31:53 +00:00
make mips64 a_sc_p atomic primitive's asm constraints work with clang
apparently clang does not accept matching-register input and output constraints that differ in size (32-bit vs 64-bit). based on patch by Jaydeep Patil.
This commit is contained in:
parent
636a4799dd
commit
27bf42cd9d
@ -31,7 +31,7 @@ static inline void *a_ll_p(volatile long *p)
|
|||||||
#define a_sc_p a_sc_p
|
#define a_sc_p a_sc_p
|
||||||
static inline int a_sc_p(volatile long *p, void *v)
|
static inline int a_sc_p(volatile long *p, void *v)
|
||||||
{
|
{
|
||||||
int r;
|
long r;
|
||||||
__asm__ __volatile__ (
|
__asm__ __volatile__ (
|
||||||
"scd %0, %1"
|
"scd %0, %1"
|
||||||
: "=r"(r), "=m"(*p) : "0"(v) : "memory");
|
: "=r"(r), "=m"(*p) : "0"(v) : "memory");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user