Fix +RTS -h when compiling without -prof
authorSimon Marlow <smarlow@fb.com>
Thu, 7 Jan 2016 14:23:14 +0000 (06:23 -0800)
committerBen Gamari <ben@smart-cactus.org>
Sat, 9 Jan 2016 03:43:35 +0000 (04:43 +0100)
commitd699446a50f92005a8b6515633a3c8937962e225
treebbb4eb72aabd8c1d9d19001503f4c471fde7122f
parenteaf8d53deffabfd99d8e35c2c19558d64fcbff7d
Fix +RTS -h when compiling without -prof

Summary:
Was broken by ce1f1607ed7f8fedd2f63c8610cafefd59baaf32.  I've added a
test so that hopefully it won't break again.

Test Plan: validate & new test case

Reviewers: bgamari, austin, erikd

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D1746

GHC Trac Issues: #11304

(cherry picked from commit c33e7c2b1a62f340432c752fb37ca1374e3e982a)
rts/ProfHeap.c
testsuite/config/ghc
testsuite/tests/profiling/should_run/all.T
testsuite/tests/profiling/should_run/heapprof002.stdout [new file with mode: 0644]