[libcxxabi] Add __cxa_thread_atexit for TLS support on Linux.
authorDan Albert <danalbert@google.com>
Thu, 18 Dec 2014 00:03:57 +0000 (00:03 +0000)
committerDan Albert <danalbert@google.com>
Thu, 18 Dec 2014 00:03:57 +0000 (00:03 +0000)
commit12c0c8b67fdcb11352bac93dde9c76ce47f32744
treea1e999e44114569bbadce62a8295a4a1e579c613
parent8e015ff43bd844480fb33eb1ff0aec9826361f1a
[libcxxabi] Add __cxa_thread_atexit for TLS support on Linux.

Summary:
Fixes PR21738.

The implementation for this is handled by __cxa_thread_atexit_impl,
which is supplied by libc.

More information:
https://sourceware.org/glibc/wiki/Destructor%20support%20for%20thread_local%20variables

Reviewers: mclow.lists, EricWF, jroelofs

Reviewed By: jroelofs

Subscribers: majnemer, cfe-commits

Differential Revision: http://reviews.llvm.org/D6708

llvm-svn: 224477
libcxxabi/cmake/config-ix.cmake
libcxxabi/include/cxxabi.h
libcxxabi/src/CMakeLists.txt
libcxxabi/src/cxa_thread_atexit.cpp [new file with mode: 0644]
libcxxabi/test/cxa_thread_atexit_test.cpp [new file with mode: 0644]
libcxxabi/test/lit.cfg