tree-cfg.c (remove_forwarder_block): Fix the check to prevent a nonlocal label from...
authorKazu Hirata <kazu@cs.umass.edu>
Wed, 19 Jan 2005 21:02:53 +0000 (21:02 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Wed, 19 Jan 2005 21:02:53 +0000 (21:02 +0000)
* tree-cfg.c (remove_forwarder_block): Fix the check to
prevent a nonlocal label from appearing in the middle of a
basic block.

From-SVN: r93917

gcc/ChangeLog
gcc/tree-cfg.c

index 87dff43..9b7b9b5 100644 (file)
@@ -1,3 +1,9 @@
+2005-01-19  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * tree-cfg.c (remove_forwarder_block): Fix the check to
+       prevent a nonlocal label from appearing in the middle of a
+       basic block.
+
 2005-01-19  Hans-Peter Nilsson  <hp@axis.com>
 
        PR rtl-optimization/19462
index d360719..ee5842c 100644 (file)
@@ -3973,7 +3973,7 @@ remove_forwarder_block (basic_block bb, basic_block **worklist)
 
   /* If the destination block consists of an nonlocal label, do not merge
      it.  */
-  label = first_stmt (bb);
+  label = first_stmt (dest);
   if (label
       && TREE_CODE (label) == LABEL_EXPR
       && DECL_NONLOCAL (LABEL_EXPR_LABEL (label)))