[GHC] #13360: Add a flag to enable inferring HasCallStack constraints
GHC
ghc-devs at haskell.org
Mon Nov 13 16:58:11 UTC 2017
#13360: Add a flag to enable inferring HasCallStack constraints
-------------------------------------+-------------------------------------
Reporter: gridaphobe | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: 8.4.1
Component: Compiler | Version: 8.0.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by bgamari):
> And worse, there doesn't seem to be any reason to expect a size
heuristic to produce a proper chain of callstack-aware functions.
Ahh, yes, that's a good point. Unlike cost centers, if you miss any link
in the chain you lose all locations "above" the missing link.
> Well, cost-center stacks require the entire world to have been compiled
with -prof, which can be pretty time-consuming.
Okay, fair enough. Personally I have configured Cabal to always profiled
libraries so the cost generally isn't so high. I suppose if you don't do
this switching to profiling would be rather painful, however. It's a shame
that profiled code must be so incompatible with unprofiled.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13360#comment:35>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list