Fix ffi callbacks with >6 args and non-64bit args.
Check for ptr/int arguments rather than 64-bit width arguments when counting integer register arguments. The old approach broke when we stopped using exclusively W64-sized types to represent sub-word sized integers. Fixes #24314
Showing
- compiler/GHC/HsToCore/Foreign/C.hs 21 additions, 11 deletionscompiler/GHC/HsToCore/Foreign/C.hs
- testsuite/tests/ffi/should_run/T24314.hs 103 additions, 0 deletionstestsuite/tests/ffi/should_run/T24314.hs
- testsuite/tests/ffi/should_run/T24314.stdout 41 additions, 0 deletionstestsuite/tests/ffi/should_run/T24314.stdout
- testsuite/tests/ffi/should_run/T24314_c.c 30 additions, 0 deletionstestsuite/tests/ffi/should_run/T24314_c.c
- testsuite/tests/ffi/should_run/all.T 7 additions, 0 deletionstestsuite/tests/ffi/should_run/all.T
testsuite/tests/ffi/should_run/T24314.hs
0 → 100644
testsuite/tests/ffi/should_run/T24314.stdout
0 → 100644
testsuite/tests/ffi/should_run/T24314_c.c
0 → 100644
Please register or sign in to comment