#952: Floating point exception building HEAD with 6.6
----------------------+-----------------------------------------------------
 Reporter:  simonmar  |          Owner:          
     Type:  bug       |         Status:  closed  
 Priority:  normal    |      Milestone:  6.6.1   
Component:  Compiler  |        Version:  6.6     
 Severity:  normal    |     Resolution:  fixed   
 Keywords:            |     Difficulty:  Unknown 
 Testcase:            |   Architecture:  Multiple
       Os:  Multiple  |  
----------------------+-----------------------------------------------------
Changes (by simonmar):

  * architecture:  x86_64 (amd64) => Multiple
  * resolution:  => fixed
  * status:  new => closed
  * os:  Linux => Multiple

Comment:

 Fixed:

 {{{
 Fri Oct 20 16:39:25 BST 2006  Simon Marlow <[EMAIL PROTECTED]>
   * In hashExpr, use Word32 rather than relying on wrapping behaviour of
 Int
   Fixes #952, as it turns out.

   When compiling via C, we are at the mercy of C's undefined behaviour
   with respect to overflow of signed integer operations, and this was
   biting us here.

   Perhaps we should always add the -fwrapv flag to gcc, but since
   Haskell doesn't define overflow on Int either, it seemed the right
   thing to do to fix this code anyway.

     M ./compiler/coreSyn/CoreUtils.lhs -9 +17
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/952>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to