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]

[PATCH 6/7] fixup: emit barrier for sync_test_and_set.


---
 gcc/config/sparc/sync.md |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/gcc/config/sparc/sync.md b/gcc/config/sparc/sync.md
index 782aa60..821d59e 100644
--- a/gcc/config/sparc/sync.md
+++ b/gcc/config/sparc/sync.md
@@ -229,6 +229,7 @@
     FAIL;
   if (<MODE>mode != QImode)
     operands[1] = adjust_address (operands[1], QImode, 0);
+  sparc_emit_membar_for_model (MEMMODEL_ACQUIRE, 3, 1);
   emit_insn (gen_ldstub<mode> (operands[0], operands[1]));
   DONE;
 })
-- 
1.7.4.4


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