summaryrefslogtreecommitdiff
path: root/libstdc++-v3/libsupc++
diff options
context:
space:
mode:
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2017-01-04 15:41:19 +0000
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2017-01-04 15:41:19 +0000
commit4e2ef7858ffcf2791fc127e5a46b53b2aed3d0ff (patch)
tree52babbbb68a075e8473afde80cbb3ed10f55d769 /libstdc++-v3/libsupc++
parentadcbdb02d009199af574c867f9be436626d8fade (diff)
downloadgcc-4e2ef7858ffcf2791fc127e5a46b53b2aed3d0ff.tar.gz
PR78968 add configure check for __cxa_thread_atexit in libc
PR libstdc++/78968 * config.h.in: Regenerate. * configure: Likewise. * configure.ac: Check for __cxa_thread_atexit. * libsupc++/atexit_thread.cc [_GLIBCXX_HAVE___CXA_THREAD_ATEXIT]: Don't define __cxa_thread_atexit if libc provides it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@244057 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/libsupc++')
-rw-r--r--libstdc++-v3/libsupc++/atexit_thread.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/libstdc++-v3/libsupc++/atexit_thread.cc b/libstdc++-v3/libsupc++/atexit_thread.cc
index da633682acf..923a0707556 100644
--- a/libstdc++-v3/libsupc++/atexit_thread.cc
+++ b/libstdc++-v3/libsupc++/atexit_thread.cc
@@ -30,7 +30,11 @@
#include <windows.h>
#endif
-#if _GLIBCXX_HAVE___CXA_THREAD_ATEXIT_IMPL
+#if _GLIBCXX_HAVE___CXA_THREAD_ATEXIT
+
+// Libc provides __cxa_thread_atexit definition.
+
+#elif _GLIBCXX_HAVE___CXA_THREAD_ATEXIT_IMPL
extern "C" int __cxa_thread_atexit_impl (void (*func) (void *),
void *arg, void *d);