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.133.124]) by sourceware.org (Postfix) with ESMTP id 473A2383581E for ; Mon, 24 May 2021 22:16:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 473A2383581E Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-524-p8ZBO3g3NVKfKDcHIFk4rQ-1; Mon, 24 May 2021 18:16:06 -0400 X-MC-Unique: p8ZBO3g3NVKfKDcHIFk4rQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 26DB3189C446 for ; Mon, 24 May 2021 22:16:06 +0000 (UTC) Received: from [10.3.114.34] (ovpn-114-34.phx2.redhat.com [10.3.114.34]) by smtp.corp.redhat.com (Postfix) with ESMTP id EEE6719C79 for ; Mon, 24 May 2021 22:16:05 +0000 (UTC) Subject: [PATCH 10/11] use xxx_no_warning APIs in libcc1 To: gcc-patches References: <92db3776-af59-fa20-483b-aa67b17d0751@gmail.com> <535d1b55-fc0a-63c3-08b5-48a017674d1e@gmail.com> From: Martin Sebor Message-ID: <6e17326a-3b70-ea6d-7524-adfeabe0772b@redhat.com> Date: Mon, 24 May 2021 16:16:05 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <535d1b55-fc0a-63c3-08b5-48a017674d1e@gmail.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: multipart/mixed; boundary="------------6C97E133B6240EEDF6EB07C4" Content-Language: en-US X-Spam-Status: No, score=-14.0 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 May 2021 22:16:10 -0000 This is a multi-part message in MIME format. --------------6C97E133B6240EEDF6EB07C4 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit The attached patch replaces the uses of TREE_NO_WARNING in libc11. --------------6C97E133B6240EEDF6EB07C4 Content-Type: text/x-patch; charset=UTF-8; name="gcc-no-warning-libcc1.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="gcc-no-warning-libcc1.diff" Add support for per-location warning groups. libcc1/ChangeLog: * libcp1plugin.cc (record_decl_address): Replace a direct use of TREE_NO_WARNING with set_no_warning. diff --git a/libcc1/libcp1plugin.cc b/libcc1/libcp1plugin.cc index 79694b91964..469a75c7ff7 100644 --- a/libcc1/libcp1plugin.cc +++ b/libcc1/libcp1plugin.cc @@ -541,7 +541,7 @@ record_decl_address (plugin_context *ctx, decl_addr_value value) **slot = value; /* We don't want GCC to warn about e.g. static functions without a code definition. */ - TREE_NO_WARNING (value.decl) = 1; + set_no_warning (value.decl); return *slot; } --------------6C97E133B6240EEDF6EB07C4--