aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorClinton Popetz <cpopetz@cygnus.com>2000-02-10 00:20:41 +0000
committerClinton Popetz <cpopetz@gcc.gnu.org>2000-02-09 19:20:41 -0500
commit3a75e42e813997b8144619d6031b729690639922 (patch)
tree682124d0b741a49426f840f20b828a7a2e83c2a8 /gcc
parent7e3b6e312a9f2060a707ab279e236fc464d9f518 (diff)
downloadgcc-3a75e42e813997b8144619d6031b729690639922.zip
gcc-3a75e42e813997b8144619d6031b729690639922.tar.gz
gcc-3a75e42e813997b8144619d6031b729690639922.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/function.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8c9a4a9..42cc6b6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
+
+ * 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 <scottb@netwinder.org>
* config/arm/arm.md (movsi): In PIC mode, make sure that a
diff --git a/gcc/function.c b/gcc/function.c
index 8b97be0..f9d2788 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;