summaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorcpopetz <cpopetz@138bc75d-0d04-0410-961f-82ee72b054a4>2000-02-08 16:32:20 +0000
committercpopetz <cpopetz@138bc75d-0d04-0410-961f-82ee72b054a4>2000-02-08 16:32:20 +0000
commitd7c2892cb46573bc929c4718402bffc680208c4f (patch)
tree0fb92cf13c82bb676e9d1a6ca09a2805f69649e9 /gcc/function.c
parent4046a0579735d83e949a85a5c84ae6130492a2f9 (diff)
downloadgcc-d7c2892cb46573bc929c4718402bffc680208c4f.tar.gz
* function.c (thread_prologue_and_epilogue_insns): Don't replace
jumps with returns unless they are jumps to the fallthru block. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31852 138bc75d-0d04-0410-961f-82ee72b054a4
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 8f383f067c2..8b97be07004 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