This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PPro and egcs


> 
> 
>   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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]