Correct branch/fallthru edge detection
authorBernd Schmidt <bernds@redhat.com>
Tue, 10 Jul 2001 14:57:13 +0000 (14:57 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Tue, 10 Jul 2001 14:57:13 +0000 (14:57 +0000)
From-SVN: r43902

gcc/ChangeLog
gcc/bb-reorder.c

index cab7700d839d0729aed7bf34f144c732774b5b7c..02a6f61c1858524be14e1402ddd3c36cb30b9f66 100644 (file)
@@ -1,3 +1,8 @@
+2001-07-10  Bernd Schmidt  <bernds@redhat.com>
+
+       * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
+       edge detection.
+
 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
 
        * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
index e13e5f14485ce4e07c6d07c056ed5730c48f0cf0..a6534d809dbbbfd775e3e9a37b1193b339a226ce 100644 (file)
@@ -409,7 +409,7 @@ make_reorder_chain_1 (bb, prev)
        {
          if (e->flags & EDGE_FALLTHRU)
            e_fall = e;
-         if (! (e->flags & EDGE_EH))
+         else if (! (e->flags & EDGE_EH))
            e_taken = e;
        }