about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2008-08-12 00:59:01 +0000
committerRoland McGrath <roland@gnu.org>2008-08-12 00:59:01 +0000
commitb5ec4f43cf6ea026b6db266ac845e5077c61cc62 (patch)
tree1cd41bc1b1d2c7250f1a664da0ae732b2504a1d8 /sysdeps
parent626f68ff24763a1eff58a69777462da90454e28b (diff)
downloadglibc-b5ec4f43cf6ea026b6db266ac845e5077c61cc62.tar.gz
glibc-b5ec4f43cf6ea026b6db266ac845e5077c61cc62.tar.xz
glibc-b5ec4f43cf6ea026b6db266ac845e5077c61cc62.zip
2008-08-11 Aurelien Jarno <aurel32@debian.org>
	* sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
	Fix asm constraints.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/mach/i386/machine-lock.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/mach/i386/machine-lock.h b/sysdeps/mach/i386/machine-lock.h
index ca87647254..33602f43a7 100644
--- a/sysdeps/mach/i386/machine-lock.h
+++ b/sysdeps/mach/i386/machine-lock.h
@@ -41,7 +41,7 @@ __spin_unlock (__spin_lock_t *__lock)
    register int __unlocked;
    __asm__ __volatile ("xchgl %0, %1"
 		       : "=&r" (__unlocked), "=m" (*__lock) : "0" (0)
-		       : : "memory");
+		       : "memory");
 }
 
 /* Try to lock LOCK; return nonzero if we locked it, zero if another has.  */
@@ -52,7 +52,7 @@ __spin_try_lock (__spin_lock_t *__lock)
   register int __locked;
   __asm__ __volatile ("xchgl %0, %1"
 		      : "=&r" (__locked), "=m" (*__lock) : "0" (1)
-		      : : "memory");
+		      : "memory");
   return !__locked;
 }