Cmm: Add support for undefined unwinding statements
authorBen Gamari <bgamari.foss@gmail.com>
Wed, 8 Feb 2017 03:56:36 +0000 (22:56 -0500)
committerBen Gamari <ben@smart-cactus.org>
Wed, 8 Feb 2017 15:26:00 +0000 (10:26 -0500)
commit3328ddb88b6eb11cb1f6e844f883e7e9d2b8f21b
tree3bb04ff1f086a95e8f93041d13a10af7ec1f9011
parent733e845d0f66541a06415c6b420e51fc99eb9d95
Cmm: Add support for undefined unwinding statements

And use to mark `stg_stack_underflow_frame`, which we are unable to
determine a caller from.

To simplify parsing at the moment we steal the `return` keyword to
indicate an undefined unwind value. Perhaps this should be revisited.

Reviewers: scpmw, simonmar, austin, erikd

Subscribers: dfeuer, thomie

Differential Revision: https://phabricator.haskell.org/D2738
compiler/cmm/CmmLayoutStack.hs
compiler/cmm/CmmNode.hs
compiler/cmm/CmmParse.y
compiler/cmm/Debug.hs
compiler/cmm/MkGraph.hs
compiler/codeGen/StgCmmMonad.hs
compiler/nativeGen/Dwarf.hs
compiler/nativeGen/Dwarf/Types.hs
compiler/nativeGen/X86/CodeGen.hs
rts/StgMiscClosures.cmm