Wed Oct 14 06:06:12 PDT 2009 Simon Marlow <[email protected]>
* Fixes for cross-compiling to a different word size
Ignore-this: f5f1769ae247a3eb735662ea90926f96
This patch eliminates a couple of places where we were assuming that
the host word size is the same as the target word size.
Also a little refactoring: Constants now exports the types TargetInt
and TargetWord corresponding to the Int/Word type on the target
platform, and I moved the definitions of tARGET_INT_MAX and friends
from Literal to Constants.
Thanks to Barney Stratford <[email protected]> for helping
track down the problem and fix it. We now know that GHC can
successfully cross-compile from 32-bit to 64-bit.
M ./compiler/basicTypes/Literal.lhs -26 +1
M ./compiler/prelude/PrelRules.lhs -3 +5
M ./includes/HaskellConstants.hs +22
View patch online:
http://darcs.haskell.org/ghc/_darcs/patches/20091014130612-12142-29384e9e9efd7fc614c4b883587dbaeba68b6cba.gz
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc