In my never-ending pursuit of finding a GHC which can bootstrap itself
with optimizations on, compiles H/Direct and Green Card stuff, etc.
my most recent try was the ghc-3.03 from the current directory (Oct 23).
A minor glitch was the following:
diff ghc-3.03/docs/Makefile{.~1~,}
4c4
< SGML_DOC = installing
---
> VSGML_SRCS = installing
But something really strange is going on here:
-- Foo.hs -----------------------------------------------------
module Foo where
malloc :: IO Int
malloc = _casm_ ``%r = 42;''
-- Bar.hs -----------------------------------------------------
module Bar where
import Foo
blah :: IO Int
blah = malloc
---------------------------------------------------------------
panne@liesl:/tmp > ghc -O -funfold-casms-in-hi-file -fglasgow-exts -c Foo.hs -o Foo.o
ghc: module version changed to 1; reason: no old .hi file
panne@liesl:/tmp > ghc -O -funfold-casms-in-hi-file -fglasgow-exts -c Bar.hs -o Bar.o
-dshow-passes
*** Reader:
*** Renamer:
panic! (the `impossible' happened):
IdInfo parse failed malloc
Please report it as a compiler bug to [EMAIL PROTECTED]
---------------------------------------------------------------
Without "-O -funfold-casms-in-hi-file" everything is OK. It worked with
a ghc-3.03-2-Aug version, too. Undercover retaliation from Sigbjorn? ;-)
Suspiciously,
Sven
--
Sven Panne Tel.: +49/89/2178-2235
LMU, Institut fuer Informatik FAX : +49/89/2178-2211
LFE Programmier- und Modellierungssprachen Oettingenstr. 67
mailto:[EMAIL PROTECTED] D-80538 Muenchen
http://www.pms.informatik.uni-muenchen.de/mitarbeiter/panne