lower-subreg.c (resolve_clobber): If the clobber has a LIBCALL note, just delete...
authorIan Lance Taylor <iant@google.com>
Tue, 7 Aug 2007 16:48:00 +0000 (16:48 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 7 Aug 2007 16:48:00 +0000 (16:48 +0000)
* lower-subreg.c (resolve_clobber): If the clobber has a LIBCALL
note, just delete the insn.

From-SVN: r127273

gcc/ChangeLog
gcc/lower-subreg.c

index 9e0e4bffc9d33e4ab3876157b1899ecfcb65373f..fa267ee2c7f50edd97bf2282367e890a1f342531 100644 (file)
@@ -1,3 +1,8 @@
+2007-08-07  Ian Lance Taylor  <iant@google.com>
+
+       * lower-subreg.c (resolve_clobber): If the clobber has a LIBCALL
+       note, just delete the insn.
+
 2007-08-07  Andreas Schwab  <schwab@suse.de>
 
        PR bootstrap/32973
index 4cb2ca8cabedf4ce1833a883edc0ebd6a2ab2347..288566d87b53f5170edc7c3824587145195bb6d2 100644 (file)
@@ -906,6 +906,15 @@ resolve_clobber (rtx pat, rtx insn)
   if (!resolve_reg_p (reg) && !resolve_subreg_p (reg))
     return false;
 
+  /* If this clobber has a REG_LIBCALL note, then it is the initial
+     clobber added by emit_no_conflict_block.  We were able to
+     decompose the register, so we no longer need the clobber.  */
+  if (find_reg_note (insn, REG_LIBCALL, NULL_RTX) != NULL_RTX)
+    {
+      delete_insn (insn);
+      return true;
+    }
+
   orig_mode = GET_MODE (reg);
   words = GET_MODE_SIZE (orig_mode);
   words = (words + UNITS_PER_WORD - 1) / UNITS_PER_WORD;