From 80aab652d43c4bfd855ff6340c2058fabf5b0970 Mon Sep 17 00:00:00 2001 From: Robert Lipe Date: Thu, 18 Dec 1997 11:51:41 +0000 Subject: * x-sco5 (CLIB) Deleted. (ALLOCA) Added. * xm-sco5.h (USE_C_ALLOCA) Added. From-SVN: r17127 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/x-sco5 | 3 ++- gcc/config/i386/xm-sco5.h | 6 ++++++ 3 files changed, 13 insertions(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 60e22b5..ba9b60a 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 ada44ed..276d740 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 78c66a8..99bc53c 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 + -- cgit v1.1