From c83d2d16d72825ea5ef9a1b3c7096fc9e19491b7 Mon Sep 17 00:00:00 2001 From: "Ben.Lippmeier@anu.edu.au" Date: Fri, 13 Feb 2009 00:49:10 +0000 Subject: [PATCH] NCG: Use sync instead of msync for a memory barrier for powerpc Darwin 9.6.0 + GCC 4.0.1 doesn't understand "msync". I think "sync" means the same thing. --- includes/SMP.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/SMP.h b/includes/SMP.h index c851054..223f158 100644 --- a/includes/SMP.h +++ b/includes/SMP.h @@ -195,7 +195,7 @@ store_load_barrier(void) { #elif x86_64_HOST_ARCH __asm__ __volatile__ ("lock; addq $0,0(%%rsp)" : : : "memory"); #elif powerpc_HOST_ARCH - __asm__ __volatile__ ("msync" : : : "memory"); + __asm__ __volatile__ ("sync" : : : "memory"); #elif sparc_HOST_ARCH /* Sparc in TSO mode does not require write/write barriers. */ __asm__ __volatile__ ("membar" : : : "memory"); -- 1.7.10.4