[GHC] #8849: Unregisterised compiler: arithmetic failure

GHC ghc-devs at haskell.org
Wed Mar 5 21:10:33 UTC 2014


#8849: Unregisterised compiler: arithmetic failure
------------------------------------------------+--------------------------
        Reporter:  trommler                     |            Owner:
            Type:  bug                          |           Status:  new
        Priority:  normal                       |        Milestone:
       Component:  Compiler                     |          Version:
      Resolution:                               |  7.8.1-rc2
Operating System:  Linux                        |         Keywords:
 Type of failure:  Incorrect result at runtime  |     Architecture:
       Test Case:  arith005                     |  Unknown/Multiple
        Blocking:                               |       Difficulty:
                                                |  Unknown
                                                |       Blocked By:
                                                |  Related Tickets:  #8819
------------------------------------------------+--------------------------

Comment (by trommler):

 I produced the attached files on my amd64 machine.

 In line 26 of mini.hc (with {{{-O}}} optimization) we see a constant
 {{{0.0}}} whereas line 32 in mini-noopt.hc there is {{{1.0000000001}}} and
 a call to {{{GHC.Num.negate}}}.

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


More information about the ghc-tickets mailing list