diff options
Diffstat (limited to 'gcc/varray.h')
-rw-r--r-- | gcc/varray.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/varray.h b/gcc/varray.h index d08bfa94ca2..69482a9a315 100644 --- a/gcc/varray.h +++ b/gcc/varray.h @@ -76,6 +76,7 @@ typedef union varray_data_tag { struct reg_info_def *reg[1]; struct const_equiv_data const_equiv[1]; struct basic_block_def *bb[1]; + struct elt_list *te[1]; } varray_data; /* Virtual array of pointers header. */ @@ -152,6 +153,9 @@ extern varray_type varray_init PARAMS ((size_t, size_t, const char *)); #define VARRAY_BB_INIT(va, num, name) \ va = varray_init (num, sizeof (struct basic_block_def *), name) +#define VARRAY_ELT_LIST_INIT(va, num, name) \ + va = varray_init (num, sizeof (struct elt_list *), name) + /* Free up memory allocated by the virtual array, but do not free any of the elements involved. */ #define VARRAY_FREE(vp) \ @@ -219,6 +223,7 @@ extern void varray_check_failed PARAMS ((varray_type, size_t, #define VARRAY_REG(VA, N) VARRAY_CHECK (VA, N, reg) #define VARRAY_CONST_EQUIV(VA, N) VARRAY_CHECK (VA, N, const_equiv) #define VARRAY_BB(VA, N) VARRAY_CHECK (VA, N, bb) +#define VARRAY_ELT_LIST(VA, N) VARRAY_CHECK (VA, N, te) /* Push a new element on the end of VA, extending it if necessary. */ #define VARRAY_PUSH_CHAR(VA, X) VARRAY_PUSH (VA, c, X) |