aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/sol2-c1.asm6
-rw-r--r--gcc/config/i386/sol2-gc1.asm6
3 files changed, 17 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3833970..75de1b3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Fri Jul 30 16:33:42 1999 Mathias Froehlich <frohlich@na.uni-tuebingen.de>
+
+ * config/i386/sol2-c1.asm: Align the stack.
+ * config/i386/sol2-gc1.asm: Likewise.
+
1999-07-30 Vladimir Makarov <vmakarov@loony.cygnus.com>
* config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Change -Av8 onto
diff --git a/gcc/config/i386/sol2-c1.asm b/gcc/config/i386/sol2-c1.asm
index d08bcbd..b17f57d 100644
--- a/gcc/config/i386/sol2-c1.asm
+++ b/gcc/config/i386/sol2-c1.asm
@@ -115,6 +115,12 @@ _start:
! is the argument vector pointer, which is at a fixed address off
! the initial frame pointer.
+!
+! Make sure the stack is properly aligned.
+!
+ andl $0xfffffff0,%esp
+ subl $4,%esp
+
pushl %edx
leal 12(%ebp),%edx
pushl %edx
diff --git a/gcc/config/i386/sol2-gc1.asm b/gcc/config/i386/sol2-gc1.asm
index 24a1965..81b56d4 100644
--- a/gcc/config/i386/sol2-gc1.asm
+++ b/gcc/config/i386/sol2-gc1.asm
@@ -128,6 +128,12 @@ _start:
! is the argument vector pointer, which is at a fixed address off
! the initial frame pointer.
+!
+! Make sure the stack is properly aligned.
+!
+ andl $0xfffffff0,%esp
+ subl $4,%esp
+
pushl %edx
leal 12(%ebp),%edx
pushl %edx