aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1999-09-16 22:51:47 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1999-09-16 22:51:47 +0000
commita218d5ba2b023b6475d6097d9d74585ad1bdfba0 (patch)
treec6514cb78b43dcbd217520ae2e5fe68e4bc4ef49 /gcc
parentfffeac96e0bb41205011e6092116ff91f1049b17 (diff)
downloadgcc-a218d5ba2b023b6475d6097d9d74585ad1bdfba0.zip
gcc-a218d5ba2b023b6475d6097d9d74585ad1bdfba0.tar.gz
gcc-a218d5ba2b023b6475d6097d9d74585ad1bdfba0.tar.bz2
libgcc2.c (__do_global_ctors): Call atexit with one arg.
* libgcc2.c (__do_global_ctors): Call atexit with one arg. * sparc/sunos4.h (on_exit): Wrap prototype parameters in PARAMS(). Define HAVE_ON_EXIT. From-SVN: r29465
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/sparc/sunos4.h4
-rw-r--r--gcc/libgcc2.c2
3 files changed, 11 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3b9615e..ad370d4 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+Thu Sep 16 18:44:48 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * libgcc2.c (__do_global_ctors): Call atexit with one arg.
+
+ * sparc/sunos4.h (on_exit): Wrap prototype parameters in PARAMS().
+ Define HAVE_ON_EXIT.
+
Thu Sep 16 18:06:35 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* system.h (CTYPE_CONV, TOUPPER, TOLOWER): New macros. Use
diff --git a/gcc/config/sparc/sunos4.h b/gcc/config/sparc/sunos4.h
index 0459c66..45d59fb 100644
--- a/gcc/config/sparc/sunos4.h
+++ b/gcc/config/sparc/sunos4.h
@@ -49,6 +49,8 @@ Boston, MA 02111-1307, USA. */
: "r" (ms_flags), "r" (ms_saveret));
/* SunOS has on_exit instead of atexit. */
-extern int on_exit (void *, void *); /* The man page says it returns int. */
+/* The man page says it returns int. */
+extern int on_exit PARAMS ((void *, void *));
#define ON_EXIT(FUNC) on_exit ((FUNC), 0)
#define NEED_ATEXIT
+#define HAVE_ON_EXIT
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c
index 96ce214..a27caa3 100644
--- a/gcc/libgcc2.c
+++ b/gcc/libgcc2.c
@@ -2868,7 +2868,7 @@ __do_global_ctors ()
}
#endif
DO_GLOBAL_CTORS_BODY;
- atexit (__do_global_dtors, 0);
+ atexit (__do_global_dtors);
}
#endif /* no HAS_INIT_SECTION */