From eeb22c33a15bc8b2b2c71739b15b0e39181dbbf9 Mon Sep 17 00:00:00 2001 From: "wolfgang.thaller@gmx.net" Date: Mon, 6 Mar 2006 03:48:20 +0000 Subject: [PATCH] Use Darwin-compatible x86 assembly syntax in SMP.h (lock/cmpxchg with a slash) --- ghc/includes/SMP.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghc/includes/SMP.h b/ghc/includes/SMP.h index f4c8605..93af9df 100644 --- a/ghc/includes/SMP.h +++ b/ghc/includes/SMP.h @@ -63,7 +63,7 @@ cas(StgVolatilePtr p, StgWord o, StgWord n) { #if i386_HOST_ARCH || x86_64_HOST_ARCH __asm__ __volatile__ ( - "lock cmpxchg %3,%1" + "lock/cmpxchg %3,%1" :"=a"(o), "=m" (*(volatile unsigned int *)p) :"0" (o), "r" (n)); return o; -- 1.7.10.4