Fri Oct 20 08:39:25 PDT 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
_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc