• crux's avatar
    * c-common.h: New file. · 72040e7e
    crux authored
    	* c-common.c (permanent_obstack): Delete unused declaration.
    	(c_global_trees): New array.
    	(c_common_nodes_and_builtins): New function; split off common code
    	from init_decl_processing in both c-decl.c and cp/decl.c.
    	* c-tree.h: Delete lots of declarations of tree nodes; replaced by
    	c_global_trees and accessor macros defined in c-common.h.
    	Include c-common.h.
    	* c-decl.c: Delete definitions for tree nodes that were replaced by
    	c_global_trees.
    	(init_decl_processing): Build void_list_node.
    	Call c_common_nodes_and_builtins; delete code to generate the common
    	builtins here.
    
    	* objc/objc-act.c (build_module_descriptor): Rename variable
    	void_list_node to avoid clash with c-common.h.
    
    	* cp/cp-tree.h: Delete lots of declarations of tree nodes; replaced by
    	c_global_trees and accessor macros defined in c-common.h.
    	(cp_tree_index): New enumeration.
    	(cp_global_trees): Declare new array.  Add accessor macros for it, and
    	delete declarations of tree nodes replaced by it.
    	(builtin_function): Delete macro, add declaration for new function.
    	Include c-common.h.
    	* cp/decl.c: Delete definitions for tree nodes that were replaced by
    	cp_global_trees and c_global_trees.
    	(init_decl_processing): Call c_common_nodes_and_builtins; delete code
    	to generate the common builtins here.
    	(builtin_function): New function.
    	* cp/decl2.c (abort_fndecl): Delete declaration.
    	* cp/except.c (expand_builtin_return_address): Delete declaration.
    	(builtin_return_address_fndecl): Delete variable.
    	(const_ptr_type_node): Delete declaration.
    	* cp/lex.c (cons_up_default_function): Delete declaration of
    	void_list_node.
    	* cp/parse.y (void_list_node): Delete declaration.
    	* cp/rtti.c (type_info_type_node, tinfo_fn_id, tinfo_fn_type):
    	Delete variables.
    	(const_string_type_node): Delete declaration.
    	* cp/search.c (abort_fndecl): Delete declaration.
    
    	* Makefile.in: Update dependencies.
    	* objc/Make-lang.in: Likewise.
    	* cp/Makefile.in: Likewise.
    
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28188 138bc75d-0d04-0410-961f-82ee72b054a4
    72040e7e
c-tree.h 18.2 KB