mips.c (mips_restore_gp_from_cprestore_slot): Emit a note when expanding to nothing.

gcc/
	* config/mips/mips.c (mips_restore_gp_from_cprestore_slot): Emit
	a note when expanding to nothing.

From-SVN: r153540
This commit is contained in:
Richard Sandiford 2009-10-25 15:59:17 +00:00 committed by Richard Sandiford
parent 22dfb60e84
commit c870c233bd
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-10-25 Richard Sandiford <rdsandiford@googlemail.com>
* config/mips/mips.c (mips_restore_gp_from_cprestore_slot): Emit
a note when expanding to nothing.
2009-10-25 Richard Guenther <rguenther@suse.de>
PR middle-end/41814

View File

@ -9537,7 +9537,10 @@ mips_restore_gp_from_cprestore_slot (rtx temp)
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)
{