* recog.c (split_all_insns): Fix memory overflow.
From-SVN: r62998
This commit is contained in:
parent
6dc503669c
commit
35a3fa09ad
@ -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.
|
||||
|
14
gcc/recog.c
14
gcc/recog.c
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user