Optimization and GCC?

Marcin 'Qrczak' Kowalczyk qrczak@knm.org.pl
Wed, 19 Dec 2001 10:43:50 +0000 (UTC)


Wed, 19 Dec 2001 09:56:36 +0100, Till Doerges <till@doerges.net> pisze:

> /u/joe/built/lib/ghc-5.00.2/includes/Regs.h:255: warning: call-clobbered register used for global register variable 

I don't know about this one.

> /tmp/ghc15733.hc:5391: warning: deprecated initialization of zero-length array
> /tmp/ghc15733.hc:5391: warning: (near initialization for `Main_main_closure.payload')

This is already fixed in CVS.

ghc3 is not officially supported yet. Nevertheless I'm using it at home
and it can successfully compile almost everything from ghc on ix86.
This is my mk/build.mk - I'm compiling three files with gcc-2.95.3:

ProjectsToBuild = glafp-utils ghc hslibs happy
PrimOps_HC_OPTS = -pgmcgcc-2.95.3
ArrayBase_HC_OPTS = -pgmcgcc-2.95.3
PosixTTY_HC_OPTS = -pgmcgcc-2.95.3

This was for gcc-3.0.1 and ghc a few weeks ago. I'll see if it's better
now, with gcc-3.0.2. The problem with PrimOps looked like gcc bug,
as if it ignored -fomit-frame-pointer for this file.

-- 
 __("<  Marcin Kowalczyk * qrczak@knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^
QRCZAK