This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[csl-arm] Remove __aeabi_atexit
- From: Paul Brook <paul at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Tue, 25 Oct 2005 21:37:44 +0100
- Subject: [csl-arm] Remove __aeabi_atexit
The patch below removes the implementation of __aeabi_atexit from libstdc++.
This routine is provided by libc.
Tested with cross to arm-none-eabi and arm-linux-gnueabi.
Applied to csl-arm-branch.
I'll also apply to mainline once it's unfrozen.
Paul
2005-10-25 Paul Brook <paul@codesourcery.com>
* libstdc++-v3/libsupc++/vec.cc (__aeabi_atexit): Remove.
Index: libstdc++-v3/libsupc++/vec.cc
===================================================================
RCS file: /var/cvsroot/gcc-cvs/gcc/libstdc++-v3/libsupc++/vec.cc,v
retrieving revision 1.11.4.6
diff -u -p -r1.11.4.6 vec.cc
--- libstdc++-v3/libsupc++/vec.cc 16 Sep 2004 02:22:21 -0000 1.11.4.6
+++ libstdc++-v3/libsupc++/vec.cc 25 Oct 2005 15:48:11 -0000
@@ -499,14 +499,6 @@ namespace __aeabiv1
2 * sizeof (std::size_t),
/*destructor=*/NULL, dealloc);
}
-
- extern "C" int
- __aeabi_atexit (void *object,
- void (*destructor) (void *),
- void *dso_handle)
- {
- return abi::__cxa_atexit(destructor, object, dso_handle);
- }
} // namespace __aeabiv1
#endif // defined(__arm__) && defined(__ARM_EABI__)