From: Nathan Sidwell Date: Thu, 5 Sep 2019 11:31:08 +0000 (+0000) Subject: [C++ PATCH] vtable decl marking X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b101938436936b04ea3913c44cea7b58204a9765;p=gcc.git [C++ PATCH] vtable decl marking https://gcc.gnu.org/ml/gcc-patches/2019-08/msg02063.html * cp-tree.h (DECL_VTABLE_OR_VTT_P): Forward to DECL_VIRTUAL_P. From-SVN: r275404 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 605b3d72e5f..3162bed785e 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2019-09-05 Nathan Sidwell + + * cp-tree.h (DECL_VTABLE_OR_VTT_P): Forward to DECL_VIRTUAL_P. + 2019-09-04 Marek Polacek * call.c (build_over_call): Remove -fdeduce-init-list implementation. diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 12eb39a0a4c..038f58d10f8 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -462,7 +462,6 @@ extern GTY(()) tree cp_global_trees[CPTI_MAX]; OVL_LOOKUP_P (in OVERLOAD) LOOKUP_FOUND_P (in RECORD_TYPE, UNION_TYPE, NAMESPACE_DECL) 5: IDENTIFIER_VIRTUAL_P (in IDENTIFIER_NODE) - DECL_VTABLE_OR_VTT_P (in VAR_DECL) FUNCTION_RVALUE_QUALIFIED (in FUNCTION_TYPE, METHOD_TYPE) CALL_EXPR_REVERSE_ARGS (in CALL_EXPR, AGGR_INIT_EXPR) CONSTRUCTOR_PLACEHOLDER_BOUNDARY (in CONSTRUCTOR) @@ -3258,8 +3257,10 @@ struct GTY(()) lang_decl { both the primary typeinfo object and the associated NTBS name. */ #define DECL_TINFO_P(NODE) TREE_LANG_FLAG_4 (VAR_DECL_CHECK (NODE)) -/* 1 iff VAR_DECL node NODE is virtual table or VTT. */ -#define DECL_VTABLE_OR_VTT_P(NODE) TREE_LANG_FLAG_5 (VAR_DECL_CHECK (NODE)) +/* 1 iff VAR_DECL node NODE is virtual table or VTT. We forward to + DECL_VIRTUAL_P from the common code, as that has the semantics we + need. But we want a more descriptive name. */ +#define DECL_VTABLE_OR_VTT_P(NODE) DECL_VIRTUAL_P (VAR_DECL_CHECK (NODE)) /* 1 iff FUNCTION_TYPE or METHOD_TYPE has a ref-qualifier (either & or &&). */ #define FUNCTION_REF_QUALIFIED(NODE) \