[MIPS] cannot split restore_gp

Fu, Chao-Ying fu@mips.com
Mon Oct 26 18:42:00 GMT 2009


Richard Sandiford wrote:
> Applied to mainline after testing on mips64octeon-linux-gnu
> with --with-mips-plt.  ChangeLog is:
> 
> gcc/
> 	* config/mips/mips.c (mips_restore_gp_from_cprestore_slot): Emit
> 	a note when expanding to nothing.
> 
> > Index: gcc/config/mips/mips.c
> > ===================================================================
> > --- gcc/config/mips/mips.c	(revision 153036)
> > +++ gcc/config/mips/mips.c	(working copy)
> > @@ -9533,7 +9533,10 @@
> >    gcc_assert (TARGET_ABICALLS && TARGET_OLDABI && 
> epilogue_completed);
> >  
> >    if (!cfun->machine->must_restore_gp_when_clobbered_p)
> > -    return;
> > +    {
> > +      emit_note (NOTE_INSN_DELETED);
> > +      return;
> > +    }
> >  
> >    if (TARGET_MIPS16)
> >      {
> 
> I'll test a backport to 4.4.
> 

Thanks a lot!

Regards,
Chao-ying


More information about the Gcc-patches mailing list