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

GHC ghc-devs at haskell.org
Tue Oct 31 19:45:20 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:  patch
        Priority:  highest           |            Milestone:  8.2.3
       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:D4123
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by elaforge):

 bgamari: No problem, I understand about release schedules.  I'm sorry to
 drag it out a bit, but on the other hand it's good to be careful about
 flag design since it's one of those APIs that is hard to fix later.

 I'll copy paste this in the mailing list thread, just so there's a record
 in both places.

 I still don't feel like 1 is necessary, I'd rather flags cause other flags
 to be ignored with a warning, rather than turn on other flags.
 But that's just a vague preference, with no strong evidence for it.  Maybe
 it could emit a warning if you didn't put -fobject-code in explicitly,
 e.g. "-O implies -fobject-code, adding that flag."  So as long as we
 accept 1, then 2 and 3 follow naturally.  Given that, I support this UI.

 Thanks for looking into it!

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


More information about the ghc-tickets mailing list