This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PPro and egcs
- To: law at cygnus dot com
- Subject: Re: PPro and egcs
- From: hjl at lucon dot org (H.J. Lu)
- Date: Fri, 31 Oct 1997 15:24:02 -0800 (PST)
- Cc: egcs at cygnus dot com
>
>
> In message <m0xRQKv-0004ecC@ocean.lucon.org>you write:
> > > Well, I've got my ppro running, and I've actually been able to trip this
> > > problem. No clue why I couldn't get it to trip with my cross compiler.
> > >
> > > It's a tough little nut to crack, largly because of reload's insistence
> > > on replacing regs with CONST_INTs when the register has a REG_EQUIV note.
> > >
> >
> > If you take a close look, eax is used for the return value of a
> > funtion. In that case, I don't gcc should even try to use eax as
> > spill register.
> On the x86 the reload pass does try to use return registers and
> any others it can find as spills -- the x86 is too register poor
> to not use it.
>
What I meant was in that particular instance, eax is an input
register in the insn, which is the return value. gcc should skip
eax on that one.
--
H.J. Lu (hjl@gnu.ai.mit.edu)