Commit 35a3fa09 by Jan Hubicka Committed by Jan Hubicka

* recog.c (split_all_insns): Fix memory overflow.

From-SVN: r62998
parent 6dc50366
Mon Feb 17 16:16:54 CET 2003 Jan Hubicka <jh@suse.cz>
* recog.c (split_all_insns): Fix memory overflow.
2003-02-17 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.md (cmpqi): Remove mode from compare.
......
......@@ -2882,10 +2882,18 @@ split_all_insns (upd_life)
find_many_sub_basic_blocks (blocks);
while (old_last_basic_block < last_basic_block)
if (old_last_basic_block != last_basic_block && upd_life)
{
SET_BIT (blocks, old_last_basic_block);
old_last_basic_block++;
sbitmap new_blocks = sbitmap_alloc (last_basic_block);
sbitmap_copy (new_blocks, blocks);
while (old_last_basic_block < last_basic_block)
{
SET_BIT (new_blocks, old_last_basic_block);
old_last_basic_block++;
}
sbitmap_free (blocks);
new_blocks = blocks;
}
}
......
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