This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: [MIPS] cannot split restore_gp
- From: "Fu, Chao-Ying" <fu at mips dot com>
- To: "Richard Sandiford" <rdsandiford at googlemail dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 26 Oct 2009 10:56:26 -0700
- Subject: 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