aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/lex.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>1999-12-16 03:10:12 +0000
committerMark Mitchell <mark@codesourcery.com>1999-12-16 03:10:12 +0000
commit5b6e8155e04db79f19ba18938445bc131cf6e605 (patch)
treee7ba7a8f8231c8333666fa1e7664d71d2aeda976 /gcc/cp/lex.c
parentc30038b8bce62ee3b3750d5d3416add279e24b8f (diff)
* 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. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@30966 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/lex.c')
-rw-r--r--gcc/cp/lex.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c
index e72d01c4eff..01ec8fcb02d 100644
--- a/gcc/cp/lex.c
+++ b/gcc/cp/lex.c
@@ -2000,9 +2000,6 @@ cons_up_default_function (type, full_name, kind)
switch (kind)
{
/* Destructors. */
- case 1:
- declspecs = build_decl_list (NULL_TREE, ridpointers [(int) RID_VIRTUAL]);
- /* Fall through... */
case 0:
name = build_parse_node (BIT_NOT_EXPR, name);
args = void_list_node;