From: Martin Liska Date: Fri, 24 Apr 2020 06:46:29 +0000 (+0200) Subject: Remove CHECKING_P in coroutines.cc for release checking. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6f6c79920883f3fc301a4acc0544ed5a130bf7c5;p=gcc.git Remove CHECKING_P in coroutines.cc for release checking. * coroutines.cc: Fix compilation error for release checking where we miss declaration of ‘coro_body_contains_bind_expr_p’. --- 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