Commit 7c57be85 by Zdenek Dvorak Committed by Zdenek Dvorak

re PR tree-optimization/31526 (ICE in alloc_aux_for_block())

	PR tree-optimization/31526
	* tree-inline.c (copy_cfg_body): Use last_basic_block instead of
	n_basic_blocks to find newly added blocks.

From-SVN: r123699
parent a93fc289
2007-04-10 Zdenek Dvorak <dvorakz@suse.cz>
PR tree-optimization/31526
* tree-inline.c (copy_cfg_body): Use last_basic_block instead of
n_basic_blocks to find newly added blocks.
2007-04-10 Uros Bizjak <ubizjak@gmail.com> 2007-04-10 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.md (fix_trunc<mode>di_sse): Remove "x" from "xm" * config/i386/i386.md (fix_trunc<mode>di_sse): Remove "x" from "xm"
......
...@@ -1205,7 +1205,7 @@ copy_cfg_body (copy_body_data * id, gcov_type count, int frequency, ...@@ -1205,7 +1205,7 @@ copy_cfg_body (copy_body_data * id, gcov_type count, int frequency,
new->aux = bb; new->aux = bb;
} }
last = n_basic_blocks; last = last_basic_block;
/* Now that we've duplicated the blocks, duplicate their edges. */ /* Now that we've duplicated the blocks, duplicate their edges. */
FOR_ALL_BB_FN (bb, cfun_to_copy) FOR_ALL_BB_FN (bb, cfun_to_copy)
copy_edges_for_bb (bb, count_scale); copy_edges_for_bb (bb, count_scale);
...@@ -1219,7 +1219,7 @@ copy_cfg_body (copy_body_data * id, gcov_type count, int frequency, ...@@ -1219,7 +1219,7 @@ copy_cfg_body (copy_body_data * id, gcov_type count, int frequency,
} }
/* Zero out AUX fields of newly created block during EH edge /* Zero out AUX fields of newly created block during EH edge
insertion. */ insertion. */
for (; last < n_basic_blocks; last++) for (; last < last_basic_block; last++)
BASIC_BLOCK (last)->aux = NULL; BASIC_BLOCK (last)->aux = NULL;
entry_block_map->aux = NULL; entry_block_map->aux = NULL;
exit_block_map->aux = NULL; exit_block_map->aux = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment