http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55690
Bug #: 55690 Summary: On some targets thread_fence is not a compiler barrier when memmodel != MEMMODEL_SEQ_CST Classification: Unclassified Product: gcc Version: 4.7.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassig...@gcc.gnu.org ReportedBy: tomash.brec...@gmail.com At least for i386 and ia64 a call to expand_asm_memory_barrier() is needed when memmodel != MEMMODEL_RELAXED.