REG_USERVAR_P and GCSE
Jeffrey A Law
Thu Oct 22 22:13:00 GMT 1998
In message < 199810200517.PAA09465@geoffk.wattle.id.au >you write:
> > cc: email@example.com
> > Date: Sun, 18 Oct 1998 23:47:06 -0600
> > From: Jeffrey A Law <firstname.lastname@example.org>
> > > 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.
More information about the Gcc-patches