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]

[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;


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