From: Julian Seward Date: Mon, 4 Jan 2010 10:47:25 +0000 (+0000) Subject: Fix building of these regtests on Darwin. Not sure why they broke X-Git-Tag: svn/VALGRIND_3_6_0~415 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3073378de61df8ddcf8675d989278225cc0f4d1;p=thirdparty%2Fvalgrind.git Fix building of these regtests on Darwin. Not sure why they broke in the first place. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11009 --- diff --git a/helgrind/tests/tc07_hbl1.c b/helgrind/tests/tc07_hbl1.c index 2dc9b444b7..d48f7bb99c 100644 --- a/helgrind/tests/tc07_hbl1.c +++ b/helgrind/tests/tc07_hbl1.c @@ -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" ) diff --git a/helgrind/tests/tc08_hbl2.c b/helgrind/tests/tc08_hbl2.c index e674167003..0ca3f3aec3 100644 --- a/helgrind/tests/tc08_hbl2.c +++ b/helgrind/tests/tc08_hbl2.c @@ -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" ) diff --git a/helgrind/tests/tc11_XCHG.c b/helgrind/tests/tc11_XCHG.c index 0f60259d91..54cb494a1a 100644 --- a/helgrind/tests/tc11_XCHG.c +++ b/helgrind/tests/tc11_XCHG.c @@ -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" \