This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

C++ patch: remove old ABI stuff


This patch removes some stuff that seems to be left over from the
old ABI.  Maybe obvious to some, but I just want to check that it
really isn't needed any more.

Bootstrapped and regression tested on i686-pc-linux-gnu.

Richard

	* 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.

Index: cp/cp-tree.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/cp-tree.h,v
retrieving revision 1.687
diff -c -p -d -r1.687 cp-tree.h
*** cp/cp-tree.h	2002/03/11 20:50:53	1.687
--- cp/cp-tree.h	2002/03/13 16:55:55
*************** extern void add_friend                  
*** 3900,3906 ****
  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));
--- 3900,3905 ----
Index: cp/decl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/decl.c,v
retrieving revision 1.872
diff -c -p -d -r1.872 decl.c
*** cp/decl.c	2002/03/13 01:42:39	1.872
--- cp/decl.c	2002/03/13 16:55:56
*************** cxx_init_decl_processing ()
*** 6586,6592 ****
  
    /* Perform other language dependent initializations.  */
    init_class_processing ();
-   init_init_processing ();
    init_search_processing ();
    init_rtti_processing ();
  
--- 6586,6591 ----
Index: cp/init.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/init.c,v
retrieving revision 1.265
diff -c -p -d -r1.265 init.c
*** cp/init.c	2002/03/01 01:49:00	1.265
--- cp/init.c	2002/03/13 16:55:56
*************** static tree build_dtor_call PARAMS ((tre
*** 56,81 ****
  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
--- 56,61 ----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]