-O doesn't work with gcc-3.2?
Thomas Hallgren
hallgren@cse.ogi.edu
Sat, 23 Nov 2002 10:07:05 -0800
Hi,
Anatoli Tubman (by way of Anatoli Tubma) wrote:
>ghc fails with this message:
>
>Prologue junk?: .globl __stginit_Main
>__stginit_Main:
> pushl %ebp
> movl %esp, %ebp
>
>It works without -O. I'm on stock Mandrake 9.0 system.
>
It appears that the version of GCC 3.2 supplied with Mandrake 9.0
ignores the -fomit-frame-pointer flag, and this confuses GHC's mangler.
The version of GCC supplied with RedHat 8.0 (gcc version 3.2 20020903)
does not seem to have this problem...
Thomas H