summaryrefslogtreecommitdiff
path: root/compiler/GHC/Driver/Session.hs
diff options
context:
space:
mode:
authorSylvain Henry <sylvain@haskus.fr>2020-08-19 17:30:08 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-08-21 09:37:15 -0400
commit2d8ca9170328249a436c3b5647b8e548d32b11c8 (patch)
tree63b52b62234dfaf35252c4cdbeccd41c4bac7956 /compiler/GHC/Driver/Session.hs
parent659eb31b7a40f0aa2ba43c3454b5d9006fde837d (diff)
downloadhaskell-2d8ca9170328249a436c3b5647b8e548d32b11c8.tar.gz
Fix -ddump-stg flag
-ddump-stg was dumping the initial STG (just after Core-to-STG pass) which was misleading because we want the final STG to know if a function allocates or not. Now we have a new flag -ddump-stg-from-core for this and -ddump-stg is deprecated.
Diffstat (limited to 'compiler/GHC/Driver/Session.hs')
-rw-r--r--compiler/GHC/Driver/Session.hs7
1 files changed, 5 insertions, 2 deletions
diff --git a/compiler/GHC/Driver/Session.hs b/compiler/GHC/Driver/Session.hs
index 40ccb400bc..b5ded38737 100644
--- a/compiler/GHC/Driver/Session.hs
+++ b/compiler/GHC/Driver/Session.hs
@@ -2586,12 +2586,15 @@ dynamic_flags_deps = [
(setDumpFlag Opt_D_dump_spec)
, make_ord_flag defGhcFlag "ddump-prep"
(setDumpFlag Opt_D_dump_prep)
- , make_ord_flag defGhcFlag "ddump-stg"
- (setDumpFlag Opt_D_dump_stg)
+ , make_ord_flag defGhcFlag "ddump-stg-from-core"
+ (setDumpFlag Opt_D_dump_stg_from_core)
, make_ord_flag defGhcFlag "ddump-stg-unarised"
(setDumpFlag Opt_D_dump_stg_unarised)
, make_ord_flag defGhcFlag "ddump-stg-final"
(setDumpFlag Opt_D_dump_stg_final)
+ , make_dep_flag defGhcFlag "ddump-stg"
+ (setDumpFlag Opt_D_dump_stg_from_core)
+ "Use `-ddump-stg-from-core` or `-ddump-stg-final` instead"
, make_ord_flag defGhcFlag "ddump-call-arity"
(setDumpFlag Opt_D_dump_call_arity)
, make_ord_flag defGhcFlag "ddump-exitify"