This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Fix libgcj build failure on Alpha
- From: Andrew Haley <aph at redhat dot com>
- To: gcc at gcc dot gnu dot org, java at gcc dot gnu dot org
- Date: Mon, 22 Jan 2007 12:24:33 +0000
- Subject: Fix libgcj build failure on Alpha
write_barrier() is missing in the libgcj build. Fixed thusly.
Andrew.
2007-01-22 Andrew Haley <aph@redhat.com>
* sysdep/alpha/locks.h (write_barrier): New.
Index: locks.h
===================================================================
--- locks.h (revision 120859)
+++ locks.h (working copy)
@@ -50,4 +50,12 @@
return compare_and_swap(addr, old, new_val);
}
+// Ensure that prior stores to memory are completed with respect to other
+// processors.
+inline static void
+write_barrier()
+{
+ __asm__ __volatile__("wmb" : : : "memory");
+}
+
#endif