summaryrefslogtreecommitdiff
path: root/rts/StgCRun.c
diff options
context:
space:
mode:
authorDavid Terei <davidterei@gmail.com>2011-11-15 19:21:34 -0800
committerDavid Terei <davidterei@gmail.com>2011-11-17 01:22:29 -0800
commit8a1c644af72caf122e73dac801496c055fc82dd9 (patch)
treeded865570ba8e1e966238a0d5049437b62ab69ee /rts/StgCRun.c
parentb4d08f19f3da0cafefcb8281ef844d8c5f96abec (diff)
downloadhaskell-8a1c644af72caf122e73dac801496c055fc82dd9.tar.gz
Fix #4211: No need to fixup stack using mangler on OSX
We now manage the stack correctly on both x86 and i386, keeping the stack align at (16n bytes - word size) on function entry and at (16n bytes) on function calls. This gives us compatability with LLVM and GCC.
Diffstat (limited to 'rts/StgCRun.c')
-rw-r--r--rts/StgCRun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/StgCRun.c b/rts/StgCRun.c
index 11e0543475..11ceb88c62 100644
--- a/rts/StgCRun.c
+++ b/rts/StgCRun.c
@@ -186,7 +186,7 @@ StgRunIsImplementedInAssembler(void)
"addl %0, %%esp\n\t"
"ret"
- : : "i" (RESERVED_C_STACK_BYTES + 16 + 12)
+ : : "i" (RESERVED_C_STACK_BYTES + 16)
// + 16 to make room for the 4 registers we have to save
// + 12 because we need to align %esp to a 16-byte boundary (#5250)
);