]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/config/vxworks.c
This patch rewrites the old VEC macro-based interface into a new one
[thirdparty/gcc.git] / gcc / config / vxworks.c
index 9eeefc0096fc7e5bfd6b7ea8a14ea066ea24c2ff..e3059044d8d6088b9bbab90b29971c1a1483f68b 100644 (file)
@@ -96,23 +96,24 @@ vxworks_emutls_var_fields (tree type, tree *name)
 static tree
 vxworks_emutls_var_init (tree var, tree decl, tree tmpl_addr)
 {
-  VEC(constructor_elt,gc) *v = VEC_alloc (constructor_elt, gc, 3);
+  vec<constructor_elt, va_gc> *v;
+  vec_alloc (v, 3);
   
   tree type = TREE_TYPE (var);
   tree field = TYPE_FIELDS (type);
   
   constructor_elt elt = {field, fold_convert (TREE_TYPE (field), tmpl_addr)};
-  VEC_quick_push (constructor_elt, v, elt);
+  v->quick_push (elt);
   
   field = DECL_CHAIN (field);
   elt.index = field;
   elt.value = build_int_cst (TREE_TYPE (field), 0);
-  VEC_quick_push (constructor_elt, v, elt);
+  v->quick_push (elt);
   
   field = DECL_CHAIN (field);
   elt.index = field;
   elt.value = fold_convert (TREE_TYPE (field), DECL_SIZE_UNIT (decl));
-  VEC_quick_push (constructor_elt, v, elt);
+  v->quick_push (elt);
   
   return build_constructor (type, v);
 }