This is the mail archive of the gcc-patches@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: patch: subreg_regno_offset() being called with a pseudo


Eric Christopher wrote:
> 
> On 07 Sep 2001 14:54:19 -0700, Richard Henderson wrote:
> > On Fri, Sep 07, 2001 at 10:58:22AM -0400, Aldy Hernandez wrote:
> > > the patch below fixes true_regnum so it doesn't assume that reg_renumber
> > > is valid and then one can always just use true_regnum and it will
> > > DTRT.
> >
> > But it doesn't DTRT.  Remember: during reload a pseudo is a
> > memory_operand.  mips_secondary_reload_class is treating a
> > pseudo as a register, which means that it's going to DTWT
> > when reloading to !(GP_REGS | FP_REGS).
> 
> Grrr.. thanks Richard.
> 
> :)
> 
> -eric
> 
> --
> Look out behind you!

So is using using true_regnum in secondary_reload_class in wrong?

Graham


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