From 925738839891b320b9436e7383d55dce2b8d4543 Mon Sep 17 00:00:00 2001 From: Matthew Pickering Date: Mon, 21 Dec 2020 08:59:27 +0000 Subject: Deprecate -h flag It is confusing that it defaults to two different things depending on whether we are in the profiling way or not. Use -hc if you have a profiling build Use -hT if you have a normal build Fixes #19031 --- rts/RtsFlags.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'rts/RtsFlags.c') diff --git a/rts/RtsFlags.c b/rts/RtsFlags.c index 95656c3da6..ddd561b29c 100644 --- a/rts/RtsFlags.c +++ b/rts/RtsFlags.c @@ -1381,6 +1381,9 @@ error = true; #if !defined(PROFILING) switch (rts_argv[arg][2]) { case '\0': + errorBelch("-h is deprecated and will be removed in the next release (9.4),\nuse -hT instead."); + + FALLTHROUGH; case 'T': OPTION_UNSAFE; RtsFlags.ProfFlags.doHeapProfile = HEAP_BY_CLOSURE_TYPE; @@ -2133,6 +2136,8 @@ static bool read_heap_profiling_flag(const char *arg) bool error = false; switch (arg[2]) { case '\0': + errorBelch("-h is deprecated and will be removed in the next release (9.4),\nuse -hc instead."); + FALLTHROUGH; case 'C': case 'c': case 'M': -- cgit v1.2.1