
are there known problems with ghc-6.4.* and gcc-4.*? It seems that -O2 does not work (on i386), as gcc says something like "Prologue junk". (Suse linux 10.0 comes with gcc-4.?`as default compiler). -- -- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 -- ---- http://www.imn.htwk-leipzig.de/~waldmann/ -------

Johannes Waldmann wrote:
are there known problems with ghc-6.4.* and gcc-4.*? It seems that -O2 does not work (on i386), as gcc says something like "Prologue junk". (Suse linux 10.0 comes with gcc-4.?`as default compiler).
There may well be problems, yes. Have you tried 6.4.1? Or a STABLE snapshot? Cheers, Simon

Here's the error message (i386, ghc-6.4, gcc-4.0.? (as in SuSE 10.0)) *** Mangler /usr/local/lib/ghc-6.4/ghc-asm /tmp/ghc14976.raw_s /tmp/ghc14976.s 4 Warning: retaining unknown function `__i686.get_pc_thunk.bx' in output from C compiler Prologue junk?: .globl Mysqlconnect_lvl_entry .type Mysqlconnect_lvl_entry, @function Mysqlconnect_lvl_entry: .LFB147: .file 1 "/tmp/ghc14976.hc" .loc 1 17 0 .LVL0: .LCFI0: .LVL1: .LCFI1: .LVL2: call __i686.get_pc_thunk.bx addl $_GLOBAL_OFFSET_TABLE_, %ebx .loc 1 18 0
There may well be problems, yes. Have you tried 6.4.1? Or a STABLE snapshot?
no, will do. -- -- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 -- ---- http://www.imn.htwk-leipzig.de/~waldmann/ -------

are there known problems with ghc-6.4.* and gcc-4.*? It seems that -O2 does not work (on i386), as gcc says something like "Prologue junk". (Suse linux 10.0 comes with gcc-4.?`as default compiler).
There may well be problems, yes. Have you tried 6.4.1? Or a STABLE snapshot?
Did not help, I get the same behaviour with ghc-6.4.2.20060121-i386-unknown-linux -- -- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 -- ---- http://www.imn.htwk-leipzig.de/~waldmann/ -------

Johannes Waldmann wrote:
are there known problems with ghc-6.4.* and gcc-4.*? It seems that -O2 does not work (on i386), as gcc says something like "Prologue junk". (Suse linux 10.0 comes with gcc-4.?`as default compiler).
There may well be problems, yes. Have you tried 6.4.1? Or a STABLE snapshot?
Did not help, I get the same behaviour with ghc-6.4.2.20060121-i386-unknown-linux
Can you run the offending command with -keep-raw-s-file, and send me the resulting .raw_s, please? Cheers, Simon
participants (3)
-
Johannes Waldmann
-
Simon Marlow
-
Simon Marlow