This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[tree-ssa] Fix bsi_next_in_bb
- From: law at redhat dot com
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 23 Aug 2003 21:03:09 -0600
- Subject: [tree-ssa] Fix bsi_next_in_bb
- Reply-to: law at redhat dot com
This was broken out of one of Zdenek's larger patches. It fixes
cases where a block ends at a BIND_EXPR.
* tree-cfg.c (bsi_next_in_bb): Work correctly when the block ends
with start of BIND_EXPR.
Index: tree-cfg.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-cfg.c,v
retrieving revision 1.1.4.154
diff -c -3 -p -r1.1.4.154 tree-cfg.c
*** tree-cfg.c 21 Aug 2003 17:23:51 -0000 1.1.4.154
--- tree-cfg.c 24 Aug 2003 03:01:49 -0000
*************** bsi_next_in_bb (block_stmt_iterator *i,
*** 3540,3547 ****
}
else
bind.context = tmp;
- *i = bind;
}
}
if (i->tp == NULL && i->context != NULL_TREE)
--- 3540,3547 ----
}
else
bind.context = tmp;
}
+ *i = bind;
}
if (i->tp == NULL && i->context != NULL_TREE)