diff options
author | David Malcolm <dmalcolm@redhat.com> | 2013-12-09 20:17:32 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2013-12-09 20:17:32 +0000 |
commit | c5f05f68b215255ec43de8ddf324b19efaefcd00 (patch) | |
tree | 7336db6c5036647519857a17f07f6a705b857545 /gcc/cfgrtl.c | |
parent | 06e28de223648085ab8a265fe5f2b7dafaf22ad4 (diff) | |
download | gcc-c5f05f68b215255ec43de8ddf324b19efaefcd00.zip gcc-c5f05f68b215255ec43de8ddf324b19efaefcd00.tar.gz gcc-c5f05f68b215255ec43de8ddf324b19efaefcd00.tar.bz2 |
Eliminate basic_block_info macro.
gcc/
* basic-block.h (basic_block_info): Eliminate macro.
* cfgrtl.c (rtl_create_basic_block): Replace uses of
basic_block_info with basic_block_info_for_fn, making uses
of cfun be explicit.
* tree-cfg.c (build_gimple_cfg, create_bb): Likewise.
From-SVN: r205823
Diffstat (limited to 'gcc/cfgrtl.c')
-rw-r--r-- | gcc/cfgrtl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c index de110f4..772d939 100644 --- a/gcc/cfgrtl.c +++ b/gcc/cfgrtl.c @@ -355,10 +355,10 @@ rtl_create_basic_block (void *headp, void *endp, basic_block after) basic_block bb; /* Grow the basic block array if needed. */ - if ((size_t) last_basic_block >= basic_block_info->length ()) + if ((size_t) last_basic_block >= basic_block_info_for_fn (cfun)->length ()) { size_t new_size = last_basic_block + (last_basic_block + 3) / 4; - vec_safe_grow_cleared (basic_block_info, new_size); + vec_safe_grow_cleared (basic_block_info_for_fn (cfun), new_size); } n_basic_blocks_for_fn (cfun)++; |