From 872c9284b0283df0058eff41316778a9b324b8b7 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Wed, 13 Mar 2002 17:12:24 +0000 Subject: [PATCH] cp-tree.h (init_init_processing): Remove declaration. * cp-tree.h (init_init_processing): Remove declaration. * init.c (BI_header_type, init_init_processing): Remove old ABI stuff. * decl.c (cxx_init_decl_processing): Don't call init_init_processing. From-SVN: r50740 --- gcc/cp/ChangeLog | 6 ++++++ gcc/cp/cp-tree.h | 1 - gcc/cp/decl.c | 1 - gcc/cp/init.c | 20 -------------------- 4 files changed, 6 insertions(+), 22 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 7ff6499fef3..a6617a21e2c 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2002-03-12 Richard Sandiford + + * cp-tree.h (init_init_processing): Remove declaration. + * init.c (BI_header_type, init_init_processing): Remove old ABI stuff. + * decl.c (cxx_init_decl_processing): Don't call init_init_processing. + 2002-03-12 Kaveh R. Ghazi * cp-lang.c (tree_code_type, tree_code_length, tree_code_name): diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index cae14755017..33e09e3457b 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -3900,7 +3900,6 @@ extern void add_friend PARAMS ((tree, tree)); extern tree do_friend PARAMS ((tree, tree, tree, tree, tree, enum overload_flags, tree, int)); /* in init.c */ -extern void init_init_processing PARAMS ((void)); extern void emit_base_init PARAMS ((tree, tree)); extern tree expand_member_init PARAMS ((tree, tree, tree)); extern tree build_aggr_init PARAMS ((tree, tree, int)); diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 2417202f4ef..12028df385d 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -6586,7 +6586,6 @@ cxx_init_decl_processing () /* Perform other language dependent initializations. */ init_class_processing (); - init_init_processing (); init_search_processing (); init_rtti_processing (); diff --git a/gcc/cp/init.c b/gcc/cp/init.c index 7eaafc99354..05ccf33e103 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -56,26 +56,6 @@ static tree build_dtor_call PARAMS ((tree, special_function_kind, int)); static tree build_field_list PARAMS ((tree, tree, int *)); static tree build_vtbl_address PARAMS ((tree)); -/* Set up local variable for this file. MUST BE CALLED AFTER - INIT_DECL_PROCESSING. */ - -static tree BI_header_type; - -void init_init_processing () -{ - tree fields[1]; - - /* Define the structure that holds header information for - arrays allocated via operator new. */ - BI_header_type = make_aggr_type (RECORD_TYPE); - fields[0] = build_decl (FIELD_DECL, nelts_identifier, sizetype); - - finish_builtin_type (BI_header_type, "__new_cookie", fields, - 0, double_type_node); - - ggc_add_tree_root (&BI_header_type, 1); -} - /* We are about to generate some complex initialization code. Conceptually, it is all a single expression. However, we may want to include conditionals, loops, and other such statement-level