]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
final.c (shorten_branches): Don't try to split an insn that has been deleted.
authorRichard Earnshaw <rearnsha@arm.com>
Mon, 21 Jun 1999 23:21:23 +0000 (23:21 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 21 Jun 1999 23:21:23 +0000 (17:21 -0600)
Tue Jun 22 00:20:05 1999  Richard Earnshaw (rearnsha@arm.com)
        * final.c (shorten_branches): Don't try to split an insn that has
        been deleted.

From-SVN: r27689

gcc/ChangeLog
gcc/final.c

index b2798ee8d8a4d1f42a1c6b496cc993deac73678a..e2b7e5636faf4c7a56417b7e25b71459d4a1fac7 100644 (file)
@@ -1,3 +1,8 @@
+Tue Jun 22 00:20:05 1999  Richard Earnshaw (rearnsha@arm.com)
+
+       * final.c (shorten_branches): Don't try to split an insn that has
+       been deleted.
+
 Mon Jun 21 23:32:17 1999  Jeffrey A Law  (law@cygnus.com)
 
        Thu Jun 17 15:07 1999  Bruce Korb <ddsinc09@ix.netcom.com>
index 4695590dc5e9eb41ac353b8c8fbe9bc44511f2aa..a9ae2804dbdee8e22576d698797073555065f67e 100644 (file)
@@ -999,7 +999,9 @@ shorten_branches (first)
     if (GET_RTX_CLASS (GET_CODE (insn)) == 'i')
       {
        rtx old = insn;
-       insn = try_split (PATTERN (old), old, 1);
+       /* Don't split the insn if it has been deleted.  */
+       if (! INSN_DELETED_P (old))
+         insn = try_split (PATTERN (old), old, 1);
        /* When not optimizing, the old insn will be still left around
           with only the 'deleted' bit set.  Transform it into a note
           to avoid confusion of subsequent processing.  */