From 3a75e42e813997b8144619d6031b729690639922 Mon Sep 17 00:00:00 2001 From: Clinton Popetz Date: Thu, 10 Feb 2000 00:20:41 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/function.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8c9a4a9cca8..42cc6b6e9e8 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 8b97be07004..f9d27886a86 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; -- 2.30.2