[GHC] #9718: Avoid TidyPgm predicting what CorePrep will do

GHC ghc-devs at haskell.org
Mon Dec 10 09:30:45 UTC 2018


#9718: Avoid TidyPgm predicting what CorePrep will do
-------------------------------------+-------------------------------------
        Reporter:  simonpj           |                Owner:  (none)
            Type:  task              |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.8.3
      Resolution:                    |             Keywords:  CodeGen, CAFs
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 osa1):

 I found the problem with dynamic interface files that I mention in
 comment:31.
 Normally when I run these:

 {{{
 $ ghc-stage1 --show-iface libraries/ghc-prim/dist-
 install/build/GHC/Types.hi
 $ ghc-stage1 --show-iface libraries/ghc-prim/dist-
 install/build/GHC/Types.dyn_hi
 }}}

 The first command should show `Wanted: [] Got: []` in `Ways` section, the
 second
 should show `Wanted: [] Got: [dyn]`, but with my code both show `Got
 [dyn]`. So
 it seems like I'm generating a dyn iface file instead of a normal iface
 file.

 This seems to be related with how the `-dynamic-too` flag is implemented
 (it
 runs the pipeline multiple times, but I think the repeated parts of the
 pipeline
 does not include the code generator).

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


More information about the ghc-tickets mailing list