Introduce -fcatch-bottoms
This flag instructs the simplifier to emit ``error`` expressions in the continutation of empty case analyses (which should bottom and consequently not return). This is helpful when debugging demand analysis bugs which can sometimes manifest as segmentation faults. Test Plan: Validate Reviewers: simonpj, austin Subscribers: niteria, rwbarton, thomie Differential Revision: https://phabricator.haskell.org/D3736
Showing
- compiler/coreSyn/CorePrep.hs 15 additions, 2 deletionscompiler/coreSyn/CorePrep.hs
- compiler/coreSyn/CoreUtils.hs 1 addition, 0 deletionscompiler/coreSyn/CoreUtils.hs
- compiler/main/DynFlags.hs 2 additions, 0 deletionscompiler/main/DynFlags.hs
- docs/users_guide/debugging.rst 7 additions, 0 deletionsdocs/users_guide/debugging.rst
- utils/mkUserGuidePart/Options/CompilerDebugging.hs 6 additions, 0 deletionsutils/mkUserGuidePart/Options/CompilerDebugging.hs
Loading
Please register or sign in to comment