This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]