From: Nathan Sidwell Date: Fri, 2 Jun 2017 13:27:45 +0000 (+0000) Subject: Remove lang_type_ptrmem. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fb3a2657b2e571534871e38e5ed16395544a5f13;p=gcc.git Remove lang_type_ptrmem. Changlogs: cp/ Remove lang_type_ptrmem. * cp-tree.h (lang_type_header): Remove is_lang_type_class. Move into ... (lang_type_class): ... this. Reorder bitfields. Rename to ... (lang_type): ... this. Delete old definition. (lang_type_ptrmem): Delete. (LANG_TYPE_CLASS_CHECK): Simply get TYPE_LANG_SPECIFIC. Adjust uses. (LANG_TYPE_PTRMEM_CHECK): Delete. (TYPE_GET_PTRMEMFUNC_TYPE, TYPE_SET_PTRMEMFUNC_TYPE): Delete. (TYPE_PTRMEMFUNC_TYPE): New. Use TYPE_LANG_SLOT_1. * decl.c (build_ptrmemfunc_type): Adjust. * lex.c (copy_lang_type): Remove lang_type_ptrmem handling. (maybe_add_lang_type_raw): Don't set u.c.h.is_lang_type_class. objcp/ * objcp-decl.h (SIZEOF_OBJC_TYPE_LANG_SPECIFIC): Use lang_type. (ALLOC_OBJC_TYPE_LANG_SPECIFIC): Use it. Don't set u.c.h.is_lang_type_class. From-SVN: r248827 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index f7cb3d5a2f2..5515ac738b7 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,23 @@ 2017-06-02 Nathan Sidwell + Remove lang_type_ptrmem. + * cp-tree.h (lang_type_header): Remove is_lang_type_class. Move + into ... + (lang_type_class): ... this. Reorder bitfields. Rename to ... + (lang_type): ... this. Delete old definition. + (lang_type_ptrmem): Delete. + (LANG_TYPE_CLASS_CHECK): Simply get TYPE_LANG_SPECIFIC. Adjust uses. + (LANG_TYPE_PTRMEM_CHECK): Delete. + (TYPE_GET_PTRMEMFUNC_TYPE, TYPE_SET_PTRMEMFUNC_TYPE): Delete. + (TYPE_PTRMEMFUNC_TYPE): New. Use TYPE_LANG_SLOT_1. + * decl.c (build_ptrmemfunc_type): Adjust. + * lex.c (copy_lang_type): Remove lang_type_ptrmem handling. + (maybe_add_lang_type_raw): Don't set u.c.h.is_lang_type_class. + + * class.c (check_bases_and_members): Adjust vec_new_uses_cookie + setting. + + Remove cp_binding_level::namespaces * name-lookup.h (cp_binding_level): Lose namespaces field. * name-lookup.c (add_decl_to_level): Chain namespaces on the names list. diff --git a/gcc/objcp/ChangeLog b/gcc/objcp/ChangeLog index f7da36f0c7c..817b6d466f3 100644 --- a/gcc/objcp/ChangeLog +++ b/gcc/objcp/ChangeLog @@ -1,3 +1,9 @@ +2017-06-02 Nathan Sidwell + + * objcp-decl.h (SIZEOF_OBJC_TYPE_LANG_SPECIFIC): Use lang_type. + (ALLOC_OBJC_TYPE_LANG_SPECIFIC): Use it. Don't set + u.c.h.is_lang_type_class. + 2017-01-01 Jakub Jelinek Update copyright years.