--- gcc/config/xm-irix4.h 2018/04/24 17:51:33 1.1 +++ gcc/config/xm-irix4.h 2018/04/24 17:59:10 1.1.1.2 @@ -1,18 +1,18 @@ -/* Tell xm-mips.h not to do anything about alloca. */ -#define MIPS_OVERRIDE_ALLOCA - #include "xm-mips.h" #define USG +#define HAVE_VPRINTF #define bcopy(a,b,c) memcpy (b,a,c) #define bzero(a,b) memset (a,0,b) #define bcmp(a,b,c) memcmp (a,b,c) +#if 0 #ifdef __GNUC__ -/* If compiling with GCC, use the built-in alloca. */ -#define alloca(n) __builtin_alloca (n) -#else -/* The normal irix compiler requires alloca.h or alloca doesn't work. */ +/* The normal irix compiler requires alloca.h or alloca doesn't work. + However, the IRIX compiler doesn't allow alloca to be stored in + something like ptr->field = alloca(), so we just use the normal + C alloca. */ #include #endif +#endif