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

From-SVN: r62998
This commit is contained in:
Jan Hubicka 2003-02-17 16:21:32 +01:00 committed by Jan Hubicka
parent 6dc503669c
commit 35a3fa09ad
2 changed files with 15 additions and 3 deletions

View File

@ -1,3 +1,7 @@
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.

View File

@ -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;
}
}