patch applied (ghc): MERGE: In hashExpr, use Word32 rather than relying on wrapping behaviour of Int

Ian Lynagh <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.all
Message-ID <20061203223703.GA27972__24004.0798824795$1165185432$gmane$org@cvs.haskell.org>
Sun Dec  3 14:33:37 PST 2006  Ian Lynagh <[email protected]>
  * MERGE: 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 -12 +18
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.