Bug in GHC 5.04.2 for Mac OS X
Ashley Yakeley
ashley@semantic.org
Thu, 30 Jan 2003 20:27:56 -0800
I wrote:
> I seem to be having trouble with 'foreign import ccall "wrapper"'
> functions. It was crashing in combination with the Java VM: examination
> with gdb revealed that the function created with 'foreign import ccall
> "wrapper"' was changing register r13, and it looks like the JVM code that
> called it was expecting r13 to be preserved.
GPR13 is indeed considered nonvolatile, so it looks like the JVM is
correct and the function made by createAdjustor is wrong.
See
<http://developer.apple.com/techpubs/macosx/DeveloperTools/MachORuntime/2
rt_powerpc_abi/PowerPC_Cal_Conventions.html#BCIGEEGA>
--
Ashley Yakeley, Seattle WA