[PATCH] compiler-rt: C++11 atomic support porting to Darwin

Nick Kledzik kledzik at apple.com
Tue May 21 13:08:57 PDT 2013


The attached proposed patch fixes two issues building lib/atomic.c for Darwin:
1) In Darwin/mach-o the symbol name for C functions has a leading underscore, so the #pragma redefine_extname needs to be changed to add the extra underscore.
2) The generic spin locks are specialized for Darwin platforms to use the OS supplied spin lock routines.

-Nick


-------------- next part --------------
A non-text attachment was scrubbed...
Name: compiler-rt.patch
Type: application/octet-stream
Size: 1684 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130521/368b0655/attachment.obj>


More information about the llvm-commits mailing list