]> 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:22:35 +0000 (17:22 -0600)
committerJeff Law <law@gcc.gnu.org>
Mon, 21 Jun 1999 23:22:35 +0000 (17:22 -0600)
H
        * final.c (shorten_branches): Don't try to split an insn that has
        been deleted.

From-SVN: r27691

gcc/final.c

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.  */