This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[tree-ssa] Unlink_block x gc
- From: Zdenek Dvorak <rakdver at atrey dot karlin dot mff dot cuni dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 29 Jan 2004 23:44:15 +0100
- Subject: [tree-ssa] Unlink_block x gc
Hello,
prev_bb and next_bb are marked as chain_next and chain_prev; thus they
must always form a double-linked list, and therefore we must reset them
in the unlink_block.
Commited as obvious.
Zdenek
* cfg.c (unlink_block): Reset prev_bb and next_bb.
Index: cfg.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cfg.c,v
retrieving revision 1.34.2.19.2.2
diff -c -3 -p -r1.34.2.19.2.2 cfg.c
*** cfg.c 21 Jan 2004 09:24:58 -0000 1.34.2.19.2.2
--- cfg.c 29 Jan 2004 22:34:45 -0000
*************** unlink_block (basic_block b)
*** 229,234 ****
--- 229,236 ----
{
b->next_bb->prev_bb = b->prev_bb;
b->prev_bb->next_bb = b->next_bb;
+ b->prev_bb = NULL;
+ b->next_bb = NULL;
}
/* Sequentially order blocks and compact the arrays. */