diff options
author | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-25 09:30:04 +0000 |
---|---|---|
committer | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-25 09:30:04 +0000 |
commit | ae85a37ae0290595cf4b6b5729877a8f080d4d7e (patch) | |
tree | 19da8d45d735bf932467e92c989a251abed7bb43 /gcc/flow.c | |
parent | 42e3bfc054b48393e3473eea5ea7a2a75fdfae22 (diff) | |
download | gcc-ae85a37ae0290595cf4b6b5729877a8f080d4d7e.tar.gz |
* basic-block.h (OBSTACK_ALLOC_REG_SET): Rename to ...
(ALLOC_REG_SET): ... here.
(FREE_REG_SET): Adjust.
(XMALLOC_REG_SET, XFREE_REG_SET): Remove.
* bb-reorder.c (fix_crossing_conditional_branches): Adjust.
* cfglayout.c (cfg_layout_duplicate_bb): Adjust.
* cfgrtl.c (rtl_split_block, rtl_split_edge,
safe_insert_insn_on_edge, cfg_layout_split_edge): Adjust.
* flow.c (update_life_info, calculate_global_regs_live,
allocate_bb_life_data, init_propagate_block_info): Adjust.
* global.c (build_insn_chain): Adjust.
* ifcvt.c (dead_or_predicable): Adjust.
* loop-iv.c (simplify_using_initial_values): Adjust.
* recog.c (peephole2_optimize): Adjust.
* sched-deps.c (init_deps_global): Adjust.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91279 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/flow.c')
-rw-r--r-- | gcc/flow.c | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/gcc/flow.c b/gcc/flow.c index e79773a6eb9..cc2c1988767 100644 --- a/gcc/flow.c +++ b/gcc/flow.c @@ -575,7 +575,7 @@ update_life_info (sbitmap blocks, enum update_life_extent extent, int stabilized_prop_flags = prop_flags; basic_block bb; - tmp = OBSTACK_ALLOC_REG_SET (®_obstack); + tmp = ALLOC_REG_SET (®_obstack); ndead = 0; if ((prop_flags & PROP_REG_INFO) && !reg_deaths) @@ -1033,9 +1033,9 @@ calculate_global_regs_live (sbitmap blocks_in, sbitmap blocks_out, int flags) gcc_assert (!bb->aux); #endif - tmp = OBSTACK_ALLOC_REG_SET (®_obstack); - new_live_at_end = OBSTACK_ALLOC_REG_SET (®_obstack); - invalidated_by_call = OBSTACK_ALLOC_REG_SET (®_obstack); + tmp = ALLOC_REG_SET (®_obstack); + new_live_at_end = ALLOC_REG_SET (®_obstack); + invalidated_by_call = ALLOC_REG_SET (®_obstack); /* Inconveniently, this is only readily available in hard reg set form. */ for (i = 0; i < FIRST_PSEUDO_REGISTER; ++i) @@ -1189,8 +1189,10 @@ calculate_global_regs_live (sbitmap blocks_in, sbitmap blocks_out, int flags) if (local_sets[bb->index - (INVALID_BLOCK + 1)] == NULL) { - local_sets[bb->index - (INVALID_BLOCK + 1)] = XMALLOC_REG_SET (); - cond_local_sets[bb->index - (INVALID_BLOCK + 1)] = XMALLOC_REG_SET (); + local_sets[bb->index - (INVALID_BLOCK + 1)] + = ALLOC_REG_SET (®_obstack); + cond_local_sets[bb->index - (INVALID_BLOCK + 1)] + = ALLOC_REG_SET (®_obstack); rescan = 1; } else @@ -1294,16 +1296,16 @@ calculate_global_regs_live (sbitmap blocks_in, sbitmap blocks_out, int flags) EXECUTE_IF_SET_IN_SBITMAP (blocks_out, 0, i, { basic_block bb = BASIC_BLOCK (i); - XFREE_REG_SET (local_sets[bb->index - (INVALID_BLOCK + 1)]); - XFREE_REG_SET (cond_local_sets[bb->index - (INVALID_BLOCK + 1)]); + FREE_REG_SET (local_sets[bb->index - (INVALID_BLOCK + 1)]); + FREE_REG_SET (cond_local_sets[bb->index - (INVALID_BLOCK + 1)]); }); } else { FOR_EACH_BB (bb) { - XFREE_REG_SET (local_sets[bb->index - (INVALID_BLOCK + 1)]); - XFREE_REG_SET (cond_local_sets[bb->index - (INVALID_BLOCK + 1)]); + FREE_REG_SET (local_sets[bb->index - (INVALID_BLOCK + 1)]); + FREE_REG_SET (cond_local_sets[bb->index - (INVALID_BLOCK + 1)]); } } @@ -1436,11 +1438,11 @@ allocate_bb_life_data (void) FOR_BB_BETWEEN (bb, ENTRY_BLOCK_PTR, NULL, next_bb) { - bb->global_live_at_start = OBSTACK_ALLOC_REG_SET (®_obstack); - bb->global_live_at_end = OBSTACK_ALLOC_REG_SET (®_obstack); + bb->global_live_at_start = ALLOC_REG_SET (®_obstack); + bb->global_live_at_end = ALLOC_REG_SET (®_obstack); } - regs_live_at_setjmp = OBSTACK_ALLOC_REG_SET (®_obstack); + regs_live_at_setjmp = ALLOC_REG_SET (®_obstack); } void @@ -1843,7 +1845,7 @@ init_propagate_block_info (basic_block bb, regset live, regset local_set, if (JUMP_P (BB_END (bb)) && any_condjump_p (BB_END (bb))) { - regset diff = OBSTACK_ALLOC_REG_SET (®_obstack); + regset diff = ALLOC_REG_SET (®_obstack); basic_block bb_true, bb_false; unsigned i; |