From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1888) id 9BB55385840F; Tue, 13 Sep 2022 14:19:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9BB55385840F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663078794; bh=sBv/7mTitnPpE1YcUvhjKFuW2GehPqNGSVXu9IbmdWE=; h=From:To:Subject:Date:From; b=O5KcCQj4mrr47q1KU8uesiU18KkpOzt8WL9o8pwNwAeV6YWdSvDl5jDnlsoRmHJ7E fJhdfkJaeSUKRbMcpMCnzGOLN4MyCIF8lLxT8faRkaaR1b3EFT1g6PByOG2ay6BzqP l0DuyEGQRa0Uu8IuuiB2qjLZgOyfSiyUJFaOjVFc= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Patrick Palka To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-2647] c++: remove single-parameter version of mark_used X-Act-Checkin: gcc X-Git-Author: Patrick Palka X-Git-Refname: refs/heads/master X-Git-Oldrev: fea6ae0e5d82c01680c788c77709076b9288d145 X-Git-Newrev: 5e1031ff8ec542f14551624e8df6db450794e93e Message-Id: <20220913141954.9BB55385840F@sourceware.org> Date: Tue, 13 Sep 2022 14:19:54 +0000 (GMT) List-Id: https://gcc.gnu.org/g:5e1031ff8ec542f14551624e8df6db450794e93e commit r13-2647-g5e1031ff8ec542f14551624e8df6db450794e93e Author: Patrick Palka Date: Tue Sep 13 10:18:58 2022 -0400 c++: remove single-parameter version of mark_used gcc/cp/ChangeLog: * cp-tree.h (mark_used): Remove single-parameter overload. Add default argument to the two-parameter overload. * decl2.cc (mark_used): Likewise. Diff: --- gcc/cp/cp-tree.h | 4 ++-- gcc/cp/decl2.cc | 8 +------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 1eb176d4a50..f19ecafc266 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -6945,8 +6945,8 @@ extern bool decl_constant_var_p (tree); extern bool decl_maybe_constant_var_p (tree); extern void no_linkage_error (tree); extern void check_default_args (tree); -extern bool mark_used (tree); -extern bool mark_used (tree, tsubst_flags_t); +extern bool mark_used (tree, + tsubst_flags_t = tf_warning_or_error); extern bool mark_single_function (tree, tsubst_flags_t); extern void finish_static_data_member_decl (tree, tree, bool, tree, int); extern tree cp_build_parm_decl (tree, tree, tree); diff --git a/gcc/cp/decl2.cc b/gcc/cp/decl2.cc index 684a2d06dde..9f18466192f 100644 --- a/gcc/cp/decl2.cc +++ b/gcc/cp/decl2.cc @@ -5575,7 +5575,7 @@ mark_single_function (tree expr, tsubst_flags_t complain) wrong, true otherwise. */ bool -mark_used (tree decl, tsubst_flags_t complain) +mark_used (tree decl, tsubst_flags_t complain /* = tf_warning_or_error */) { /* If we're just testing conversions or resolving overloads, we don't want any permanent effects like forcing functions to be @@ -5817,12 +5817,6 @@ mark_used (tree decl, tsubst_flags_t complain) return true; } -bool -mark_used (tree decl) -{ - return mark_used (decl, tf_warning_or_error); -} - tree vtv_start_verification_constructor_init_function (void) {