Allow bytecode interpreter to make unsafe foreign calls
authorBen Gamari <bgamari.foss@gmail.com>
Tue, 27 Jun 2017 14:26:01 +0000 (10:26 -0400)
committerBen Gamari <ben@smart-cactus.org>
Tue, 27 Jun 2017 16:55:06 +0000 (12:55 -0400)
commit9ef909db5ed3dc45fc1acdb608ad3f1896362966
tree142e728dfb0c0a3a5519bb045d95f0e02dacc1e3
parent914962ca23e407efdd3429dc89adcca7bee15f28
Allow bytecode interpreter to make unsafe foreign calls

Reviewers: austin, hvr, erikd, simonmar

Reviewed By: simonmar

Subscribers: rwbarton, thomie

GHC Trac Issues: #8281, #13730.

Differential Revision: https://phabricator.haskell.org/D3619
compiler/ghci/ByteCodeGen.hs
compiler/ghci/ByteCodeInstr.hs
rts/Interpreter.c
testsuite/tests/ffi/should_fail/Makefile
testsuite/tests/ffi/should_fail/UnsafeReenter.hs [new file with mode: 0644]
testsuite/tests/ffi/should_fail/UnsafeReenter.stderr [new file with mode: 0644]
testsuite/tests/ffi/should_fail/UnsafeReenter.stdout [new file with mode: 0644]
testsuite/tests/ffi/should_fail/UnsafeReenterC.c [new file with mode: 0644]
testsuite/tests/ffi/should_fail/all.T