aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Blandy <jimb@gcc.gnu.org>1993-05-24 15:57:15 +0000
committerJim Blandy <jimb@gcc.gnu.org>1993-05-24 15:57:15 +0000
commitdaba3361c49b5ced451370aacb3339f251d9723e (patch)
treefaa1334cfa73b676886c57c600268a3984ddfc7a
parent097e45d14c3624f9ec21f84fc9f9639f6f397b29 (diff)
downloadgcc-daba3361c49b5ced451370aacb3339f251d9723e.zip
gcc-daba3361c49b5ced451370aacb3339f251d9723e.tar.gz
gcc-daba3361c49b5ced451370aacb3339f251d9723e.tar.bz2
*** empty log message ***
From-SVN: r4558
-rw-r--r--gcc/alloca.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/alloca.c b/gcc/alloca.c
index bc34529..30efa5a 100644
--- a/gcc/alloca.c
+++ b/gcc/alloca.c
@@ -60,6 +60,17 @@ typedef char *pointer;
#define NULL 0
+/* Different portions of Emacs need to call different versions of
+ malloc. The Emacs executable needs alloca to call xmalloc, because
+ ordinary malloc isn't protected from input signals. On the other
+ hand, the utilities in lib-src need alloca to call malloc; some of
+ them are very simple, and don't have an xmalloc routine.
+
+ Everybody else should just call malloc. */
+#ifndef emacs
+extern pointer malloc ();
+#endif
+
/* Define STACK_DIRECTION if you know the direction of stack
growth for your system; otherwise it will be automatically
deduced at run-time.