This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[cfgbranch] cfgcleanup - Fix debug output
- From: Josef Zlomek <zlomj9am at artax dot karlin dot mff dot cuni dot cz>
- To: gcc-pdo at atrey dot karlin dot mff dot cuni dot cz, gcc-patches at gcc dot gnu dot org
- Date: Sat, 15 Dec 2001 13:11:46 +0100
- Subject: [cfgbranch] cfgcleanup - Fix debug output
Hi,
this patch fixes the debug output when merging 2 blocks without moving.
2001-12-15 Josef Zlomek <zlomek@matfyz.cz>
* cfgcleanup.c (merge_blocks): Fix debug output.
*** cfgcleanup.old.c Sat Dec 15 13:08:25 2001
--- cfgcleanup.new.c Sat Dec 15 13:08:05 2001
*************** merge_blocks (e, b, c, mode)
*** 622,627 ****
--- 622,628 ----
/* If B has a fallthru edge to C, no need to move anything. */
if (e->flags & EDGE_FALLTHRU)
{
+ int b_index = b->index, c_index = c->index;
/* We need to update liveness in case C already has broken liveness
or B ends by conditional jump to next instructions that will be
removed. */
*************** merge_blocks (e, b, c, mode)
*** 634,640 ****
if (rtl_dump_file)
{
fprintf (rtl_dump_file, "Merged %d and %d without moving.\n",
! b->index, c->index);
}
return true;
--- 635,641 ----
if (rtl_dump_file)
{
fprintf (rtl_dump_file, "Merged %d and %d without moving.\n",
! b_index, c_index);
}
return true;