[PATCH] D21803: [libcxxabi] Provide a fallback __cxa_thread_atexit() implementation

Tavian Barnes via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 28 10:49:42 PDT 2016


tavianator created this revision.
tavianator added reviewers: danalbert, jroelofs.
tavianator added a subscriber: cfe-commits.
Herald added subscribers: danalbert, tberghammer.

__cxa_thread_atexit_impl() isn't present on all platforms, for example
Android pre-6.0.  This patch uses a weak symbol to detect _impl() 
support, falling back to a pthread_key_t-based implementation.

http://reviews.llvm.org/D21803

Files:
  cmake/config-ix.cmake
  src/CMakeLists.txt
  src/cxa_thread_atexit.cpp
  test/CMakeLists.txt
  test/cxa_thread_atexit_test.pass.cpp
  test/libcxxabi/test/config.py
  test/lit.site.cfg.in

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21803.62108.patch
Type: text/x-patch
Size: 5126 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160628/da225f2c/attachment-0001.bin>


More information about the cfe-commits mailing list