Error when compiling with -O
Simon Marlow
simonmar at microsoft.com
Thu Aug 9 07:42:38 EDT 2001
> There is a particular program (attached, called Spel.hs)
> which I cannot
> compile with the -O flag. The program goes through hsc
> alright but when
> gcc is trying to compile the generated c code it barfs pretty
> badly. The
> output from gcc is also attached.
>
> ghc version 5.00.1 (the same problem shows up with 4.08.1)
> gcc version 2.95.3
> running solaris 2.5
Thanks for the report. GHC is erroneously passing some of the non-ASCII
characters used in identifiers in the module through unmodified into the
intermediate C output, when it should be encoding them using ASCII
characters only.
As a workaround, use the native code generator (-O -fasm, or just turn
off -O).
Cheers,
Simon
More information about the Glasgow-haskell-bugs
mailing list