Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Redo __aeabi_atexit by shuffling the arguments and dropping ...
details: https://anonhg.NetBSD.org/src/rev/35d6c72a095f
branches: trunk
changeset: 337548:35d6c72a095f
user: joerg <joerg%NetBSD.org@localhost>
date: Sun Apr 19 18:15:26 2015 +0000
description:
Redo __aeabi_atexit by shuffling the arguments and dropping the code in
libstdc++.
diffstat:
external/gpl3/gcc/dist/libstdc++-v3/libsupc++/atexit_arm.cc | 2 +-
lib/libc/stdlib/atexit.c | 13 ++++++++++---
2 files changed, 11 insertions(+), 4 deletions(-)
diffs (46 lines):
diff -r 3d7d2a8e6c52 -r 35d6c72a095f external/gpl3/gcc/dist/libstdc++-v3/libsupc++/atexit_arm.cc
--- a/external/gpl3/gcc/dist/libstdc++-v3/libsupc++/atexit_arm.cc Sun Apr 19 17:56:57 2015 +0000
+++ b/external/gpl3/gcc/dist/libstdc++-v3/libsupc++/atexit_arm.cc Sun Apr 19 18:15:26 2015 +0000
@@ -23,7 +23,7 @@
#include <cxxabi.h>
-#if defined(__arm__) && defined(__ARM_EABI__)
+#if defined(__arm__) && defined(__ARM_EABI__) && !defined(__NetBSD__)
namespace __aeabiv1
{
diff -r 3d7d2a8e6c52 -r 35d6c72a095f lib/libc/stdlib/atexit.c
--- a/lib/libc/stdlib/atexit.c Sun Apr 19 17:56:57 2015 +0000
+++ b/lib/libc/stdlib/atexit.c Sun Apr 19 18:15:26 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atexit.c,v 1.28 2015/04/18 21:44:31 joerg Exp $ */
+/* $NetBSD: atexit.c,v 1.29 2015/04/19 18:15:26 joerg Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: atexit.c,v 1.28 2015/04/18 21:44:31 joerg Exp $");
+__RCSID("$NetBSD: atexit.c,v 1.29 2015/04/19 18:15:26 joerg Exp $");
#endif /* LIBC_SCCS and not lint */
#include "reentrant.h"
@@ -136,7 +136,14 @@
* http://www.codesourcery.com/cxx-abi/abi.html#dso-dtor
*/
#if defined(__ARM_EABI__) && !defined(lint)
-__strong_alias(__aeabi_atexit,__cxa_atexit);
+int
+__aeabi_atexit(void *arg, void (*func)(void *), void *dso);
+
+int
+__aeabi_atexit(void *arg, void (*func)(void *), void *dso)
+{
+ return __cxa_atexit(func, arg, dso);
+}
#endif
int
Home |
Main Index |
Thread Index |
Old Index