Status of GHC with gcc 3.x ?

C.Reinke C.Reinke@ukc.ac.uk
Thu, 20 Jun 2002 15:30:38 +0100


What is the status of GHC with gcc 3.x (on Sun)?

The 5.02.3 ANNOUNCE said "now works with gcc 3.x", but we 
still seem to have problems here (having switched to gcc 3.1):

  > uname -a
  SunOS myrtle 5.8 Generic_108528-14 sun4u sparc SUNW,Ultra-4

  > gcc --version

  gcc (GCC) 3.1
  Copyright (C) 2002 Free Software Foundation, Inc.
  This is free software; see the source for copying conditions.  There is NO
  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

  > ghc-5.02.3 --version
  The Glorious Glasgow Haskell Compilation System, version 5.02.3

  > cat hello.hs
  module Main where
  main = putStrLn "Hassle?"

  > ghc-5.02.3 -O hello.hs
  > a.out
  Bus error (core dumped)

Both compilation via an older gcc and compilation without -O
produce working executables. Is this a know issue? Fixed in 5.04?-)

Claus