final.c (shorten_branches): Don't count the lengths of deleted instructions.
authorJ"orn Rennecke <amylaar@cygnus.co.uk>
Thu, 4 Sep 1997 15:47:40 +0000 (15:47 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 4 Sep 1997 15:47:40 +0000 (09:47 -0600)
        * final.c (shorten_branches): Don't count the lengths of deleted
        instructions.

From-SVN: r15074

gcc/ChangeLog
gcc/final.c

index 00f00e6b6186536963b7d4f54dd4fa80137eed5f..f6614c2b48d3831d8f220dd0a109131e86a28041 100644 (file)
@@ -1,3 +1,8 @@
+Thu Sep  4 07:39:19 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
+
+       * final.c (shorten_branches): Don't count the lengths of deleted
+       instructions.
+
 Thu Sep  4 09:43:01 1997  Jeffrey A Law  (law@cygnus.com)
 
        * version.c: Bump for snapshot.
index d36e3d617eba64cd2e5b8d170c1858ca61b99ee9..122a733f45780eff13fd5e9d789647b5d7f4f02a 100644 (file)
@@ -734,6 +734,8 @@ shorten_branches (first)
       if (GET_CODE (insn) == NOTE || GET_CODE (insn) == BARRIER
          || GET_CODE (insn) == CODE_LABEL)
        continue;
+      if (INSN_DELETED_P (insn))
+       continue;
 
       body = PATTERN (insn);
       if (GET_CODE (body) == ADDR_VEC || GET_CODE (body) == ADDR_DIFF_VEC)