Fix a bug in the x86-32 code generated for segmented stacks.
authorSanjoy Das <sanjoy@playingwithpointers.com>
Sat, 3 Dec 2011 09:21:07 +0000 (09:21 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Sat, 3 Dec 2011 09:21:07 +0000 (09:21 +0000)
commit40f8222e1e6d273062e3c1234baa57db3c5705cf
tree0172c3f2c035c64fcae57de4bf6664ba64cfb349
parent3604924799fc83da93ae4b8c1eb57ed9c9e734b5
Fix a bug in the x86-32 code generated for segmented stacks.

Currently LLVM pads the call to __morestack with a add and sub of 8
bytes to esp.  This isn't correct since __morestack expects the call
to be followed directly by a ret.

This commit also adjusts the relevant test-case.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145765 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86FrameLowering.cpp
test/CodeGen/X86/segmented-stacks.ll