From a721291adcdb804163a706fb349b60e691a95b3c Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 5 Nov 2024 22:17:43 -0800 Subject: [PATCH] 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 --- arch/arc/arcmwdt/arcmwdt-dtr-stubs.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arch/arc/arcmwdt/arcmwdt-dtr-stubs.c b/arch/arc/arcmwdt/arcmwdt-dtr-stubs.c index 6ba748b3455..f33bd638d77 100644 --- a/arch/arc/arcmwdt/arcmwdt-dtr-stubs.c +++ b/arch/arc/arcmwdt/arcmwdt-dtr-stubs.c @@ -8,14 +8,6 @@ __weak void *__dso_handle; -int __cxa_atexit(void (*destructor)(void *), void *objptr, void *dso) -{ - ARG_UNUSED(destructor); - ARG_UNUSED(objptr); - ARG_UNUSED(dso); - return 0; -} - int atexit(void (*function)(void)) { return 0;