From: Richard Kenner Date: Fri, 1 Jul 1994 17:53:35 +0000 (-0400) Subject: If GNUC, include alloca.h, else declare alloca. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cb95a579763e75b1873a306399ac5b755d7e08cf;p=gcc.git If GNUC, include alloca.h, else declare alloca. From-SVN: r7631 --- 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"