summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads
diff options
context:
space:
mode:
authorJoakim Tjernlund <joakim.tjernlund@transmode.se>2005-05-28 21:59:38 +0000
committerJoakim Tjernlund <joakim.tjernlund@transmode.se>2005-05-28 21:59:38 +0000
commit4227fc98fe95f75d8e7216cbf699a6477660c0b5 (patch)
tree130820d5b305a64fa53f34de253396c4f3c9acd4 /libpthread/linuxthreads
parent0c481d3478cb8aa7c250404a7d9d638172ed9353 (diff)
gcc says
spinlock.c:35: warning: matching constraint does not allow a register Update the asm to match glibc.
Diffstat (limited to 'libpthread/linuxthreads')
-rw-r--r--libpthread/linuxthreads/spinlock.c2
1 files changed, 1 insertions, 1 deletions
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));
}