]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix building of these regtests on Darwin. Not sure why they broke
authorJulian Seward <jseward@acm.org>
Mon, 4 Jan 2010 10:47:25 +0000 (10:47 +0000)
committerJulian Seward <jseward@acm.org>
Mon, 4 Jan 2010 10:47:25 +0000 (10:47 +0000)
in the first place.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11009

helgrind/tests/tc07_hbl1.c
helgrind/tests/tc08_hbl2.c
helgrind/tests/tc11_XCHG.c

index 2dc9b444b7b6ef907c5f2997d517c679670236fd..d48f7bb99c5c6e588e7dcd93053aa8c8a1af9c84 100644 (file)
@@ -36,7 +36,8 @@
 #  define PLAT_arm_linux 1
 #endif
 
-#if defined(PLAT_amd64_linux) || defined(PLAT_x86_linux)
+#if defined(PLAT_amd64_linux) || defined(PLAT_x86_linux) \
+    || defined(PLAT_amd64_darwin) || defined(PLAT_x86_darwin)
 #  define INC(_lval,_lqual) \
       __asm__ __volatile__ ( \
       "lock ; incl (%0)" : /*out*/ : /*in*/"r"(&(_lval)) : "memory", "cc" )
index e6741670035c9b2a47f2fbdd0fdbcd8f1bc46ee0..0ca3f3aec391595307ff77e5669ed30aa94c4362 100644 (file)
@@ -53,7 +53,8 @@
 #endif
 
 
-#if defined(PLAT_amd64_linux) || defined(PLAT_x86_linux)
+#if defined(PLAT_amd64_linux) || defined(PLAT_x86_linux) \
+    || defined(PLAT_amd64_darwin) || defined(PLAT_x86_darwin)
 #  define INC(_lval,_lqual)         \
       __asm__ __volatile__ ( \
       "lock ; incl (%0)" : /*out*/ : /*in*/"r"(&(_lval)) : "memory", "cc" )
index 0f60259d9126046ae02a3e74226d49afb7770002..54cb494a1a122e39637bde4e64b96498900a718d 100644 (file)
@@ -40,7 +40,8 @@
 #endif
 
 
-#if defined(PLAT_amd64_linux) || defined(PLAT_x86_linux)
+#if defined(PLAT_amd64_linux) || defined(PLAT_x86_linux) \
+    || defined(PLAT_amd64_darwin) || defined(PLAT_x86_darwin)
 #  define XCHG_M_R(_addr,_lval) \
      __asm__ __volatile__( \
         "xchgl %0, %1" \