------- Comment #4 from rakdver at gcc dot gnu dot org  2007-04-10 13:59 -------
This patch fixes the problem:

Index: tree-inline.c
===================================================================
*** tree-inline.c       (revision 123693)
--- tree-inline.c       (working copy)
*************** copy_cfg_body (copy_body_data * id, gcov
*** 1205,1211 ****
        new->aux = bb;
      }

!   last = n_basic_blocks;
    /* Now that we've duplicated the blocks, duplicate their edges.  */
    FOR_ALL_BB_FN (bb, cfun_to_copy)
      copy_edges_for_bb (bb, count_scale);
--- 1205,1211 ----
        new->aux = bb;
      }

!   last = last_basic_block;
    /* Now that we've duplicated the blocks, duplicate their edges.  */
    FOR_ALL_BB_FN (bb, cfun_to_copy)
      copy_edges_for_bb (bb, count_scale);
*************** copy_cfg_body (copy_body_data * id, gcov
*** 1219,1225 ****
      }
    /* Zero out AUX fields of newly created block during EH edge
       insertion. */
!   for (; last < n_basic_blocks; last++)
      BASIC_BLOCK (last)->aux = NULL;
    entry_block_map->aux = NULL;
    exit_block_map->aux = NULL;
--- 1219,1225 ----
      }
    /* Zero out AUX fields of newly created block during EH edge
       insertion. */
!   for (; last < last_basic_block; last++)
      BASIC_BLOCK (last)->aux = NULL;
    entry_block_map->aux = NULL;
    exit_block_map->aux = NULL;


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31526

Reply via email to