GHC-3.02 (maybe OFF-time)

Simon Marlow [email protected]
Thu, 20 Dec 2001 14:06:48 -0000


> I'm hacking with ghc-3.02.src.tar.gz on several platforms, namely i386
> and sparc ...
>=20
> Both platforms run with gcc-2.7.2.3 ( higher versions may be a risk ,
> 2.95 was bad...)
>=20
> In sparc I have no problems,  but in i386 I do obtain the next results
> (File : fptools/ghc/lib/posix/PosixProcPrim.hc)
>=20
> "../../../ghc/driver/ghc -i../misc -recomp -cpp -fglasgow-exts -fvia-C
> -Rghc-timing -O   '-#include"cbits/libposix.h"'  -c=20
> PosixProcPrim.hc -o
> PosixProcPrim.o -osuf o
> PosixProcPrim.hc:2244: fixed or forbidden register was spilled.
> This may be due to a compiler bug or to impossible asm
> statements or clauses."

You need to give GHC the -monly-3-regs (or possibly -monly-2-regs) =
option.

Cheers,
	Simon