This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gomp3] Fix typo in sparc atomic_write_barrier


Hi!

Tom Callaway reported atomic_write_barrier is wrong on sparc{v9,64}-linux.
Fixed thusly.

2008-03-28  Jakub Jelinek  <jakub@redhat.com>

	* config/linux/sparc/futex.h (atomic_write_barrier): Fix membar
	argument.

--- libgomp/config/linux/sparc/futex.h	(revision 133680)
+++ libgomp/config/linux/sparc/futex.h	(working copy)
@@ -104,7 +104,7 @@ static inline void
 atomic_write_barrier (void)
 {
 #if defined __arch64__ || defined __sparc_v9__
-  __asm volatile ("membar #WriteWrite" : : : "memory");
+  __asm volatile ("membar #StoreStore" : : : "memory");
 #else
   __sync_synchronize ();
 #endif

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]