about summary refs log tree commit diff
path: root/linuxthreads/sysdeps/i386/pt-machine.h
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads/sysdeps/i386/pt-machine.h')
-rw-r--r--linuxthreads/sysdeps/i386/pt-machine.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/linuxthreads/sysdeps/i386/pt-machine.h b/linuxthreads/sysdeps/i386/pt-machine.h
index 88599467ad..97d75d4c04 100644
--- a/linuxthreads/sysdeps/i386/pt-machine.h
+++ b/linuxthreads/sysdeps/i386/pt-machine.h
@@ -60,7 +60,8 @@ __compare_and_swap (long int *p, long int oldval, long int newval)
 
   __asm__ __volatile__ ("lock; cmpxchgl %3, %1; sete %0"
 			: "=q" (ret), "=m" (*p), "=a" (readval)
-			: "r" (newval), "m" (*p), "a" (oldval));
+			: "r" (newval), "m" (*p), "a" (oldval)
+			: "memory");
   return ret;
 }