aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorClinton Popetz <cpopetz@cygnus.com>2000-02-08 16:32:20 +0000
committerClinton Popetz <cpopetz@gcc.gnu.org>2000-02-08 11:32:20 -0500
commita617c13f06557d8dfe444aa21e656e062caa1bf7 (patch)
tree0fb92cf13c82bb676e9d1a6ca09a2805f69649e9 /gcc/function.c
parent4d6b6776c8f56bccd73062e2418346f2ea89cd45 (diff)
downloadgcc-a617c13f06557d8dfe444aa21e656e062caa1bf7.zip
gcc-a617c13f06557d8dfe444aa21e656e062caa1bf7.tar.gz
gcc-a617c13f06557d8dfe444aa21e656e062caa1bf7.tar.bz2
function.c (thread_prologue_and_epilogue_insns): Don't replace jumps with returns unless they are jumps to the fallthru block.
* function.c (thread_prologue_and_epilogue_insns): Don't replace jumps with returns unless they are jumps to the fallthru block. From-SVN: r31852
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/function.c b/gcc/function.c
index 8f383f0..8b97be0 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -6699,7 +6699,7 @@ thread_prologue_and_epilogue_insns (f)
continue;
jump = bb->end;
- if (GET_CODE (jump) != JUMP_INSN)
+ if ((GET_CODE (jump) != JUMP_INSN) || JUMP_LABEL (jump) != label)
continue;
/* If we have an unconditional jump, we can replace that