aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2004-01-23 13:17:52 +0000
committerAndreas Jaeger <aj@suse.de>2004-01-23 13:17:52 +0000
commit1f81acbcbc5f0a2641f380ecc15e2358784b2001 (patch)
treee29270dbff880d4a3be2347d61e0e00c7ff72ca5 /linuxthreads
parent4ef0929571b55d93f88fa42d167804938af37fad (diff)
downloadglibc-1f81acbcbc5f0a2641f380ecc15e2358784b2001.zip
glibc-1f81acbcbc5f0a2641f380ecc15e2358784b2001.tar.gz
glibc-1f81acbcbc5f0a2641f380ecc15e2358784b2001.tar.bz2
* sysdeps/ieee754/dbl-64/e_pow.c (log2): Rename to my_log2 to
avoid warnings for builtin function log2. 2004-01-22 Andreas Jaeger <aj@suse.de>
Diffstat (limited to 'linuxthreads')
-rw-r--r--linuxthreads/ChangeLog5
-rw-r--r--linuxthreads/spinlock.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog
index 70558eb..827fdd9 100644
--- a/linuxthreads/ChangeLog
+++ b/linuxthreads/ChangeLog
@@ -1,3 +1,8 @@
+2004-01-22 Andreas Jaeger <aj@suse.de>
+
+ * spinlock.c (__pthread_lock): Fix contraint to avoid warning.
+ (__pthread_release): Likewise.
+
2004-01-16 Richard Henderson <rth@redhat.com>
* attr.c: Include ldsodefs.h.
diff --git a/linuxthreads/spinlock.c b/linuxthreads/spinlock.c
index 47107bf..08fff08 100644
--- a/linuxthreads/spinlock.c
+++ b/linuxthreads/spinlock.c
@@ -30,7 +30,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));
}
@@ -106,7 +106,7 @@ void internal_function __pthread_lock(struct _pthread_fastlock * lock,
#ifdef BUSY_WAIT_NOP
BUSY_WAIT_NOP;
#endif
- __asm __volatile ("" : "=m" (lock->__status) : "0" (lock->__status));
+ __asm __volatile ("" : "=m" (lock->__status) : "m" (lock->__status));
}
lock->__spinlock += (spin_count - lock->__spinlock) / 8;