From: paolo Date: Wed, 15 May 2019 17:47:55 +0000 (+0000) Subject: 2019-05-15 Paolo Carlini X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=94c491e3ab8516e423b0b49a427eb0cd87842f23;p=thirdparty%2Fgcc.git 2019-05-15 Paolo Carlini * cp-tree.h (REFERENCE_VLA_OK): Remove. * lambda.c (build_capture_proxy): Remove use of the above. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@271258 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 5888ce6b82ce..7a22c5e039fd 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2019-05-15 Paolo Carlini + + * cp-tree.h (REFERENCE_VLA_OK): Remove. + * lambda.c (build_capture_proxy): Remove use of the above. + 2019-05-15 Paolo Carlini * call.c (perform_overload_resolution, build_new_method_call_1): diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 827b471aa800..2b19bc116e6c 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -482,7 +482,6 @@ extern GTY(()) tree cp_global_trees[CPTI_MAX]; 5: CLASS_TYPE_P (in RECORD_TYPE and UNION_TYPE) ENUM_FIXED_UNDERLYING_TYPE_P (in ENUMERAL_TYPE) AUTO_IS_DECLTYPE (in TEMPLATE_TYPE_PARM) - REFERENCE_VLA_OK (in REFERENCE_TYPE) 6: TYPE_DEPENDENT_P_VALID Usage of DECL_LANG_FLAG_?: @@ -3714,11 +3713,6 @@ struct GTY(()) lang_decl { && TREE_TYPE (TREE_OPERAND (NODE, 0)) \ && TYPE_REF_P (TREE_TYPE (TREE_OPERAND ((NODE), 0)))) -/* True if NODE is a REFERENCE_TYPE which is OK to instantiate to be a - reference to VLA type, because it's used for VLA capture. */ -#define REFERENCE_VLA_OK(NODE) \ - (TYPE_LANG_FLAG_5 (REFERENCE_TYPE_CHECK (NODE))) - #define NEW_EXPR_USE_GLOBAL(NODE) \ TREE_LANG_FLAG_0 (NEW_EXPR_CHECK (NODE)) #define DELETE_EXPR_USE_GLOBAL(NODE) \ diff --git a/gcc/cp/lambda.c b/gcc/cp/lambda.c index 93664181b47b..fb385c62687f 100644 --- a/gcc/cp/lambda.c +++ b/gcc/cp/lambda.c @@ -420,7 +420,6 @@ build_capture_proxy (tree member, tree init) type = build_cplus_array_type (TREE_TYPE (TREE_TYPE (ptr)), build_index_type (max)); type = build_reference_type (type); - REFERENCE_VLA_OK (type) = true; object = convert (type, ptr); }