]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Revert "libsupc++: try cxa_thread_atexit_impl at runtime"
authorAlexandre Oliva <oliva@gnu.org>
Wed, 6 Dec 2023 01:16:37 +0000 (22:16 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Wed, 6 Dec 2023 01:16:37 +0000 (22:16 -0300)
This reverts commit f4dd9416843308d4ae519983415fe62212662536.

libstdc++-v3/libsupc++/atexit_thread.cc

index cabd7c0a4a0571d525323692b2206c916b35e5c5..9346d50f5dafef90c753d6ca67394516d23a5427 100644 (file)
@@ -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 ())
     {