diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-01-02 18:06:37 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-01-02 18:06:37 +0000 |
commit | 5ebf7810cd29c83954f1b5522d2098ff758a62f0 (patch) | |
tree | 855a61405368a6c9dd7ac4aa327081a187763a99 /gcc/tree-complex.c | |
parent | 60a0513e1edb1f19485faf0a68810f49bf7f3d2b (diff) | |
download | gcc-5ebf7810cd29c83954f1b5522d2098ff758a62f0.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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120351 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-complex.c')
-rw-r--r-- | gcc/tree-complex.c | 11 |
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 (); |