<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - non-portable x86/x86_64 inline assembly"
href="https://bugs.freedesktop.org/show_bug.cgi?id=86997#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - non-portable x86/x86_64 inline assembly"
href="https://bugs.freedesktop.org/show_bug.cgi?id=86997">bug 86997</a>
from <span class="vcard"><a class="email" href="mailto:timo.teras@iki.fi" title="Timo Teräs <timo.teras@iki.fi>"> <span class="fn">Timo Teräs</span></a>
</span></b>
<pre>Seems that memory barrier is the only thing needed. Consider using compiler
built-ins when possible.
See:
<a href="http://en.wikipedia.org/wiki/Memory_ordering#Compiler_support_for_hardware_memory_barriers">http://en.wikipedia.org/wiki/Memory_ordering#Compiler_support_for_hardware_memory_barriers</a>
So with gcc>=4.4 __sync_synchronize() would be preferred.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>