aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@gnu.org>2023-12-05 22:16:37 -0300
committerAlexandre Oliva <oliva@gnu.org>2023-12-05 22:16:37 -0300
commit953a9302d19d16dfd58c5f8d89ad15cb76a84d53 (patch)
tree2d2b1e417dee697fc63a32e5014da0dea0d98429
parent0d51e17791c7876396ed0f6cc51bf103e518877d (diff)
downloadgcc-953a9302d19d16dfd58c5f8d89ad15cb76a84d53.zip
gcc-953a9302d19d16dfd58c5f8d89ad15cb76a84d53.tar.gz
gcc-953a9302d19d16dfd58c5f8d89ad15cb76a84d53.tar.bz2
Revert "libsupc++: try cxa_thread_atexit_impl at runtime"
This reverts commit f4dd9416843308d4ae519983415fe62212662536.
-rw-r--r--libstdc++-v3/libsupc++/atexit_thread.cc15
1 files changed, 1 insertions, 14 deletions
diff --git a/libstdc++-v3/libsupc++/atexit_thread.cc b/libstdc++-v3/libsupc++/atexit_thread.cc
index cabd7c0..9346d50 100644
--- a/libstdc++-v3/libsupc++/atexit_thread.cc
+++ b/libstdc++-v3/libsupc++/atexit_thread.cc
@@ -138,24 +138,11 @@ namespace {
}
}
-#if __GXX_WEAK__
-extern "C"
-int __attribute__ ((__weak__))
-__cxa_thread_atexit_impl (void (_GLIBCXX_CDTOR_CALLABI *func) (void *),
- void *arg, void *d);
-#endif
-
-// ??? We can't make it an ifunc, can we?
extern "C" int
__cxxabiv1::__cxa_thread_atexit (void (_GLIBCXX_CDTOR_CALLABI *dtor)(void *),
- void *obj, void *dso_handle)
+ void *obj, void */*dso_handle*/)
_GLIBCXX_NOTHROW
{
-#if __GXX_WEAK__
- if (__cxa_thread_atexit_impl)
- return __cxa_thread_atexit_impl (dtor, obj, dso_handle);
-#endif
-
// Do this initialization once.
if (__gthread_active_p ())
{