[PATCH] D53801: [libc++abi] Provide __cxa_thread_atexit on Fuchsia
Petr Hosek via Phabricator
reviews at reviews.llvm.org
Mon Oct 29 13:22:54 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL345534: [libc++abi] Provide __cxa_thread_atexit on Fuchsia (authored by phosek, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D53801?vs=171442&id=171562#toc
Repository:
rL LLVM
https://reviews.llvm.org/D53801
Files:
libcxxabi/trunk/include/cxxabi.h
libcxxabi/trunk/src/CMakeLists.txt
Index: libcxxabi/trunk/src/CMakeLists.txt
===================================================================
--- libcxxabi/trunk/src/CMakeLists.txt
+++ libcxxabi/trunk/src/CMakeLists.txt
@@ -31,7 +31,7 @@
list(APPEND LIBCXXABI_SOURCES cxa_noexception.cpp)
endif()
-if (LIBCXXABI_ENABLE_THREADS AND UNIX AND NOT (APPLE OR CYGWIN))
+if (LIBCXXABI_ENABLE_THREADS AND (UNIX OR FUCHSIA) AND NOT (APPLE OR CYGWIN))
list(APPEND LIBCXXABI_SOURCES cxa_thread_atexit.cpp)
endif()
Index: libcxxabi/trunk/include/cxxabi.h
===================================================================
--- libcxxabi/trunk/include/cxxabi.h
+++ libcxxabi/trunk/include/cxxabi.h
@@ -160,8 +160,8 @@
extern _LIBCXXABI_FUNC_VIS bool __cxa_uncaught_exception() throw();
extern _LIBCXXABI_FUNC_VIS unsigned int __cxa_uncaught_exceptions() throw();
-#ifdef __linux__
-// Linux TLS support. Not yet an official part of the Itanium ABI.
+#if defined(__linux__) || defined(__Fuchsia__)
+// Linux and Fuchsia TLS support. Not yet an official part of the Itanium ABI.
// https://sourceware.org/glibc/wiki/Destructor%20support%20for%20thread_local%20variables
extern _LIBCXXABI_FUNC_VIS int __cxa_thread_atexit(void (*)(void *), void *,
void *) throw();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53801.171562.patch
Type: text/x-patch
Size: 1287 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20181029/50c0a009/attachment.bin>
More information about the libcxx-commits
mailing list