]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/class.c
class.c (handle_using_decl): Get TYPE_FIELDS and TYPE_METHODS out of the class...
authorMark Mitchell <mark@codesourcery.com>
Thu, 16 Dec 1999 03:10:12 +0000 (03:10 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 16 Dec 1999 03:10:12 +0000 (03:10 +0000)
commit58010b57a6232b4d2ed0e07e47601b3fca6f958d
treee7ba7a8f8231c8333666fa1e7664d71d2aeda976
parent5afb79e7f856b5a9b4414ee34940b568aa77abe8
class.c (handle_using_decl): Get TYPE_FIELDS and TYPE_METHODS out of the class...

* class.c (handle_using_decl): Get TYPE_FIELDS and TYPE_METHODS
out of the class, rather than taking them as parameters.
(build_vbase_pointer_fields): Move here from tree.c.
(build_vtbl_or_vbase_field): New function.
(check_methods): Likewise.
(remove_zero_width_bitfields): Likewise.
(add_virtual_function): Use tree_cons instead of temp_tree_cons.
(delete_duplicate_fields_1): Tidy.  Don't delete duplicate
USING_DECLs here.
(finish_struct_methods): Handle the case where there are no
methods here.
(get_basefndecls): Use tree_cons instead of temp_tree_cons.
(check_field_decls): Call delete_duplicate_fields here.
(finish_struct_1): Tidy.  Use check_methods and
remove_zero_width_bitfields.
* cp-tree.h (build_vbase_pointer_fields): Remove.
* decl.c (grokdeclarator): Use tree_cons instead of
temp_tree_cons.
* decl2.c (qualified_lookup_using_namespace): Use tree_cons
instead of temp_tree_cons.
* lex.c (cons_up_default_function): Remove dead code.
* method.c (fixup_pending_inline): New function, split out from ...
(do_inline_function_hair): ... here.
* tree.c (build_vbase_pointer_fields): Remove.

From-SVN: r30966
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/lex.c
gcc/cp/tree.c