aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Froehlich <frohlich@na.uni-tuebingen.de>1999-07-30 23:40:09 +0000
committerRichard Henderson <rth@gcc.gnu.org>1999-07-30 16:40:09 -0700
commit96a0a146e23185b9e1dc2f369781ea88efd4120c (patch)
treeda0b797c785c073d8de38933fb3bff3d50f87b48
parent8d72ec32f726b100d6bd7f259e6a5e725bbac345 (diff)
downloadgcc-96a0a146e23185b9e1dc2f369781ea88efd4120c.zip
gcc-96a0a146e23185b9e1dc2f369781ea88efd4120c.tar.gz
gcc-96a0a146e23185b9e1dc2f369781ea88efd4120c.tar.bz2
sol2-c1.asm: Align the stack.
* config/i386/sol2-c1.asm: Align the stack. * config/i386/sol2-gc1.asm: Likewise. From-SVN: r28348
-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