aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2005-05-07 02:29:34 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2005-05-07 02:29:34 +0000
commit9857866d53d6675bfad833ac3a0285fd9c2cba87 (patch)
tree9e44532889ee3de07440e82a17c4a52c51902938 /gcc/cp/decl.c
parent8d9e4906a8d38d856f9a020dcb6f0d7b643b854b (diff)
downloadgcc-9857866d53d6675bfad833ac3a0285fd9c2cba87.zip
gcc-9857866d53d6675bfad833ac3a0285fd9c2cba87.tar.gz
gcc-9857866d53d6675bfad833ac3a0285fd9c2cba87.tar.bz2
decl.c (wrapup_globals_for_namespace): Use VEC instead of VARRAY.
* decl.c (wrapup_globals_for_namespace): Use VEC instead of VARRAY. * name-lookup.c (add_decl_to_level, begin_scope): Likewise. * name-lookup.h (cp_binding_level): Change the type of static_decls to VEC(tree,gc)*. From-SVN: r99346
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r--gcc/cp/decl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index eb3bf4d..15f74c0 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -786,9 +786,9 @@ int
wrapup_globals_for_namespace (tree namespace, void* data)
{
struct cp_binding_level *level = NAMESPACE_LEVEL (namespace);
- varray_type statics = level->static_decls;
- tree *vec = &VARRAY_TREE (statics, 0);
- int len = VARRAY_ACTIVE_SIZE (statics);
+ VEC(tree,gc) *statics = level->static_decls;
+ tree *vec = VEC_address (tree, statics);
+ int len = VEC_length (tree, statics);
int last_time = (data != 0);
if (last_time)