aboutsummaryrefslogtreecommitdiff
path: root/gcc/frame.c
diff options
context:
space:
mode:
authorMichael Meissner <meissner@cygnus.com>1999-10-05 19:41:35 +0000
committerMichael Meissner <meissner@gcc.gnu.org>1999-10-05 19:41:35 +0000
commitdf231a09701a0d5fe12626582767ea62cd5dd926 (patch)
tree8c3146b3ed722f11de74d64b4a308f559054891e /gcc/frame.c
parentdbf08f94a7e5f45d6fbfa1ba461fee95cd3b3b87 (diff)
downloadgcc-df231a09701a0d5fe12626582767ea62cd5dd926.zip
gcc-df231a09701a0d5fe12626582767ea62cd5dd926.tar.gz
gcc-df231a09701a0d5fe12626582767ea62cd5dd926.tar.bz2
Declare malloc, free, and atexit if inhibit_libc is defined.
From-SVN: r29829
Diffstat (limited to 'gcc/frame.c')
-rw-r--r--gcc/frame.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/gcc/frame.c b/gcc/frame.c
index b5f643e..d153960 100644
--- a/gcc/frame.c
+++ b/gcc/frame.c
@@ -1,6 +1,6 @@
/* 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.
@@ -41,6 +41,15 @@ Boston, MA 02111-1307, USA. */
/* 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"