summaryrefslogtreecommitdiff
path: root/gcc/tree-complex.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@gcc.gnu.org>2007-01-02 18:06:37 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2007-01-02 18:06:37 +0000
commit61465e7563e79c8ce885f11f98b3ab639ddb0700 (patch)
tree855a61405368a6c9dd7ac4aa327081a187763a99 /gcc/tree-complex.c
parentfbc8d2d30e4c1987e85e2d3fda043f2ae24c7ad1 (diff)
downloadgcc-61465e7563e79c8ce885f11f98b3ab639ddb0700.tar.gz
Revert:
2007-01-02 Kazu Hirata <kazu@codesourcery.com> * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared. * cfgbuild.c (find_basic_blocks): Likewise. * cfgrtl.c (rtl_create_basic_block): Likewise. * function.c (temp_slots_at_level): Likewise. * reg-stack.c (stack_regs_mentioned): Likewise. * regclass.c (allocate_reg_info): Likewise. * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb, set_bb_for_stmt, move_block_to_fn): Likewise. * tree-complex.c (tree_lower_complex): Likewise. * vec.h (VEC_safe_grow_cleared): New. From-SVN: r120351
Diffstat (limited to 'gcc/tree-complex.c')
-rw-r--r--gcc/tree-complex.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/gcc/tree-complex.c b/gcc/tree-complex.c
index f985503a835..c3f4e0453ad 100644
--- a/gcc/tree-complex.c
+++ b/gcc/tree-complex.c
@@ -1492,8 +1492,10 @@ tree_lower_complex (void)
return 0;
complex_lattice_values = VEC_alloc (complex_lattice_t, heap, num_ssa_names);
- VEC_safe_grow_cleared (complex_lattice_t, heap,
- complex_lattice_values, num_ssa_names);
+ VEC_safe_grow (complex_lattice_t, heap,
+ complex_lattice_values, num_ssa_names);
+ memset (VEC_address (complex_lattice_t, complex_lattice_values), 0,
+ num_ssa_names * sizeof(complex_lattice_t));
init_parameter_lattice_values ();
ssa_propagate (complex_visit_stmt, complex_visit_phi);
@@ -1502,8 +1504,9 @@ tree_lower_complex (void)
int_tree_map_eq, free);
complex_ssa_name_components = VEC_alloc (tree, heap, 2*num_ssa_names);
- VEC_safe_grow_cleared (tree, heap, complex_ssa_name_components,
- 2 * num_ssa_names);
+ VEC_safe_grow (tree, heap, complex_ssa_name_components, 2*num_ssa_names);
+ memset (VEC_address (tree, complex_ssa_name_components), 0,
+ 2 * num_ssa_names * sizeof(tree));
update_parameter_components ();