mips.c (mips_restore_gp_from_cprestore_slot): Emit a note when expanding to nothing.
authorRichard Sandiford <rdsandiford@googlemail.com>
Sun, 25 Oct 2009 15:59:17 +0000 (15:59 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Sun, 25 Oct 2009 15:59:17 +0000 (15:59 +0000)
gcc/
* config/mips/mips.c (mips_restore_gp_from_cprestore_slot): Emit
a note when expanding to nothing.

From-SVN: r153540

gcc/ChangeLog
gcc/config/mips/mips.c

index 82e7b7c18507544680c874d69ae83b6d9787a491..e17878e17638d8163dc4f89eb726a51e284db2bc 100644 (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
index 4b4353c95ac0a57db794ebed421976644fffbc5a..f82091a7f36878cb2bef687c873d435d994796bb 100644 (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)
     {