[GHC] #12656: ghc floats out constant despite -fno-cse

GHC ghc-devs at haskell.org
Mon Oct 3 14:47:56 UTC 2016


#12656: ghc floats out constant despite -fno-cse
-------------------------------------+-------------------------------------
        Reporter:  nh2               |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Incorrect result  |  Unknown/Multiple
  at runtime                         |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by nh2):

 Note that `{-# OPTIONS_GHC -fno-full-laziness #-}` also doesn't help here;
 how could I prevent the floating-out so that the use of `unsafeThaw` is
 safe?

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


More information about the ghc-tickets mailing list