[GHC] #12935: Object code produced by GHC is non-deterministic

GHC ghc-devs at haskell.org
Wed Feb 7 02:55:48 UTC 2018


#12935: Object code produced by GHC is non-deterministic
-------------------------------------+-------------------------------------
        Reporter:  bgamari           |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.2
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by bgamari):

 * related:  #12262 =>
 * blockedby:  4012 =>


Comment:

 > So couldn't we initialise the seed of that pseudorandom generator as
 hash(module name), so that each time a module is compiled, it always
 generates the same uniques in the same order

 Yes, I believe we could. The real issue is that (I suspect) this will be a
 rather major surgery of the backend. We produce symbol names and labels in
 many places and often we only have access to a unique supply. Threading
 the necessary state around will likely be a non-trivial exercise.

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


More information about the ghc-tickets mailing list