Subject: Re: gcc3.3, perl, and '-O3 -march=k6-2' -> segfault
To: David Brownlee <abs@netbsd.org>
From: Frederick Bruckman <fredb@immanent.net>
List: tech-toolchain
Date: 05/29/2003 09:27:04
On Thu, 29 May 2003, David Brownlee wrote:

> On Wed, 28 May 2003, Todd Vierling wrote:
>
> > On Wed, 28 May 2003, Frederick Bruckman wrote:
> >
> > : gcc 3.3 can't even build itself with ``gmake BOOT_CFLAGS="-O3 -march=k6-2"''
> > : (AMD K6-2/533, model 8, stepping 12, underclocked at 500mHz). No such problem
> > : with gcc-3.2.3.
> >
> > Given this (and better yet if you can reproduce it with "./configure && make
> > bootstrap" on a Linux host)....
> >
> > : > 	Any thoughts as to where I should be reporting this?
> >
> > See:
> >
> >     http://gcc.gnu.org/bugs.html#detailed
> >
> > Using the command that make outputs when crashing during the build of
> > stage2, you should be able to add "-v -save-temps" and run it manually.

Actually, I seem to remember the stage2 compiler was dumping core,
but I'm not certain now. Others have reported that "mplayer" dumps
core when built with it's preferred optimizations with gcc 3.3, but
not with gcc 3.2.3, which I found to be the case, too. (For the k6-2,
that's with "-O4 -march=k6-2 -mcpu=k6-2 -pipe -ffast-math
-fomit-frame-pointer".)

> 	It seems to be -frename-registers with the issue.
> 	perl at least chokes with '-O1 -frename-registers'
>
> 	Frederick - can you easily run the gcc build-itself test with
> 	those flags? (as you already ran it with the -O3 :)

With that, ``gmake BOOT_CFLAGS="-O1 -frename-register" bootstrap''
works fine: the stage2 and stage3 compilers are identical.

Frederick