This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[tree-ssa] Fix bsi_prev buglet
- From: Diego Novillo <dnovillo at redhat dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 20 Oct 2003 10:03:44 -0400
- Subject: [tree-ssa] Fix bsi_prev buglet
- Organization: Red Hat Canada
* tree-cfg.c (bsi_prev): Also copy the context from the previous
iterator.
Index: tree-cfg.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-cfg.c,v
retrieving revision 1.1.4.180
diff -d -c -p -d -c -p -r1.1.4.180 tree-cfg.c
*** tree-cfg.c 18 Oct 2003 03:09:46 -0000 1.1.4.180
--- tree-cfg.c 20 Oct 2003 13:35:47 -0000
*************** bsi_prev (block_stmt_iterator *i)
*** 3403,3408 ****
--- 3403,3409 ----
if (next.tp == i->tp)
{
i->tp = bi.tp;
+ i->context = bi.context;
return;
}
}