diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-07 14:30:25 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-07 14:30:25 +0000 |
commit | 3e790786cfb2c88061ebc1faad8273489bf3c388 (patch) | |
tree | 562f4507f40d0b9cd1ffaff1ad4960266f21f391 /gcc/flow.c | |
parent | aed164c3b749041e52ddb15d0114078e9dbeb7ae (diff) | |
download | gcc-3e790786cfb2c88061ebc1faad8273489bf3c388.tar.gz |
* sbitmap.h (sbitmap_iterator, sbitmap_iter_init,
sbitmap_iter_cond, sbitmap_iter_next): New.
* bt-load.c, cfganal.c, combine.c, ddg.c, flow.c,
modulo-sched.c, sbitmap.c, sched-rgn.c, tree-into-ssa.c,
tree-outof-ssa.c, tree-ssa-alias.c, tree-ssa-live.c: Update
uses of EXECUTE_IF_SET_IN_SBITMAP to the new style.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100709 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/flow.c')
-rw-r--r-- | gcc/flow.c | 44 |
1 files changed, 27 insertions, 17 deletions
diff --git a/gcc/flow.c b/gcc/flow.c index 9eae74b4ad0..b73ac4d09bc 100644 --- a/gcc/flow.c +++ b/gcc/flow.c @@ -653,7 +653,9 @@ update_life_info (sbitmap blocks, enum update_life_extent extent, if (blocks) { - EXECUTE_IF_SET_IN_SBITMAP (blocks, 0, i, + sbitmap_iterator sbi; + + EXECUTE_IF_SET_IN_SBITMAP (blocks, 0, i, sbi) { bb = BASIC_BLOCK (i); @@ -662,7 +664,7 @@ update_life_info (sbitmap blocks, enum update_life_extent extent, if (extent == UPDATE_LIFE_LOCAL) verify_local_live_at_start (tmp, bb); - }); + }; } else { @@ -1032,7 +1034,7 @@ calculate_global_regs_live (sbitmap blocks_in, sbitmap blocks_out, int flags) In other words, regs that are set only as part of a COND_EXEC. */ regset *cond_local_sets; - int i; + unsigned int i; /* Some passes used to forget clear aux field of basic block causing sick behavior here. */ @@ -1406,12 +1408,14 @@ calculate_global_regs_live (sbitmap blocks_in, sbitmap blocks_out, int flags) if (blocks_out) { - EXECUTE_IF_SET_IN_SBITMAP (blocks_out, 0, i, + sbitmap_iterator sbi; + + EXECUTE_IF_SET_IN_SBITMAP (blocks_out, 0, i, sbi) { basic_block bb = BASIC_BLOCK (i); FREE_REG_SET (local_sets[bb->index - (INVALID_BLOCK + 1)]); FREE_REG_SET (cond_local_sets[bb->index - (INVALID_BLOCK + 1)]); - }); + }; } else { @@ -4355,7 +4359,7 @@ int count_or_remove_death_notes (sbitmap blocks, int kill) { int count = 0; - int i; + unsigned int i; basic_block bb; /* This used to be a loop over all the blocks with a membership test @@ -4367,10 +4371,12 @@ count_or_remove_death_notes (sbitmap blocks, int kill) than an sbitmap. */ if (blocks) { - EXECUTE_IF_SET_IN_SBITMAP (blocks, 0, i, + sbitmap_iterator sbi; + + EXECUTE_IF_SET_IN_SBITMAP (blocks, 0, i, sbi) { count += count_or_remove_death_notes_bb (BASIC_BLOCK (i), kill); - }); + }; } else { @@ -4450,7 +4456,6 @@ static void clear_log_links (sbitmap blocks) { rtx insn; - int i; if (!blocks) { @@ -4459,15 +4464,20 @@ clear_log_links (sbitmap blocks) free_INSN_LIST_list (&LOG_LINKS (insn)); } else - EXECUTE_IF_SET_IN_SBITMAP (blocks, 0, i, - { - basic_block bb = BASIC_BLOCK (i); + { + unsigned int i; + sbitmap_iterator sbi; - for (insn = BB_HEAD (bb); insn != NEXT_INSN (BB_END (bb)); - insn = NEXT_INSN (insn)) - if (INSN_P (insn)) - free_INSN_LIST_list (&LOG_LINKS (insn)); - }); + EXECUTE_IF_SET_IN_SBITMAP (blocks, 0, i, sbi) + { + basic_block bb = BASIC_BLOCK (i); + + for (insn = BB_HEAD (bb); insn != NEXT_INSN (BB_END (bb)); + insn = NEXT_INSN (insn)) + if (INSN_P (insn)) + free_INSN_LIST_list (&LOG_LINKS (insn)); + } + } } /* Given a register bitmap, turn on the bits in a HARD_REG_SET that |