diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2019-05-15 17:47:55 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2019-05-15 17:47:55 +0000 |
commit | 53f45e3cb9ce761f0589af2dcb82409e4cccb6a6 (patch) | |
tree | 5657d3e29b8c166d2a6d167b94c256e2b81a0cd5 /gcc | |
parent | dc90cc8c23f1e18f67e8f4d4a6da41bf6a04a147 (diff) | |
download | gcc-53f45e3cb9ce761f0589af2dcb82409e4cccb6a6.zip gcc-53f45e3cb9ce761f0589af2dcb82409e4cccb6a6.tar.gz gcc-53f45e3cb9ce761f0589af2dcb82409e4cccb6a6.tar.bz2 |
cp-tree.h (REFERENCE_VLA_OK): Remove.
2019-05-15 Paolo Carlini <paolo.carlini@oracle.com>
* cp-tree.h (REFERENCE_VLA_OK): Remove.
* lambda.c (build_capture_proxy): Remove use of the above.
From-SVN: r271258
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/cp-tree.h | 6 | ||||
-rw-r--r-- | gcc/cp/lambda.c | 1 |
3 files changed, 5 insertions, 7 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 5888ce6..7a22c5e 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,10 @@ 2019-05-15 Paolo Carlini <paolo.carlini@oracle.com> + * cp-tree.h (REFERENCE_VLA_OK): Remove. + * lambda.c (build_capture_proxy): Remove use of the above. + +2019-05-15 Paolo Carlini <paolo.carlini@oracle.com> + * call.c (perform_overload_resolution, build_new_method_call_1): Use OVL_P; remove redundant TEMPLATE_DECL checks. * decl.c (grokfndecl): Likewise. diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 827b471..2b19bc1 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 9366418..fb385c6 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); } |