summaryrefslogtreecommitdiff
path: root/sysdeps/i386/bits/memory.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/i386/bits/memory.h')
-rw-r--r--sysdeps/i386/bits/memory.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/i386/bits/memory.h b/sysdeps/i386/bits/memory.h
index e47a8e2d..932c4086 100644
--- a/sysdeps/i386/bits/memory.h
+++ b/sysdeps/i386/bits/memory.h
@@ -28,7 +28,7 @@ __memory_barrier (void)
/* Any lock'ed instruction will do. We just do a simple
increment. */
- __asm__ __volatile ("lock; incl %0" : "=m" (i) : "m" (i));
+ __asm__ __volatile ("lock; incl %0" : "=m" (i) : "m" (i) : "memory");
}
/* Prevent read reordering across this function. */