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-alias.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-alias.c')
-rw-r--r-- | gcc/tree-ssa-alias.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c index cf317de..18db998 100644 --- a/gcc/tree-ssa-alias.c +++ b/gcc/tree-ssa-alias.c @@ -2465,8 +2465,7 @@ get_ptr_info (tree t) pi = SSA_NAME_PTR_INFO (t); if (pi == NULL) { - pi = GGC_NEW (struct ptr_info_def); - memset ((void *)pi, 0, sizeof (*pi)); + pi = GGC_CNEW (struct ptr_info_def); SSA_NAME_PTR_INFO (t) = pi; } |