diff options
author | mueller <mueller@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-16 22:07:30 +0000 |
---|---|---|
committer | mueller <mueller@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-16 22:07:30 +0000 |
commit | 43959b95a6a965a1164c227dbab8e47fd60db7b1 (patch) | |
tree | 20a6800e6ec0f98f64180f37d80e0cf6783b98b6 /gcc/cp | |
parent | feb12e1fb8ba825742d9af907b1d0fe81b8a223b (diff) | |
download | gcc-43959b95a6a965a1164c227dbab8e47fd60db7b1.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118903 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/name-lookup.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 25e444cc921..97844589bab 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2006-11-16 Dirk Mueller <dmueller@suse.de> + + * name-lookup.c (begin_scope): Use GGC_CNEW instead of + GGC_NEW and memset. + 2006-11-13 Roger Sayle <roger@eyesopen.com> * rtti.c (get_pseudo_ti_init): Ensure that the offset field of the diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c index 92d398ae5cc..1eb8f5d90b2 100644 --- a/gcc/cp/name-lookup.c +++ b/gcc/cp/name-lookup.c @@ -1289,11 +1289,11 @@ begin_scope (scope_kind kind, tree entity) if (!ENABLE_SCOPE_CHECKING && free_binding_level) { scope = free_binding_level; + memset (scope, 0, sizeof (cxx_scope)); free_binding_level = scope->level_chain; } else - scope = GGC_NEW (cxx_scope); - memset (scope, 0, sizeof (cxx_scope)); + scope = GGC_CNEW (cxx_scope); scope->this_entity = entity; scope->more_cleanups_ok = true; |