From 6f6c79920883f3fc301a4acc0544ed5a130bf7c5 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Fri, 24 Apr 2020 08:46:29 +0200 Subject: [PATCH] Remove CHECKING_P in coroutines.cc for release checking. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * coroutines.cc: Fix compilation error for release checking where we miss declaration of ‘coro_body_contains_bind_expr_p’. --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/coroutines.cc | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 043e6aaddf4..4d3049e67f3 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2020-04-24 Martin Liska + + * coroutines.cc: Fix compilation error for release checking + where we miss declaration of ‘coro_body_contains_bind_expr_p’. + 2020-04-23 Patrick Palka * tree.c (zero_init_expr_p): Use uses_template_parms instead of diff --git a/gcc/cp/coroutines.cc b/gcc/cp/coroutines.cc index bec165b6ec6..4f254b7fd10 100644 --- a/gcc/cp/coroutines.cc +++ b/gcc/cp/coroutines.cc @@ -3441,7 +3441,6 @@ act_des_fn (tree orig, tree fn_type, tree coro_frame_ptr, const char* name) return fn; } -#if CHECKING_P /* Return a bind expression if we see one, else NULL_TREE. */ static tree bind_expr_find_in_subtree (tree *stmt, int *, void *) @@ -3460,7 +3459,6 @@ coro_body_contains_bind_expr_p (tree *stmt) hash_set visited; return cp_walk_tree (stmt, bind_expr_find_in_subtree, NULL, &visited); } -#endif /* Here we: a) Check that the function and promise type are valid for a -- 2.30.2