From: Clinton Popetz Date: Tue, 8 Feb 2000 16:32:20 +0000 (+0000) Subject: function.c (thread_prologue_and_epilogue_insns): Don't replace jumps with returns... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a617c13f06557d8dfe444aa21e656e062caa1bf7;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3c1acb8ba87..c9f3ebddea6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-02-08 Clinton Popetz + + * function.c (thread_prologue_and_epilogue_insns): Don't replace + jumps with returns unless they are jumps to the fallthru block. + Tue Feb 8 07:53:55 2000 Jan Hubicka * i386.md (addqi3_cc): Fix contraints. 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