aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfg.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2013-12-09 20:02:33 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2013-12-09 20:02:33 +0000
commit557c4b493bcfbda45babb0752455798328849630 (patch)
tree28af56a0f26a4692c16613add501bc7186b7be8e /gcc/cfg.c
parentea19eb9fba65626b303781048830f5db22a1cfa5 (diff)
downloadgcc-557c4b493bcfbda45babb0752455798328849630.zip
gcc-557c4b493bcfbda45babb0752455798328849630.tar.gz
gcc-557c4b493bcfbda45babb0752455798328849630.tar.bz2
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. From-SVN: r205821
Diffstat (limited to 'gcc/cfg.c')
-rw-r--r--gcc/cfg.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/cfg.c b/gcc/cfg.c
index 786fe48..f386168 100644
--- a/gcc/cfg.c
+++ b/gcc/cfg.c
@@ -153,8 +153,8 @@ compact_blocks (void)
{
int i;
- SET_BASIC_BLOCK (ENTRY_BLOCK, ENTRY_BLOCK_PTR_FOR_FN (cfun));
- SET_BASIC_BLOCK (EXIT_BLOCK, EXIT_BLOCK_PTR_FOR_FN (cfun));
+ SET_BASIC_BLOCK_FOR_FN (cfun, ENTRY_BLOCK, ENTRY_BLOCK_PTR_FOR_FN (cfun));
+ SET_BASIC_BLOCK_FOR_FN (cfun, EXIT_BLOCK, EXIT_BLOCK_PTR_FOR_FN (cfun));
if (df)
df_compact_blocks ();
@@ -165,14 +165,14 @@ 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++;
}
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);
}
last_basic_block = n_basic_blocks_for_fn (cfun);
}
@@ -183,7 +183,7 @@ void
expunge_block (basic_block b)
{
unlink_block (b);
- SET_BASIC_BLOCK (b->index, NULL);
+ SET_BASIC_BLOCK_FOR_FN (cfun, b->index, NULL);
n_basic_blocks_for_fn (cfun)--;
/* We should be able to ggc_free here, but we are not.
The dead SSA_NAMES are left pointing to dead statements that are pointing