summaryrefslogtreecommitdiff
path: root/gcc/cfgbuild.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/cfgbuild.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/cfgbuild.c')
-rw-r--r--gcc/cfgbuild.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/cfgbuild.c b/gcc/cfgbuild.c
index 967aa6cb7fc..3d05ebca0b7 100644
--- a/gcc/cfgbuild.c
+++ b/gcc/cfgbuild.c
@@ -543,9 +543,7 @@ find_basic_blocks (rtx f)
actually lay them out. */
basic_block_info = VEC_alloc (basic_block, gc, n_basic_blocks);
- VEC_safe_grow (basic_block, gc, basic_block_info, n_basic_blocks);
- memset (VEC_address (basic_block, basic_block_info), 0,
- sizeof (basic_block) * n_basic_blocks);
+ VEC_safe_grow_cleared (basic_block, gc, basic_block_info, n_basic_blocks);
SET_BASIC_BLOCK (ENTRY_BLOCK, ENTRY_BLOCK_PTR);
SET_BASIC_BLOCK (EXIT_BLOCK, EXIT_BLOCK_PTR);