[GHC] #13604: ghci no longer loads dynamic .o files by default if they were built with -O

GHC ghc-devs at haskell.org
Sun Oct 1 23:38:44 UTC 2017


#13604: ghci no longer loads dynamic .o files by default if they were built with -O
-------------------------------------+-------------------------------------
        Reporter:  George            |                Owner:  dfeuer
            Type:  bug               |               Status:  new
        Priority:  high              |            Milestone:  8.2.2
       Component:  Compiler          |              Version:  8.2.1-rc1
      Resolution:                    |             Keywords:
                                     |  RecompilationCheck
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Runtime           |  Unknown/Multiple
  performance bug                    |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D3514
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by elaforge):

 Sorry about the delay, I guess trac doesn't email me when tickets are
 updated.

 The desired end result is that I have a bunch of .o files compiled with
 -O, and I need to load them into the GHC API.  Similarly, I have a set of
 .o files compiled with -fhpc, and I need to load them into ghci.  Any
 solution that reaches that result will probably work for me!

 [ bgamari ]
 > I'm not sure teaching ghci to ignore -O and -fhpc is a great idea since
 there may be users that want to use these flags from within an
 > interactive session.

 I don't understand this, ghci already ignores -O and -fhpc, and as far as
 I know always has, whether or not people want to use them.  So the request
 is to continue ignoring those flags as always, but to be able to load
 files compiled with them... which presumably means include them in the
 hash.

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


More information about the ghc-tickets mailing list