aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDave Love <d.love@dl.ac.uk>1997-12-12 06:55:33 +0000
committerJeff Law <law@gcc.gnu.org>1997-12-11 23:55:33 -0700
commit09fb2c774b2157468bcac05b04938f54b0bfacc9 (patch)
tree183ec45c842d6d6d1c6628243cfbf6c65c12c4ef /gcc
parent7567d496ec32e1e233aed895e938e7930dea65b2 (diff)
downloadgcc-09fb2c774b2157468bcac05b04938f54b0bfacc9.zip
gcc-09fb2c774b2157468bcac05b04938f54b0bfacc9.tar.gz
gcc-09fb2c774b2157468bcac05b04938f54b0bfacc9.tar.bz2
linux.h (STACK_BOUNDARY): Define as 64 for glibc2.
* i386/linux.h (STACK_BOUNDARY): Define as 64 for glibc2. * i386/gnu.h (STACK_BOUNDARY): Define as 64. From-SVN: r17063
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/gnu.h3
-rw-r--r--gcc/config/i386/linux.h12
3 files changed, 17 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e88615f..b243eb4 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+1997-11-13 Dave Love <d.love@dl.ac.uk>
+
+ * i386/linux.h (STACK_BOUNDARY): Define as 64 for glibc2.
+ * i386/gnu.h (STACK_BOUNDARY): Define as 64.
+
Thu Dec 11 23:55:17 1997 Manfred Hollstein <manfred@s-direktnet.de>
* fixincludes (str{len,spn,cspn} return value): Handle different
diff --git a/gcc/config/i386/gnu.h b/gcc/config/i386/gnu.h
index bdce3ed..c86155a 100644
--- a/gcc/config/i386/gnu.h
+++ b/gcc/config/i386/gnu.h
@@ -3,6 +3,9 @@
/* This does it mostly for us. */
#include <i386/linux.h>
+#undef STACK_BOUNDARY
+#define STACK_BOUNDARY 64 /* glibc2's crt ensures this */
+
#undef CPP_PREDEFINES
#define CPP_PREDEFINES GNU_CPP_PREDEFINES("i386")
diff --git a/gcc/config/i386/linux.h b/gcc/config/i386/linux.h
index 8f0671d..9b7dc80 100644
--- a/gcc/config/i386/linux.h
+++ b/gcc/config/i386/linux.h
@@ -1,4 +1,4 @@
-/* Definitions for Intel 386 running Linux with ELF format
+/* Definitions for Intel 386 running Linux-based GNU systems with ELF format.
Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
Contributed by Eric Youngdale.
Modified for stabs-in-ELF by H.J. Lu.
@@ -30,13 +30,19 @@ Boston, MA 02111-1307, USA. */
#include <linux.h> /* some common stuff */
#undef TARGET_VERSION
-#define TARGET_VERSION fprintf (stderr, " (i386 Linux/ELF)");
+#define TARGET_VERSION fprintf (stderr, " (i386 GNU/Linux with ELF)");
/* The svr4 ABI for the i386 says that records and unions are returned
in memory. */
#undef DEFAULT_PCC_STRUCT_RETURN
#define DEFAULT_PCC_STRUCT_RETURN 1
+#ifndef USE_GNULIBC_1
+#undef STACK_BOUNDARY
+#define STACK_BOUNDARY 64 /* glibc2's crt ensures this, libc5
+ only gives you 32 */
+#endif
+
/* This is how to output an element of a case-vector that is relative.
This is only used for PIC code. See comments by the `casesi' insn in
i386.md for an explanation of the expression this outputs. */
@@ -160,7 +166,7 @@ Boston, MA 02111-1307, USA. */
#undef CC1_SPEC
#define CC1_SPEC "%(cc1_cpu) %{profile:-p}"
-/* Provide a LINK_SPEC appropriate for Linux. Here we provide support
+/* Provide a LINK_SPEC appropriate for GNU/Linux. Here we provide support
for the special GCC options -static and -shared, which allow us to
link things in one of these three modes by applying the appropriate
combinations of options at link-time. We like to support here for