This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: REG_USERVAR_P and GCSE
- To: Geoff Keating <geoffk at ozemail dot com dot au>
- Subject: Re: REG_USERVAR_P and GCSE
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Thu, 22 Oct 1998 23:12:29 -0600
- cc: egcs-patches at cygnus dot com
- Reply-To: law at cygnus dot com
In message <199810200517.PAA09465@geoffk.wattle.id.au>you write:
> > cc: egcs-patches@cygnus.com
> > Date: Sun, 18 Oct 1998 23:47:06 -0600
> > From: Jeffrey A Law <law@cygnus.com>
>
> > > The attached test program, compiled with egcs 1.1b (and my previous
> > > GCSE fix) under powerpc-linux, with 'gcc -O2 x.c -o x', abort()s in
> > > f2, when it should not.
> > >
> > > I'll save everyone the long discussion of what GCSE is doing to the
> > > program (although this is a great example of how GCSE works). The
> > > problem is that GCSE is creating a new register, register 94 when I
> > > run it, which does not have REG_USERVAR_P set:
> > You really should have explained this a little more. I spent about an
> > hour starting at dumps to find out what was wrong.
>
> Sorry about that. I should have mentioned that the fastest way to
> find the bug is to trace the generated assembler, only about 10
> instructions actually get executed before abort() is hit.
Just to verify, you did get a later message from me which basically agreed that
your patch was the best we could do until we can totally revamp LICM and that
I had installed it in both the mainline sources and the egcs-1.1 branch.
Right?
jeff