summaryrefslogtreecommitdiff
path: root/gcc/tree-complex.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@gcc.gnu.org>2007-01-03 08:04:01 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2007-01-03 08:04:01 +0000
commita590ac6560e0100d139c98367367bf7e0a467df5 (patch)
treeaadfa1db2616271ff973c978a56b4690b7aefe12 /gcc/tree-complex.c
parent7bda5cc2e632d9f1ab1379bb94fbb226d13afc55 (diff)
downloadgcc-a590ac6560e0100d139c98367367bf7e0a467df5.tar.gz
alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
* 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: r120386
Diffstat (limited to 'gcc/tree-complex.c')
-rw-r--r--gcc/tree-complex.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/gcc/tree-complex.c b/gcc/tree-complex.c
index c3f4e0453ad..f985503a835 100644
--- a/gcc/tree-complex.c
+++ b/gcc/tree-complex.c
@@ -1492,10 +1492,8 @@ tree_lower_complex (void)
return 0;
complex_lattice_values = VEC_alloc (complex_lattice_t, heap, 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));
+ VEC_safe_grow_cleared (complex_lattice_t, heap,
+ complex_lattice_values, num_ssa_names);
init_parameter_lattice_values ();
ssa_propagate (complex_visit_stmt, complex_visit_phi);
@@ -1504,9 +1502,8 @@ tree_lower_complex (void)
int_tree_map_eq, free);
complex_ssa_name_components = VEC_alloc (tree, heap, 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));
+ VEC_safe_grow_cleared (tree, heap, complex_ssa_name_components,
+ 2 * num_ssa_names);
update_parameter_components ();