summaryrefslogtreecommitdiff
path: root/include/atomic
diff options
context:
space:
mode:
authorMikael Ronstrom <mikael@mysql.com>2009-06-10 12:23:02 +0200
committerMikael Ronstrom <mikael@mysql.com>2009-06-10 12:23:02 +0200
commit510835a0727fc1ebe98e2808cae91c8ab014d27e (patch)
tree3322a7963f4b345492a3866a1b325f2f18c85652 /include/atomic
parent7f2db925de438b9fafa21fa48a146253b8ea1f3e (diff)
downloadmariadb-git-510835a0727fc1ebe98e2808cae91c8ab014d27e.tar.gz
Fix for BUG#45131
Diffstat (limited to 'include/atomic')
-rw-r--r--include/atomic/x86-gcc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/atomic/x86-gcc.h b/include/atomic/x86-gcc.h
index d79dadbf05e..726c98213fb 100644
--- a/include/atomic/x86-gcc.h
+++ b/include/atomic/x86-gcc.h
@@ -35,7 +35,7 @@
asm volatile (LOCK "; xadd %0, %1;" : "+r" (v) , "+m" (*a))
#endif
#define make_atomic_swap_body(S) \
- asm volatile ("; xchg %0, %1;" : "+r" (v) , "+m" (*a))
+ asm volatile ("; xchg %0, %1;" : "+q" (v) , "+m" (*a))
#define make_atomic_cas_body(S) \
asm volatile (LOCK "; cmpxchg %3, %0; setz %2;" \
: "+m" (*a), "+a" (*cmp), "=q" (ret): "r" (set))