Document that ccall convention doesn't support varargs
We do not support foreign "C" imports of varargs functions. While this works on amd64, in general the platform's calling convention may need more type information that our Cmm representation can currently provide. For instance, this is the case with Darwin's AArch64 calling convention. Document this fact in the users guide and fix T5423 which makes use of a disallowed foreign import. Closes #18854.
Showing
- docs/users_guide/exts/ffi.rst 15 additions, 0 deletionsdocs/users_guide/exts/ffi.rst
- testsuite/tests/rts/T5423.hs 2 additions, 0 deletionstestsuite/tests/rts/T5423.hs
- testsuite/tests/rts/T5423.stdout 1 addition, 1 deletiontestsuite/tests/rts/T5423.stdout
- testsuite/tests/rts/T5423_c.c 28 additions, 0 deletionstestsuite/tests/rts/T5423_c.c
- testsuite/tests/rts/T5423_cmm.cmm 1 addition, 2 deletionstestsuite/tests/rts/T5423_cmm.cmm
Loading
Please register or sign in to comment