This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix asm constraints in sysdeps/mach/i386/machine-lock.h


2008-08-11  Aurelien Jarno  <aurel32@debian.org>

	* sysdeps/mach/i386/machine-lock.h (__spin_unlock,
	* __spin_try_lock): Fix asm constraints.

Index: sysdeps/mach/i386/machine-lock.h
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/mach/i386/machine-lock.h,v
retrieving revision 1.9
diff -u -p -r1.9 machine-lock.h
--- sysdeps/mach/i386/machine-lock.h	2 Aug 2008 20:12:08 -0000	1.9
+++ sysdeps/mach/i386/machine-lock.h	11 Aug 2008 23:32:57 -0000
@@ -38,18 +38,18 @@
    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.  */
 
 _EXTERN_INLINE int
 __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;
 }
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]