+Tue Oct 5 15:37:04 1999 Michael Meissner <meissner@cygnus.com>
+
+ * libgcc2.c (toplevel): If inhibit_libc is defined, declare
+ malloc, free, and atexit. Don't include stddef.h twice.
+
+ * frame.c (toplevel): If inhibit_libc is defined, declare
+ malloc and free.
+
Tue Oct 5 12:00:32 1999 Richard Henderson <rth@cygnus.com>
* flow.c (make_edge): Accept an optional 2D bitmap in which
/* Subroutines needed for unwinding stack frames for exception handling. */
/* Compile this one with gcc. */
-/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
Contributed by Jason Merrill <jason@cygnus.com>.
This file is part of GNU CC.
/* fixproto guarantees these system headers exist. */
#include <stdlib.h>
#include <unistd.h>
+
+#else
+#include <stddef.h>
+#ifndef malloc
+extern void *malloc (size_t);
+#endif
+#ifndef free
+extern void free (void *);
+#endif
#endif
#include "defaults.h"
/* fixproto guarantees these system headers exist. */
#include <stdlib.h>
#include <unistd.h>
+
+#else
+#include <stddef.h>
+#ifndef malloc
+extern void *malloc (size_t);
+#endif
+#ifndef free
+extern void free (void *);
+#endif
+#ifndef atexit
+extern int atexit(void (*)(void));
+#endif
#endif
#include "machmode.h"
#include "defaults.h"
-#ifndef L_trampoline
+#if !defined(L_trampoline) && !defined(inhibit_libc)
#include <stddef.h>
#endif