diff options
author | Bartosz Nitka <niteria@gmail.com> | 2018-05-03 12:37:00 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2018-05-03 12:37:18 -0400 |
commit | 6132d7c5e6404936ef281a6f3be333fea780906e (patch) | |
tree | 653db073c3273e343ae60a062c43c210fff05e87 /testsuite/tests/codeGen/should_compile/Makefile | |
parent | 75361b119c609f0ab98f3d12a15690aae4ce42a1 (diff) | |
download | haskell-6132d7c5e6404936ef281a6f3be333fea780906e.tar.gz |
Correctly add unwinding info in manifestSp and makeFixupBlocks
In `manifestSp` the unwind info was before the relevant instruction, not
after. I added some notes to establish semantics. Also removes
redundant annotation in stg_catch_frame.
For `makeFixupBlocks` it looks like we were off by `wORD_SIZE dflags`.
I'm not sure why, but it lines up with `manifestSp`. In fact it lines
up so well so that I can consolidate the Sp unwind logic in
`maybeAddUnwind`. I detected the problems with `makeFixupBlocks` by
running T14779b after patching D4559.
Test Plan: added a new test
Reviewers: bgamari, scpmw, simonmar, erikd
Reviewed By: bgamari
Subscribers: thomie, carter
GHC Trac Issues: #14999
Differential Revision: https://phabricator.haskell.org/D4606
Diffstat (limited to 'testsuite/tests/codeGen/should_compile/Makefile')
-rw-r--r-- | testsuite/tests/codeGen/should_compile/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/tests/codeGen/should_compile/Makefile b/testsuite/tests/codeGen/should_compile/Makefile index a8414384cf..e024788085 100644 --- a/testsuite/tests/codeGen/should_compile/Makefile +++ b/testsuite/tests/codeGen/should_compile/Makefile @@ -33,3 +33,8 @@ debug: ./debug rm debug + +T14999: + '$(TEST_HC)' $(TEST_HC_OPTS) -O2 -g -c T14999.cmm -o T14999.o + gdb --batch -ex 'file T14999.o' -ex 'disassemble stg_catch_frame_info' --nx | tr -s '[:blank:]' + readelf --debug-dump=frames-interp T14999.o | tr -s '[:blank:]' |