summaryrefslogtreecommitdiff
path: root/gcc/config/i386/sol2-gc1.asm
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>1999-07-30 23:40:09 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>1999-07-30 23:40:09 +0000
commit6d1f9f96fd4040b217358e51f4b6a8fbe2cece38 (patch)
treeda0b797c785c073d8de38933fb3bff3d50f87b48 /gcc/config/i386/sol2-gc1.asm
parentbeff738650e8b0b9f287f86cc16486360b9dae55 (diff)
downloadgcc-6d1f9f96fd4040b217358e51f4b6a8fbe2cece38.tar.gz
* config/i386/sol2-c1.asm: Align the stack.
* config/i386/sol2-gc1.asm: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28348 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386/sol2-gc1.asm')
-rw-r--r--gcc/config/i386/sol2-gc1.asm6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/config/i386/sol2-gc1.asm b/gcc/config/i386/sol2-gc1.asm
index 24a1965f37e..81b56d4469c 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