foreign import "wrapper" bug on x86 platforms

20 Jul
2003
20 Jul
'03
6:09 p.m.
FYI: I've found the reason why tests/ffi/Callback.hs fails on Intel platforms: The x86 part of mkThunk in src/builtin.c is broken. It simply squeezes an additional argument below the return address (the stable pointer for calling back later), but this word is never popped. We should probably include something like __obscure_ccall_ret_code from GHC's fptools/ghc/rts/Adjustor.c, but it is a bit late now for such severe stack juggling... Cheers, S.
7978
Age (days ago)
7978
Last active (days ago)
0 comments
1 participants
participants (1)
-
Sven Panne