Subject: Re: sparc and gcc4?
To: None <port-sparc@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: port-sparc
Date: 06/27/2006 14:57:48
In article <20060627083854.GA25940@NetBSD.org>,
Martin Husemann  <martin@NetBSD.org> wrote:
>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?

I think we should publish that if you compile with -Os or -O3 things might
not work, but please report bugs. We should create a matrix of what works
at which compilation level.

christos