[cairo-bugs] [Bug 103559] Incorrect code generation for atomic operations if HAVE_INTEL_ATOMIC_PRIMITIVES defined

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Nov 5 08:48:41 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=103559

--- Comment #1 from Uli Schlachter <psychon at znc.in> ---
Quick comment that doesn't actually answer any question:

   # define _cairo_atomic_int_get(x) (*x)

I think this needs to be a volatile read, at least. So, shouldn't 

   typedef int cairo_atomic_int_t;

instead use volatile int instead of int? I guess this might make this work
correctly, but I am not sure (I don't think I heard much about this intel
atomics before) and I certainly don't use this code anyway.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo-bugs/attachments/20171105/4dc227e8/attachment.html>


More information about the cairo-bugs mailing list