diff options
author | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-09 20:02:33 +0000 |
---|---|---|
committer | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-09 20:02:33 +0000 |
commit | f64d2ca41cef1e4a297beb231863bd8bb53d37a7 (patch) | |
tree | 28af56a0f26a4692c16613add501bc7186b7be8e /gcc/df-core.c | |
parent | 3bedbae39765a69f700bebcbd60c6f4d7bf2bdcc (diff) | |
download | gcc-f64d2ca41cef1e4a297beb231863bd8bb53d37a7.tar.gz |
Eliminate SET_BASIC_BLOCK macro.
gcc/
* basic-block.h (SET_BASIC_BLOCK): Eliminate macro.
* cfg.c (compact_blocks): Replace uses of SET_BASIC_BLOCK
with SET_BASIC_BLOCK_FOR_FN, making use of cfun explicit.
(expunge_block): Likewise.
* cfgrtl.c (create_basic_block_structure): Likewise.
* df-core.c (df_compact_blocks, df_bb_replace): Likewise.
* sel-sched.c (create_block_for_bookkeeping): Likewise.
* tree-cfg.c (create_bb): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205821 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/df-core.c')
-rw-r--r-- | gcc/df-core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/df-core.c b/gcc/df-core.c index 37876af7b01..4fb92a96f54 100644 --- a/gcc/df-core.c +++ b/gcc/df-core.c @@ -1601,7 +1601,7 @@ df_compact_blocks (void) i = NUM_FIXED_BLOCKS; FOR_EACH_BB (bb) { - SET_BASIC_BLOCK (i, bb); + SET_BASIC_BLOCK_FOR_FN (cfun, i, bb); bb->index = i; i++; } @@ -1609,7 +1609,7 @@ df_compact_blocks (void) gcc_assert (i == n_basic_blocks_for_fn (cfun)); for (; i < last_basic_block; i++) - SET_BASIC_BLOCK (i, NULL); + SET_BASIC_BLOCK_FOR_FN (cfun, i, NULL); #ifdef DF_DEBUG_CFG if (!df_lr->solutions_dirty) @@ -1645,10 +1645,10 @@ df_bb_replace (int old_index, basic_block new_block) } df_clear_bb_dirty (new_block); - SET_BASIC_BLOCK (old_index, new_block); + SET_BASIC_BLOCK_FOR_FN (cfun, old_index, new_block); new_block->index = old_index; df_set_bb_dirty (BASIC_BLOCK (old_index)); - SET_BASIC_BLOCK (new_block_index, NULL); + SET_BASIC_BLOCK_FOR_FN (cfun, new_block_index, NULL); } |