diff options
author | Max Bolingbroke <batterseapower@hotmail.com> | 2011-04-02 00:06:16 +0100 |
---|---|---|
committer | Max Bolingbroke <batterseapower@hotmail.com> | 2011-04-02 00:20:48 +0100 |
commit | 7a29845e5ed105fcbd6ccadb8061bae2c124f817 (patch) | |
tree | 46f76e1e28558de16a658ce0062324e8518d0c14 /libffi | |
parent | 9aa71a3ee0361c4796586b61bb2ab2beaeec1dc5 (diff) | |
download | haskell-7a29845e5ed105fcbd6ccadb8061bae2c124f817.tar.gz |
Pop OS X stack padding even if the foreign call is stdcall (#5052)
The problem was that the codegen for foreign calls makes sure the stack
is 16-byte aligned on OS X by pushing some padding. In the case where the
foreign call is cdecl, that padding gets popped after the call, but if the
convention is stdcall then it doesn't generate any popping code at all.
However, this is incorrect because the stdcall only promises to pop the
arguments, not the padding. The fix is to generate code to pop the padding
(if any) on OS X.
Diffstat (limited to 'libffi')
0 files changed, 0 insertions, 0 deletions