summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/stg/SMP.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/stg/SMP.h b/includes/stg/SMP.h
index 07ea522328..471e8f9f51 100644
--- a/includes/stg/SMP.h
+++ b/includes/stg/SMP.h
@@ -173,7 +173,7 @@ cas(StgVolatilePtr p, StgWord o, StgWord n)
#if i386_HOST_ARCH || x86_64_HOST_ARCH
__asm__ __volatile__ (
"lock\ncmpxchg %3,%1"
- :"=a"(o), "=m" (*(volatile unsigned int *)p)
+ :"=a"(o), "+m" (*(volatile unsigned int *)p)
:"0" (o), "r" (n));
return o;
#elif powerpc_HOST_ARCH