* function.c (thread_prologue_and_epilogue_insns): Don't delete
authorcpopetz <cpopetz@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Feb 2000 00:20:41 +0000 (00:20 +0000)
committercpopetz <cpopetz@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Feb 2000 00:20:41 +0000 (00:20 +0000)
the edge from a block that both jumps and falls through to the
fallthru block.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31878 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/function.c

index 8c9a4a9..42cc6b6 100644 (file)
@@ -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
index 8b97be0..f9d2788 100644 (file)
@@ -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;