aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfglayout.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2005-05-03 16:35:17 +0000
committerKazu Hirata <kazu@cs.umass.edu>2005-05-03 16:35:17 +0000
commitae482fa4f8c288cb53a77b32bae5f585fb4c6cab (patch)
treedc949896ebaf13e4a9dc75f5683d03a9940024b9 /gcc/cfglayout.c
parent306fd779cf3f3715d703413a8dcece43fac635d2 (diff)
* cfglayout.c (block_locators_blocks,
insn_locators_initialize, insn_scope): Use VEC instead of VARRAY. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@99162 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfglayout.c')
-rw-r--r--gcc/cfglayout.c8
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. */