Subject: Re: sparc and gcc4?
To: Michael Lorenz <macallan@netbsd.org>
From: Martin Husemann <martin@NetBSD.org>
List: port-sparc
Date: 06/27/2006 08:38:54
On Mon, Jun 26, 2006 at 11:14:50PM +0000, Martin Husemann wrote:
> FWIW: a gcc 4 kernel crashes on my LX imediately (alginment fault) when
> it is about to mount /.

So I found that the kernel works fine when compiled with -O2, but I had
a -Os in makeoptions.

That made me curious, and experiments show that a kernel compiled with
anything != -O2 crashes with alignment faults or illegal instructions.

Maybe we should drop back to gcc 3.3.6 for now as default, untill this
code gen issues have been resolved?

Martin