Blame SOURCES/gc_ppc64le_force_AO_load.patch

796236
Subject: gc ppc64le force AO load
796236
From: Michel Normand <normand@linux.vnet.ibm.com>
796236
796236
Force AO_load() to map to AO_load_acquire() for powerpc.  The
796236
AO_load_acquire() function includes isync instructions that
796236
are critical for proper behavior on power system.
796236
796236
Signed-Off-By: Will Schmidt <will_schmidt at vnet.ibm.com>
796236
Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
796236
796236
diff -up libatomic_ops-7.4.4/src/atomic_ops/sysdeps/gcc/powerpc.h.gc_ppc64le_force_AO_load libatomic_ops-7.4.4/src/atomic_ops/sysdeps/gcc/powerpc.h
796236
--- libatomic_ops-7.4.4/src/atomic_ops/sysdeps/gcc/powerpc.h.gc_ppc64le_force_AO_load	2016-05-24 15:01:55.000000000 -0500
796236
+++ libatomic_ops-7.4.4/src/atomic_ops/sysdeps/gcc/powerpc.h	2016-06-17 10:27:10.503593018 -0500
796236
@@ -29,6 +29,8 @@
796236
 
796236
 #include "../all_aligned_atomic_load_store.h"
796236
 
796236
+#define AO_load(addr) AO_load_acquire(addr)
796236
+
796236
 #include "../test_and_set_t_is_ao_t.h"
796236
         /* There seems to be no byte equivalent of lwarx, so this       */
796236
         /* may really be what we want, at least in the 32-bit case.     */