summaryrefslogtreecommitdiff
path: root/gcc/tree-cfg.c
diff options
context:
space:
mode:
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>2013-12-09 20:02:33 +0000
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>2013-12-09 20:02:33 +0000
commitf64d2ca41cef1e4a297beb231863bd8bb53d37a7 (patch)
tree28af56a0f26a4692c16613add501bc7186b7be8e /gcc/tree-cfg.c
parent3bedbae39765a69f700bebcbd60c6f4d7bf2bdcc (diff)
downloadgcc-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/tree-cfg.c')
-rw-r--r--gcc/tree-cfg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c
index 6c2cc16b8b6..2d7916bde5a 100644
--- a/gcc/tree-cfg.c
+++ b/gcc/tree-cfg.c
@@ -610,7 +610,7 @@ create_bb (void *h, void *e, basic_block after)
}
/* Add the newly created block to the array. */
- SET_BASIC_BLOCK (last_basic_block, bb);
+ SET_BASIC_BLOCK_FOR_FN (cfun, last_basic_block, bb);
n_basic_blocks_for_fn (cfun)++;
last_basic_block++;