diff options
author | Gabriel Dos Reis <gdr@integrable-solutions.net> | 2005-12-02 11:21:28 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2005-12-02 11:21:28 +0000 |
commit | 0ac1b88953853f4ae1cd2fd09d40fb85fe0d3de5 (patch) | |
tree | 02a2773c1a28cc03c9c2382a37b5628b733a02d8 /gcc/cp/class.c | |
parent | 20186b381aae5e99159239091457eac4ca66a5c8 (diff) | |
download | gcc-0ac1b88953853f4ae1cd2fd09d40fb85fe0d3de5.zip gcc-0ac1b88953853f4ae1cd2fd09d40fb85fe0d3de5.tar.gz gcc-0ac1b88953853f4ae1cd2fd09d40fb85fe0d3de5.tar.bz2 |
decl2.c (get_priority_info): Use XNEW, not xmalloc.
* decl2.c (get_priority_info): Use XNEW, not xmalloc.
* decl.c (push_switch): Likewise.
* lex.c (handle_pragma_implementation): Likewise.
* cp-objcp-common.c (decl_shadowed_for_var_insert): Use GGC_NEW,
not ggc_alloc.
(cxx_initialize_diagnostics): Use XNEW, not xmalloc.
* class.c (init_class_processing): Use XNEWVEC, not xmalloc.
* g++spec.c (lang_specific_driver): Likewise.
* mangle.c (save_partially_mangled_name): Likewise.
* parser.c (cp_lexer_new_main): Use GGC_NEWVEC, not ggc_alloc.
(cp_parser_template_argument_list): Use XNEWVEC, nto xmalloc.
(cp_parser_sizeof_operand): Likewise.
* repo.c (open_repo_file, open_repo_file): Likewise.
From-SVN: r107884
Diffstat (limited to 'gcc/cp/class.c')
-rw-r--r-- | gcc/cp/class.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 647b7cb..5c1b9e1 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -5334,7 +5334,7 @@ init_class_processing (void) current_class_depth = 0; current_class_stack_size = 10; current_class_stack - = xmalloc (current_class_stack_size * sizeof (struct class_stack_node)); + = XNEWVEC (struct class_stack_node, current_class_stack_size); local_classes = VEC_alloc (tree, gc, 8); sizeof_biggest_empty_class = size_zero_node; |