aboutsummaryrefslogtreecommitdiff
path: root/gcc/final.c
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/final.c
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/final.c')
-rw-r--r--gcc/final.c2
1 files changed, 2 insertions, 0 deletions
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)