patch applied (ghc): Fixes for cross-compiling to a different word
size
Simon Marlow
marlowsd at gmail.com
Wed Oct 14 10:02:00 EDT 2009
Wed Oct 14 06:06:12 PDT 2009 Simon Marlow <marlowsd at gmail.com>
* 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 <barney_stratford at fastmail.fm> 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
More information about the Cvs-ghc
mailing list