diff options
author | Dirk Mueller <dmueller@suse.de> | 2006-11-16 22:07:30 +0000 |
---|---|---|
committer | Dirk Mueller <mueller@gcc.gnu.org> | 2006-11-16 22:07:30 +0000 |
commit | b9eae1a974338734e5dc40a11986716571a99050 (patch) | |
tree | 20a6800e6ec0f98f64180f37d80e0cf6783b98b6 /gcc/tree-ssa-ccp.c | |
parent | a9e64c639ef604bfc2d734b3973dfc0953875877 (diff) | |
download | gcc-b9eae1a974338734e5dc40a11986716571a99050.zip gcc-b9eae1a974338734e5dc40a11986716571a99050.tar.gz gcc-b9eae1a974338734e5dc40a11986716571a99050.tar.bz2 |
tree-vrp.c (get_value_range): Use XCNEW instead of XNEW and memset.
2006-11-16 Dirk Mueller <dmueller@suse.de>
* tree-vrp.c (get_value_range): Use XCNEW instead
of XNEW and memset.
(insert_range_assertions): Use XCNEWVEC instead
of XNEWVEC and memset.
(vrp_initialize): Same.
(vrp_finalize): Same.
* tree-ssa-ccp.c (ccp_initialize): Same.
* predict.c (tree_bb_level_predictions): Same.
* calls.c (expand_call): Same.
* tree-ssa-copy.c (init_copy_prop): Same.
(fini_copy_prop): Same.
* tree-ssa-alias.c (get_ptr_info): Use GGC_CNEW instead
of GGC_NEW and memset.
* name-lookup.c (begin_scope): Use GGC_CNEW instead of
GGC_NEW and memset.
From-SVN: r118903
Diffstat (limited to 'gcc/tree-ssa-ccp.c')
-rw-r--r-- | gcc/tree-ssa-ccp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/tree-ssa-ccp.c b/gcc/tree-ssa-ccp.c index ca96471..9dd63fe 100644 --- a/gcc/tree-ssa-ccp.c +++ b/gcc/tree-ssa-ccp.c @@ -551,8 +551,7 @@ ccp_initialize (void) { basic_block bb; - const_val = XNEWVEC (prop_value_t, num_ssa_names); - memset (const_val, 0, num_ssa_names * sizeof (*const_val)); + const_val = XCNEWVEC (prop_value_t, num_ssa_names); /* Initialize simulation flags for PHI nodes and statements. */ FOR_EACH_BB (bb) |