From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 279103858413 for ; Tue, 13 Sep 2022 14:21:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 279103858413 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1663078886; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Ps/aV4HShObJZeUSkBtqoP3yFivB14v/fW36JCcToms=; b=Y2UKGyD0O43ysHC0a5BqWoym+rHqYceVuSeUaypODn2GIXR8jEV0X3W/QjL3hTo8cniR0k dsvOY13a3mydwYhiX+K8Mi+P0VvMEDo4YEs/7Xy44lnDckXY3Y95bb0WWPl+uLtKNSbHRj Es3T8f8kd8+Lx4wF2NaFp2FXHkes98Y= Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-35-ibM_jrr6NrWSkZ0YnskzFQ-1; Tue, 13 Sep 2022 10:21:24 -0400 X-MC-Unique: ibM_jrr6NrWSkZ0YnskzFQ-1 Received: by mail-qt1-f197.google.com with SMTP id cb22-20020a05622a1f9600b0035bb51792d2so4651143qtb.5 for ; Tue, 13 Sep 2022 07:21:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=Ps/aV4HShObJZeUSkBtqoP3yFivB14v/fW36JCcToms=; b=hmEq8yaxeDcsQedJddb+ZivH1VaJYUOpMcYDb7RM6tgntDo7ubBsmd9u4W0eYgWVfw HGeclID/77IUp1yN5/JLMBdRnQLDqJXwojcdXDL9Ad6LlxCjmaZrLD3gOvf0S/akEDy5 PDtcU+NK6xAOaMK+5vTC3V+WLvkNfoFcFuG+V2YpT/s8o++tAJRlBHo9EgYRKJapuALi vukkFn5t+GxbSgizqc4RiqAHDyo2lTaq/9SDb/NUOKyR7pWCyvYsT1gDZ+WYbk2CrbP9 Y9dora/FmzhD/RkxQWdkbjhsWd3eICpiGXSmmKazg+fo81EmbQzqK9U8AOpnzbrFnXyq dEEA== X-Gm-Message-State: ACgBeo3saSuTrQ2c0zARSbSaNlHlEqtAr5mSZWEkDR6iiZHWK/lEJZNa EzpVspxvYz4NrReDR91qRLxhJNDOuPk0jfwu0OqHa2gQFMRz6OI9Ld8/ZTtCXmQztLuXo5v58hq QqLHmyszaugxr6sqmIHxPYevONL9b/Z8nZGOjp+h3bQawrAstjtZzHEXHDo5s26EpYJA= X-Received: by 2002:a05:622a:1486:b0:343:6d3f:2fce with SMTP id t6-20020a05622a148600b003436d3f2fcemr28517824qtx.171.1663078883764; Tue, 13 Sep 2022 07:21:23 -0700 (PDT) X-Google-Smtp-Source: AA6agR7+xzqDzYAXvPLM4a2BnXvFOexZNgAqQi/XMb5T4JjZZ6qmUQpnl7uQPvTX39TTey6co4AyzA== X-Received: by 2002:a05:622a:1486:b0:343:6d3f:2fce with SMTP id t6-20020a05622a148600b003436d3f2fcemr28517790qtx.171.1663078883476; Tue, 13 Sep 2022 07:21:23 -0700 (PDT) Received: from localhost.localdomain (ool-457670bb.dyn.optonline.net. [69.118.112.187]) by smtp.gmail.com with ESMTPSA id bl4-20020a05620a1a8400b006ce30a5f892sm5530567qkb.102.2022.09.13.07.21.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Sep 2022 07:21:22 -0700 (PDT) From: Patrick Palka To: gcc-patches@gcc.gnu.org Cc: jason@redhat.com, Patrick Palka Subject: [committed] c++: remove single-parameter version of mark_used Date: Tue, 13 Sep 2022 10:21:18 -0400 Message-Id: <20220913142118.3183120-1-ppalka@redhat.com> X-Mailer: git-send-email 2.37.3.542.gdd3f6c4cae MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-14.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Tested on x86_64-pc-linux-gnu, committed to trunk as obvious. 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. --- 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) { -- 2.37.3.542.gdd3f6c4cae