[LLVMdev] broken Atomic.cpp on Darwin

Xi Wang xi.wang at gmail.com
Sat May 23 21:41:57 PDT 2009


There is no __sync_synchronize or __sync_val_compare_and_swap on Mac
OS X.  One might use OSMemoryBarrier or OSAtomicCompareAndSwap32
instead.  The patch is attached.

- xi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: application/octet-stream
Size: 1248 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090524/6f854791/attachment.obj>


More information about the llvm-dev mailing list