[GHC] #4012: Compilation results are not deterministic

GHC ghc-devs at haskell.org
Mon Jun 6 12:56:48 UTC 2016


#4012: Compilation results are not deterministic
-------------------------------------+-------------------------------------
        Reporter:  kili              |                Owner:  niteria
            Type:  bug               |               Status:  new
        Priority:  high              |            Milestone:  8.2.1
       Component:  Compiler          |              Version:  6.12.2
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  Other             |            Test Case:
      Blocked By:  11362             |             Blocking:
 Related Tickets:  #10424            |  Differential Rev(s):  Phab:D910,
                                     |  Phab:D1073, Phab:D1133, Phab:D1192,
                                     |  Phab:D1268, Phab:D1360, Phab:D1373,
       Wiki Page:                    |  Phab:D1396, Phab:D1457, Phab:D1468,
  DeterministicBuilds                |  Phab:D1487, Phab:D1504, Phab:D1508
-------------------------------------+-------------------------------------

Comment (by Bartosz Nitka <niteria@…>):

 In [changeset:"48e9a1f5521fa3185510d144dd28a87e452ce134/ghc" 48e9a1f/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="48e9a1f5521fa3185510d144dd28a87e452ce134"
 Implement deterministic CallInfoSet

 We need CallInfoSet to be deterministic because it determines the
 order that the binds get generated.

 Currently it's not deterministic because it's keyed on
 `CallKey = [Maybe Type]` and `Ord CallKey` is implemented
 with `cmpType` which is nondeterministic.

 See Note [CallInfoSet determinism] for more details.

 Test Plan: ./validate

 Reviewers: simonpj, bgamari, austin, simonmar

 Reviewed By: simonmar

 Subscribers: thomie

 Differential Revision: https://phabricator.haskell.org/D2242

 GHC Trac Issues: #4012
 }}}

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


More information about the ghc-tickets mailing list