diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-03 16:35:17 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-03 16:35:17 +0000 |
commit | 9f0fda782abd02df2a2db8c6f66d9728b2f54973 (patch) | |
tree | dc949896ebaf13e4a9dc75f5683d03a9940024b9 /gcc/cfglayout.c | |
parent | 31c59bca2fb5735d55ab94b3b3ebaab3f6a7cc28 (diff) | |
download | gcc-9f0fda782abd02df2a2db8c6f66d9728b2f54973.tar.gz |
* cfglayout.c (block_locators_blocks,
insn_locators_initialize, insn_scope): Use VEC instead of
VARRAY.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99162 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfglayout.c')
-rw-r--r-- | gcc/cfglayout.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cfglayout.c b/gcc/cfglayout.c index d71f0114a0f..3a701001b8c 100644 --- a/gcc/cfglayout.c +++ b/gcc/cfglayout.c @@ -230,7 +230,7 @@ record_effective_endpoints (void) locator greater than corresponding block_locators_locs value and smaller than the following one. Similarly for the other properties. */ static GTY(()) varray_type block_locators_locs; -static GTY(()) varray_type block_locators_blocks; +static GTY(()) VEC(tree,gc) *block_locators_blocks; static GTY(()) varray_type line_locators_locs; static GTY(()) varray_type line_locators_lines; static GTY(()) varray_type file_locators_locs; @@ -255,7 +255,7 @@ insn_locators_initialize (void) prologue_locator = epilogue_locator = 0; VARRAY_INT_INIT (block_locators_locs, 32, "block_locators_locs"); - VARRAY_TREE_INIT (block_locators_blocks, 32, "block_locators_blocks"); + block_locators_blocks = VEC_alloc (tree, gc, 32); VARRAY_INT_INIT (line_locators_locs, 32, "line_locators_locs"); VARRAY_INT_INIT (line_locators_lines, 32, "line_locators_lines"); VARRAY_INT_INIT (file_locators_locs, 32, "file_locators_locs"); @@ -294,7 +294,7 @@ insn_locators_initialize (void) { loc++; VARRAY_PUSH_INT (block_locators_locs, loc); - VARRAY_PUSH_TREE (block_locators_blocks, block); + VEC_safe_push (tree, gc, block_locators_blocks, block); last_block = block; } if (last_line_number != line_number) @@ -435,7 +435,7 @@ insn_scope (rtx insn) break; } } - return VARRAY_TREE (block_locators_blocks, min); + return VEC_index (tree, block_locators_blocks, min); } /* Return line number of the statement specified by the locator. */ |