This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: patch for flow.c: flow_delete_insn
On Wed, May 10, 2000 at 12:01:35PM +0200, Franz Sirl wrote:
> /home/fsirl/cvsx/gccm/gcc/cppinit.c:323: number of bb notes in insn chain
> (8) != n_basic_blocks (7)
Yes, it's amazing the things enable checking finds. Why I
don't just leave it on, I don't know. Probably I just forget
to consistently add the thing to the configure line...
Bootstrapped alphaev6, which showed this same problem.
r~
* flow.c (find_basic_blocks_1): Remove any spare bb_note
after completion.
Index: flow.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/flow.c,v
retrieving revision 1.282
diff -c -p -d -r1.282 flow.c
*** flow.c 2000/05/10 05:48:40 1.282
--- flow.c 2000/05/10 17:40:25
*************** find_basic_blocks_1 (f)
*** 739,744 ****
--- 739,746 ----
if (head != NULL_RTX)
create_basic_block (i++, head, end, bb_note);
+ else if (bb_note)
+ flow_delete_insn (bb_note);
if (i != n_basic_blocks)
abort ();