FFI: passing 6 FD arguments doesn't work
Alastair Reid
alastair at reid-consulting-uk.ltd.uk
Tue Sep 3 12:50:50 EDT 2002
> However the only difference between the two is that the C function
> called by TestHW.hs has 6 arguments of type Fd, while that called by
> TestHW5.hs has only 5.
Quick thing to try to see if it helps:
It's possible that the problem is only affecting one of GHC's code
generators so you might try the other one. I think the default is the
native code generator so you might try using the via-C code generator
instead (-fviac I think).
You might also try a non-sparc if you have one handy. IIRC, 5-6
arguments is the point where sparcs switch from passing arguments in
registers to passing them on the stack so this is likely to be
sparc-specific.
--
Alastair Reid alastair at reid-consulting-uk.ltd.uk
Reid Consulting (UK) Limited http://www.reid-consulting-uk.ltd.uk/alastair/
More information about the Glasgow-haskell-bugs
mailing list