Jan Laitenberger <[EMAIL PROTECTED]> writes: 
> 
> We use a small Avl module in our compiler project. GHC 4.00
> crashes with the error message "unimplemented check" when
> compiling with 
> 
>   ghc -c -O -H45M Avl.hs
> 
> - but
> 
>   ghc -c -H45M Avl.hs        and
>   ghc -c -O2 -H45M Avl.hs
> 
> will compile without error messages.
> 
> Why?
> 

There's a couple of heap checks that are unimplemented by the
native code generator, hence the crash. For now, turn off the
use of the native code generator and compile with -fvia-C
instead. (which is what -O2 does.)

--Sigbjorn

Reply via email to