From cb95a579763e75b1873a306399ac5b755d7e08cf Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Fri, 1 Jul 1994 13:53:35 -0400 Subject: [PATCH] If GNUC, include alloca.h, else declare alloca. From-SVN: r7631 --- gcc/config/alpha/xm-alpha.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gcc/config/alpha/xm-alpha.h b/gcc/config/alpha/xm-alpha.h index abc9e17bc86..48c1a67d277 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 +#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" -- 2.30.2