Skip to content

Commit cb10b76

Browse files
committed
arch/arc: Remove redundant __cxa_atexit from MWDT stubs
__cxa_atexit was originally defined by the IA64 C++ ABI, but it has been adopted by other C++ implementations since then. This function is already present in lib/cpp/api/cpp_dtors.c, which is built by default when C++ support is enabled, so we don't need another copy in the MWDT-specific code. Signed-off-by: Keith Packard <[email protected]>
1 parent 08c5415 commit cb10b76

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

arch/arc/arcmwdt/arcmwdt-dtr-stubs.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@
88

99
__weak void *__dso_handle;
1010

11-
int __cxa_atexit(void (*destructor)(void *), void *objptr, void *dso)
12-
{
13-
ARG_UNUSED(destructor);
14-
ARG_UNUSED(objptr);
15-
ARG_UNUSED(dso);
16-
return 0;
17-
}
18-
1911
int atexit(void (*function)(void))
2012
{
2113
return 0;

0 commit comments

Comments
 (0)