aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJ"orn Rennecke <amylaar@cygnus.co.uk>1997-09-04 15:47:40 +0000
committerJeff Law <law@gcc.gnu.org>1997-09-04 09:47:40 -0600
commit04da53bd68a8a9c81d77d1e209cbbe2187cc2df3 (patch)
tree10e076470ab47cbec3b40764758fd47aacbfff4c /gcc
parent780532a4c61d6a361d469a39f81c988ad57a8f5d (diff)
downloadgcc-04da53bd68a8a9c81d77d1e209cbbe2187cc2df3.zip
gcc-04da53bd68a8a9c81d77d1e209cbbe2187cc2df3.tar.gz
gcc-04da53bd68a8a9c81d77d1e209cbbe2187cc2df3.tar.bz2
final.c (shorten_branches): Don't count the lengths of deleted instructions.
* final.c (shorten_branches): Don't count the lengths of deleted instructions. From-SVN: r15074
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/final.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 00f00e6..f6614c2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/final.c b/gcc/final.c
index d36e3d6..122a733 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -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)