|
From: <sv...@va...> - 2010-01-04 10:47:34
|
Author: sewardj
Date: 2010-01-04 10:47:25 +0000 (Mon, 04 Jan 2010)
New Revision: 11009
Log:
Fix building of these regtests on Darwin. Not sure why they broke
in the first place.
Modified:
trunk/helgrind/tests/tc07_hbl1.c
trunk/helgrind/tests/tc08_hbl2.c
trunk/helgrind/tests/tc11_XCHG.c
Modified: trunk/helgrind/tests/tc07_hbl1.c
===================================================================
--- trunk/helgrind/tests/tc07_hbl1.c 2010-01-04 10:46:44 UTC (rev 11008)
+++ trunk/helgrind/tests/tc07_hbl1.c 2010-01-04 10:47:25 UTC (rev 11009)
@@ -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" )
Modified: trunk/helgrind/tests/tc08_hbl2.c
===================================================================
--- trunk/helgrind/tests/tc08_hbl2.c 2010-01-04 10:46:44 UTC (rev 11008)
+++ trunk/helgrind/tests/tc08_hbl2.c 2010-01-04 10:47:25 UTC (rev 11009)
@@ -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" )
Modified: trunk/helgrind/tests/tc11_XCHG.c
===================================================================
--- trunk/helgrind/tests/tc11_XCHG.c 2010-01-04 10:46:44 UTC (rev 11008)
+++ trunk/helgrind/tests/tc11_XCHG.c 2010-01-04 10:47:25 UTC (rev 11009)
@@ -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" \
|