From: Clinton Popetz Date: Thu, 10 Feb 2000 00:20:41 +0000 (+0000) Subject: function.c (thread_prologue_and_epilogue_insns): Don't delete the edge from a block... X-Git-Tag: prereleases/libstdc++-2.92~8310 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3a75e42e813997b8144619d6031b729690639922;p=thirdparty%2Fgcc.git function.c (thread_prologue_and_epilogue_insns): Don't delete the edge from a block that both jumps and falls through to the... * function.c (thread_prologue_and_epilogue_insns): Don't delete the edge from a block that both jumps and falls through to the fallthru block. From-SVN: r31878 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8c9a4a9cca85..42cc6b6e9e86 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2000-02-09 Clinton Popetz + + * function.c (thread_prologue_and_epilogue_insns): Don't delete + the edge from a block that both jumps and falls through to the + fallthru block. + 2000-02-09 Scott Bambrough * config/arm/arm.md (movsi): In PIC mode, make sure that a diff --git a/gcc/function.c b/gcc/function.c index 8b97be070046..f9d27886a86b 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -6727,6 +6727,12 @@ thread_prologue_and_epilogue_insns (f) continue; if (JUMP_LABEL (jump)) LABEL_NUSES (JUMP_LABEL (jump))--; + + /* If this block has only one successor, it both jumps + and falls through to the fallthru block, so we can't + delete the edge. */ + /*if (bb->succ->succ_next == NULL) + continue;*/ } else continue;