aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1994-07-01 13:53:35 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1994-07-01 13:53:35 -0400
commitcb95a579763e75b1873a306399ac5b755d7e08cf (patch)
tree69e5a9ecccef5867bf76fb80b32039c26bdb79f1
parent16454bf22c617f6f571a4065ce8a87444d7b9aea (diff)
downloadgcc-cb95a579763e75b1873a306399ac5b755d7e08cf.zip
gcc-cb95a579763e75b1873a306399ac5b755d7e08cf.tar.gz
gcc-cb95a579763e75b1873a306399ac5b755d7e08cf.tar.bz2
If GNUC, include alloca.h, else declare alloca.
From-SVN: r7631
-rw-r--r--gcc/config/alpha/xm-alpha.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/config/alpha/xm-alpha.h b/gcc/config/alpha/xm-alpha.h
index abc9e17..48c1a67 100644
--- a/gcc/config/alpha/xm-alpha.h
+++ b/gcc/config/alpha/xm-alpha.h
@@ -41,9 +41,11 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#define FAILURE_EXIT_CODE 2
#define FATAL_EXIT_CODE 3
-/* If not compiled with GNU C, use the C alloca. */
+/* If not compiled with GNU C, use the builtin alloca. */
#ifndef __GNUC__
-#define USE_C_ALLOCA
+#include <alloca.h>
+#else
+extern void *alloca ();
#endif
/* The host compiler has problems with enum bitfields since it makes
@@ -57,7 +59,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
include these in the sources since other machines might define them
differently. */
-extern void *malloc (), *realloc (), *calloc (), *alloca ();
+extern void *malloc (), *realloc (), *calloc ();
#ifndef inhibit_libc
#include "string.h"