aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Lipe <robertl@dgii.com>1997-12-18 11:51:41 +0000
committerJeff Law <law@gcc.gnu.org>1997-12-18 04:51:41 -0700
commit80aab652d43c4bfd855ff6340c2058fabf5b0970 (patch)
treec890ee42f37950464c7aa5559a6e248c39f5d035
parent840b09b4cc8801cbfd30ece8b0a91cff9d9b5c1c (diff)
downloadgcc-80aab652d43c4bfd855ff6340c2058fabf5b0970.zip
gcc-80aab652d43c4bfd855ff6340c2058fabf5b0970.tar.gz
gcc-80aab652d43c4bfd855ff6340c2058fabf5b0970.tar.bz2
* x-sco5 (CLIB) Deleted. (ALLOCA) Added.
* xm-sco5.h (USE_C_ALLOCA) Added. From-SVN: r17127
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/x-sco53
-rw-r--r--gcc/config/i386/xm-sco5.h6
3 files changed, 13 insertions, 1 deletions
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 <robertl@dgii.com>
+
+ * i386/x-sco5 (CLIB) Deleted. (ALLOCA) Added.
+ * i386/xm-sco5.h (USE_C_ALLOCA) Added.
+
Tue Dec 16 18:51:00 1997 Bill Moyer <billm@cygnus.com>
* 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
+