[llvm-commits] [patch] Fix Windows Atomic implementation

Michael Beck mm.beck at gmx.net
Sat Dec 5 16:46:05 PST 2009


Hi all,

The following patch fixes the Atomic implementation if compiled by MSVC compiler.
sys::cas_flag should be long on this platform, InterlockedAdd() is defined only for the Itanium architecture (according to MSDN).

If this and my previous patch to cmake/modules/CheckAtomic.cmake are applied, cmake builds with MSVC will contain multithreading support.

best regards,


-- 
Michael Beck

Preisknaller: GMX DSL Flatrate für nur 16,99 Euro/mtl.!
http://portal.gmx.net/de/go/dsl02
-------------- next part --------------
A non-text attachment was scrubbed...
Name: atomic.diff
Type: application/octet-stream
Size: 960 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20091206/2125f42c/attachment.obj>


More information about the llvm-commits mailing list