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/predict.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/predict.c')
-rw-r--r-- | gcc/predict.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/predict.c b/gcc/predict.c index 5dd9e60..6b493e2 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -1211,8 +1211,7 @@ tree_bb_level_predictions (void) basic_block bb; int *heads; - heads = XNEWVEC (int, last_basic_block); - memset (heads, ENTRY_BLOCK, sizeof (int) * last_basic_block); + heads = XCNEWVEC (int, last_basic_block); heads[ENTRY_BLOCK_PTR->next_bb->index] = last_basic_block; apply_return_prediction (heads); |