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]
Other format: [Raw text]

RE: [MIPS] cannot split restore_gp


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

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