<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - ATOMIC_OP_NEEDS_MEMORY_BARRIER doesn't play well with ThreadSanitizer"
href="https://bugs.freedesktop.org/show_bug.cgi?id=90303#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - ATOMIC_OP_NEEDS_MEMORY_BARRIER doesn't play well with ThreadSanitizer"
href="https://bugs.freedesktop.org/show_bug.cgi?id=90303">bug 90303</a>
from <span class="vcard"><a class="email" href="mailto:chris@chris-wilson.co.uk" title="Chris Wilson <chris@chris-wilson.co.uk>"> <span class="fn">Chris Wilson</span></a>
</span></b>
<pre>You have to assume someone will try compiling on Solaris and complain...
Basically do:
#if HAS_GCC(5,0)
#define COMPILER_HAS_ATOMIC
#endif
#if COMPILER_HAS_ATOMICS
/* Use modern version: even include a lesson on ThreadSanitizer */
#else
/* The current file */
#endif
Change as required. If the current set of operations are not sufficient, or if
there are places in the code not adhering to even the current rules, please do
those as follow up patches. They would be good examples of ThreadSantizer at
work...</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>