compiler: Allow more types in GHCForeignImportPrim
For many, many years `GHCForeignImportPrim` has suffered from the rather restrictive limitation of not allowing any non-trivial types in arguments or results. This limitation was justified by the code generator allegely barfing in the presence of such types. However, this restriction appears to originate well before the NCG rewrite and the new NCG does not appear to have any trouble with such types (see the added `T24598` test). Lift this restriction. Fixes #24598.
parent
237194ce
No related branches found
No related tags found
Pipeline #92123 failed
Stage: tool-lint
Stage: quick-build
Stage: full-build
Stage: packaging
Stage: testing
Showing
- compiler/GHC/Tc/Gen/Foreign.hs 0 additions, 13 deletionscompiler/GHC/Tc/Gen/Foreign.hs
- testsuite/tests/ffi/should_run/T24598.hs 20 additions, 0 deletionstestsuite/tests/ffi/should_run/T24598.hs
- testsuite/tests/ffi/should_run/T24598.stdout 1 addition, 0 deletionstestsuite/tests/ffi/should_run/T24598.stdout
- testsuite/tests/ffi/should_run/T24598_cmm.cmm 5 additions, 0 deletionstestsuite/tests/ffi/should_run/T24598_cmm.cmm
- testsuite/tests/ffi/should_run/T24598b.hs 22 additions, 0 deletionstestsuite/tests/ffi/should_run/T24598b.hs
- testsuite/tests/ffi/should_run/T24598b.stdout 1 addition, 0 deletionstestsuite/tests/ffi/should_run/T24598b.stdout
- testsuite/tests/ffi/should_run/T24598b_cmm.cmm 5 additions, 0 deletionstestsuite/tests/ffi/should_run/T24598b_cmm.cmm
- testsuite/tests/ffi/should_run/T24598c.hs 21 additions, 0 deletionstestsuite/tests/ffi/should_run/T24598c.hs
- testsuite/tests/ffi/should_run/T24598c_cmm.cmm 11 additions, 0 deletionstestsuite/tests/ffi/should_run/T24598c_cmm.cmm
- testsuite/tests/ffi/should_run/all.T 4 additions, 0 deletionstestsuite/tests/ffi/should_run/all.T
testsuite/tests/ffi/should_run/T24598.hs
0 → 100644
testsuite/tests/ffi/should_run/T24598.stdout
0 → 100644
testsuite/tests/ffi/should_run/T24598b.hs
0 → 100644
testsuite/tests/ffi/should_run/T24598c.hs
0 → 100644
Please register or sign in to comment