diff options
author | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-12-05 00:20:43 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-12-05 00:20:43 +0000 |
commit | a6873608446d86909cf4a60fea355091b1297e8d (patch) | |
tree | 140a755d82250e682ae8859b95daa46daee2869d /gcc/varray.c | |
parent | 4ce893648569539981c77058e89108a9461217ab (diff) | |
download | gcc-a6873608446d86909cf4a60fea355091b1297e8d.zip gcc-a6873608446d86909cf4a60fea355091b1297e8d.tar.gz gcc-a6873608446d86909cf4a60fea355091b1297e8d.tar.bz2 |
varray.h (varray_head_tag): Add elements_used.
* varray.h (varray_head_tag): Add elements_used.
(VARRAY_PUSH): New macro.
(VARRAY_POP): Likewise.
(VARRAY_TOP): Likewise.
Add variants of VARRAY_PUSH and VARRAY_POP for all varray element
types.
* varray.c (varray_init): Initialize elements_used.
* Makefile.in (BASIC_BLOCK_H): Add varray.h.
(INTEGRATE_H): New variable.
(integrate.o): Depend on INTEGRATE_H.
(unroll.o): Likewise.
From-SVN: r30777
Diffstat (limited to 'gcc/varray.c')
-rw-r--r-- | gcc/varray.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/varray.c b/gcc/varray.c index 34ce80b..5169136 100644 --- a/gcc/varray.c +++ b/gcc/varray.c @@ -40,8 +40,9 @@ varray_init (num_elements, element_size, name) varray_type ptr = (varray_type) xcalloc (VARRAY_HDR_SIZE + data_size, 1); ptr->num_elements = num_elements; + ptr->elements_used = 0; ptr->element_size = element_size; - ptr->name = name; + ptr->name = name; return ptr; } |