From 4227fc98fe95f75d8e7216cbf699a6477660c0b5 Mon Sep 17 00:00:00 2001 From: Joakim Tjernlund Date: Sat, 28 May 2005 21:59:38 +0000 Subject: gcc says spinlock.c:35: warning: matching constraint does not allow a register Update the asm to match glibc. --- libpthread/linuxthreads/spinlock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpthread') diff --git a/libpthread/linuxthreads/spinlock.c b/libpthread/linuxthreads/spinlock.c index 5d4bd20e4..c0e7a368f 100644 --- a/libpthread/linuxthreads/spinlock.c +++ b/libpthread/linuxthreads/spinlock.c @@ -32,7 +32,7 @@ static inline void __pthread_release(int * spinlock) { WRITE_MEMORY_BARRIER(); *spinlock = __LT_SPINLOCK_INIT; - __asm __volatile ("" : "=m" (*spinlock) : "0" (*spinlock)); + __asm __volatile ("" : "=m" (*spinlock) : "m" (*spinlock)); } -- cgit v1.2.3