
#5889: -fno-prof-count-entries leads to linking errors -------------------------------------+------------------------------------- Reporter: akio | Owner: bgamari Type: bug | Status: new Priority: highest | Milestone: 8.4.1 Component: Compiler | Version: 8.3 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 Type of failure: GHC rejects | (amd64) valid program | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by duog): Replying to [comment:15 bgamari]:
Well, I think simonpj's question was really "why is the same simplification not also being performed when we inline the unfolding?" Indeed this is a good question and will need some investigation.
One explanation could be that `newTyConEtadRhs` is inlined at the callsite of `newTyConInstRhs` because the constructor of `tycon_a9Sq` is known; and after that substitution the logic in comment:9 no longer applies. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/5889#comment:16 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler