summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-live.h
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2006-04-12 17:19:23 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2006-04-12 17:19:23 +0000
commit8c02312e4b30cbd0ff1a8d32bf567a0016e9283e (patch)
tree11f379d8dd19e84315d94096c16870aa09611e0c /gcc/tree-ssa-live.h
parent9bbeacce04ed0d151f2f3d58fe709ae1ce2159dc (diff)
downloadgcc-8c02312e4b30cbd0ff1a8d32bf567a0016e9283e.tar.gz
* Makefile.in (TREE_SSA_LIVE_H): Add vecprim.h.
* tree-ssa-live.c (tpa_init, tpa_remove_partition, tpa_delete, tpa_compact, root_var_init, type_var_init): Use VEC instead of VARRAY. * tree-ssa-live.h: Include vecprim.h. (tree_partition_associator_d): Change the type of first_partition to VEC(int,heap) *. (tpa_first_partition): Use VEC instead of VARRAY. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112893 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-live.h')
-rw-r--r--gcc/tree-ssa-live.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/tree-ssa-live.h b/gcc/tree-ssa-live.h
index 2c4127402fa..f0c59028e19 100644
--- a/gcc/tree-ssa-live.h
+++ b/gcc/tree-ssa-live.h
@@ -24,6 +24,7 @@ Boston, MA 02110-1301, USA. */
#define _TREE_SSA_LIVE_H 1
#include "partition.h"
+#include "vecprim.h"
/* Used to create the variable mapping when we go out of SSA form. */
typedef struct _var_map
@@ -338,7 +339,7 @@ make_live_on_entry (tree_live_info_p live, basic_block bb , int p)
typedef struct tree_partition_associator_d
{
VEC(tree,heap) *trees;
- varray_type first_partition;
+ VEC(int,heap) *first_partition;
int *next_partition;
int *partition_to_tree_map;
int num_trees;
@@ -384,7 +385,7 @@ tpa_tree (tpa_p tpa, int i)
static inline int
tpa_first_partition (tpa_p tpa, int i)
{
- return VARRAY_INT (tpa->first_partition, i);
+ return VEC_index (int, tpa->first_partition, i);
}