[PATCH] Use __atomic_exchange_n with GCC instead of Clang's __sync_swap

David Majnemer david.majnemer at gmail.com
Fri Oct 3 12:48:06 PDT 2014


================
Comment at: src/cxa_handlers.cpp:105
@@ -104,3 +104,3 @@
 
-extern "C" new_handler __cxa_new_handler = 0;
+new_handler __cxa_new_handler = 0;
 // In the future these will become:
----------------
Why is the extern "C" removed from here? Looks unrelated.

http://reviews.llvm.org/D5604






More information about the cfe-commits mailing list