From: Kazu Hirata Date: Wed, 19 Jan 2005 21:02:53 +0000 (+0000) Subject: tree-cfg.c (remove_forwarder_block): Fix the check to prevent a nonlocal label from... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=04d38c3bc120922088eb3c437c060a04ea255e3f;p=gcc.git tree-cfg.c (remove_forwarder_block): Fix the check to prevent a nonlocal label from appearing in the middle of a... * 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 87dff43f90d..9b7b9b517e4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2005-01-19 Kazu Hirata + + * 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 PR rtl-optimization/19462 diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index d3607190e48..ee5842c3c6c 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -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)))