diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 60e22b59300..ba9b60a4593 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Thu Dec 18 00:19:38 1997 Robert Lipe + + * i386/x-sco5 (CLIB) Deleted. (ALLOCA) Added. + * i386/xm-sco5.h (USE_C_ALLOCA) Added. + Tue Dec 16 18:51:00 1997 Bill Moyer * config/m68k/m68k.c (output_function_prologue): Typecast diff --git a/gcc/config/i386/x-sco5 b/gcc/config/i386/x-sco5 index ada44eda382..276d74045ed 100644 --- a/gcc/config/i386/x-sco5 +++ b/gcc/config/i386/x-sco5 @@ -3,7 +3,8 @@ RANLIB_TEST = false CC = cc OLDCC = cc CCLIBFLAGS = -CLIB = -lPW +# We avoid the ALLOCA in -lPW becuase it gives us an evil index() +ALLOCA = alloca.o # See all the declarations. FIXPROTO_DEFINES = -D_XOPEN_SOURCE -D_POSIX_C_SOURCE=2 diff --git a/gcc/config/i386/xm-sco5.h b/gcc/config/i386/xm-sco5.h index 78c66a87bc5..99bc53c2bc5 100644 --- a/gcc/config/i386/xm-sco5.h +++ b/gcc/config/i386/xm-sco5.h @@ -10,3 +10,9 @@ #define sys_siglist _sys_siglist #undef SYS_SIGLIST_DECLARED #define SYS_SIGLIST_DECLARED + +/* If not compiled with GNU C, use the portable alloca. */ +#ifndef __GNUC__ +#define USE_C_ALLOCA +#endif +