[project @ 2005-01-08 22:54:28 by desrt]
authordesrt <unknown>
Sat, 8 Jan 2005 22:54:28 +0000 (22:54 +0000)
committerdesrt <unknown>
Sat, 8 Jan 2005 22:54:28 +0000 (22:54 +0000)
commit1e7063fc4e191baebe6bc142a89a919a9aec65e1
treeb4588eb8110fab03d66b9639864f6ca5f3e022e7
parent2429d1be7d12f93d87287dc7a42528ec3a996b44
[project @ 2005-01-08 22:54:28 by desrt]
Fixed this 6.4 TODO item listed on the wiki:

 PowerPC Linux (32bit): Fix GHCi FFI calls for arguments that are not passed on the stack (ByteCodeFFI).

Separated the code for Darwin and Linux (for PowerPC only).  Rewrote the Linux version to account for the differences in the ABIs.

All changes are inside #if powerpc_TARGET_ARCH && linux_TARGET_OS except:
  - import Data.List ( mapAccumL )      (used by my code)
  - small fix to a comment typo in Wolfgang's Darwin code
  - changed 'undefined' to a more meaningful 'error' message if
     mkMarshalCode is unimplemented

Ran regression tests.  It passes them all except for the ones that are broken because of the 'wrapper' problems currently being addressed.
ghc/compiler/ghci/ByteCodeFFI.lhs