From: Roland McGrath Date: Tue, 12 Aug 2008 00:59:01 +0000 (+0000) Subject: 2008-08-11 Aurelien Jarno X-Git-Tag: cvs/fedora-glibc-20080828T1623~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b5ec4f43cf6ea026b6db266ac845e5077c61cc62;p=thirdparty%2Fglibc.git 2008-08-11 Aurelien Jarno * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock): Fix asm constraints. --- diff --git a/sysdeps/mach/i386/machine-lock.h b/sysdeps/mach/i386/machine-lock.h index ca876472540..33602f43a7d 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; }