[GHC] #5889: -fno-prof-count-entries leads to linking errors

GHC ghc-devs at haskell.org
Sun Nov 5 23:15:42 UTC 2017


#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):

 See Phab:D4158 for a testcase that demonstrates this.

 Replying to [comment:13 simonpj]:
 > > However, the tick remains in the unfolding
 >
 > * Why? If it is dropped in the RHS why isn't it dropped in the unfolding
 too?
 At the risk of stating the obvious, because the tick is around a `Case`,
 not a `Var`.

 >
 > * Also, when that unfolding is later inlined at a call site, why isn't
 the tick eliminated then?
 My test case illustrates an example of this, hopefully it is clear from
 the comments what is going on.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/5889#comment:14>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list