From patchwork Mon Jul 17 12:24:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Martin Jambor X-Patchwork-Id: 121252 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp1076182vqt; Mon, 17 Jul 2023 05:25:00 -0700 (PDT) X-Google-Smtp-Source: APBJJlE1rKDuMFy3x0wTNR9F7+4enA0D7j81dfDqgqzxQn7WdELdRo+zdPWHKtcl/nBoORCzN8+1 X-Received: by 2002:a19:2d04:0:b0:4fb:89f2:594c with SMTP id k4-20020a192d04000000b004fb89f2594cmr7136643lfj.56.1689596700640; Mon, 17 Jul 2023 05:25:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689596700; cv=none; d=google.com; s=arc-20160816; b=ig2NKMwch6+LwyYb5CobmHsckXH0LoRzb2BTfsgNbPl0FEdmZgrTQw032vtxtIbb8h aqUCuOLWAq4eq5eLwtGcz7P6CEGGQlvLvVh9172TCTPXYo/eJlI5qno/AXu5teR8x8ua z8isg/VyON6jSUS3EDU8+vM5I/Vdu4U7BY9fjGDTC0x8YzfyMjVOKmH9Cg8/SPKSx+dK 9v4iaqIW6CJRHwY/46jk0wz8ivVa/xl6dlhfYYA1G8fGrnfVH0Q0c8z87D+UIxgGmav6 WDzs6fGBfKOk9NLrDplpwctqqbzd1525OE1CGY0c6+4hNS8oCWMJDupChFhf0yIXbPMQ g9zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:user-agent:subject:cc:to:from :dkim-signature:dkim-signature:dmarc-filter:delivered-to; bh=j0jylrZLnei50z0jgkfqLGuqwHL/Ez87L/cm4MGGyrQ=; fh=ojMLEOaapByEVR9nrTirX35o9/JiRBceNKXtBAeyNsg=; b=qkBMozgCPsoXqBxEm0XMrq5tgFm2OKkH9RJfDV9BnVwPX1sPZhCENHAfs02E4oC3KB fONXu/6423pqx/KlKU5p+TPjt7KlAH8NACNTw/B3J4muWx/X8iDO3WXK/+MBuKJUs9M7 7YapG2QR9j6mz8Qajb80pjTYM7fpj7dxEcVeAw7xORZZkvQDOB/72B6+kXoipx1bf9Sn naZXgv2Xp3RVfso8dOUIQSy4Lpv5V0i5CtOM40GNZ6bRYvmUFIrtLaVHs2vRTrKnleiT ys6OgAwDVUpHDxATGVf3KnYErUIDYiD9RAAVV09/vFwa0Mt9nNh5zOhuB4uDgd7FabSX yqjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=0PxVtZPL; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=dN8+drfe; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id l14-20020a056402124e00b0051e0fa08e8csi13667528edw.284.2023.07.17.05.25.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jul 2023 05:25:00 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=0PxVtZPL; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=dN8+drfe; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 08F213858039 for ; Mon, 17 Jul 2023 12:24:53 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id E7C703858D33 for ; Mon, 17 Jul 2023 12:24:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E7C703858D33 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.cz Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 9F2352198E; Mon, 17 Jul 2023 12:24:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1689596666; h=from:from:reply-to: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=j0jylrZLnei50z0jgkfqLGuqwHL/Ez87L/cm4MGGyrQ=; b=0PxVtZPLnqkdgWo9dfACQtIdqExqVMg/K/T2dhS/ep/+1zMvHLvsjLkmIx/H7oyiibtMPv +75U1GpHrOw3jq+90aBwsIGEre3+NkqnYsFxEpoxYf5j1XD/GuVuCvPeTePISgqDCYWTIa MuX3SyNApOU8HvYNwqtQRQnyWEnEISQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1689596666; h=from:from:reply-to: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=j0jylrZLnei50z0jgkfqLGuqwHL/Ez87L/cm4MGGyrQ=; b=dN8+drfe0JUwKBShPCcof5WUefYs4Qh9u7aCPyNAMPqtE/pn/Gpl3J3231aIEJ3eiZjB1C O6wf2IE8Cc44VkAw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 8C1A6138F8; Mon, 17 Jul 2023 12:24:26 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id MmsKIfoytWQ9KwAAMHmgww (envelope-from ); Mon, 17 Jul 2023 12:24:26 +0000 From: Martin Jambor To: GCC Patches Cc: Jan Hubicka Subject: [committed] Restore bootstrap by removing unused variable in tree-ssa-loop-ivcanon.cc User-Agent: Notmuch/0.37 (https://notmuchmail.org) Emacs/28.2 (x86_64-suse-linux-gnu) Date: Mon, 17 Jul 2023 14:24:26 +0200 Message-ID: MIME-Version: 1.0 X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, 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 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: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771670549648180032 X-GMAIL-MSGID: 1771670549648180032 Hi, This restores bootstrap by removing the variable causing: /home/mjambor/gcc/trunk/src/gcc/tree-ssa-loop-ivcanon.cc: In function ‘bool try_peel_loop(loop*, edge, tree, bool, long int)’: /home/mjambor/gcc/trunk/src/gcc/tree-ssa-loop-ivcanon.cc:1170:17: error: variable ‘entry_count’ set but not used [-Werror=unused-but-set-variable] 1170 | profile_count entry_count = profile_count::zero (); | ^~~~~~~~~~~ cc1plus: all warnings being treated as errors ACKed by Honza in a chat, passed a bootstrap on x86_64-linux, committed. Thanks, Martin gcc/ChangeLog: 2023-07-17 Martin Jambor * tree-ssa-loop-ivcanon.cc (try_peel_loop): Remove unused variable entry_count. --- gcc/tree-ssa-loop-ivcanon.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/gcc/tree-ssa-loop-ivcanon.cc b/gcc/tree-ssa-loop-ivcanon.cc index bdb738af7a8..a895e8e65be 100644 --- a/gcc/tree-ssa-loop-ivcanon.cc +++ b/gcc/tree-ssa-loop-ivcanon.cc @@ -1167,7 +1167,6 @@ try_peel_loop (class loop *loop, loop->num, (int) npeel); } adjust_loop_info_after_peeling (loop, npeel, true); - profile_count entry_count = profile_count::zero (); bitmap_set_bit (peeled_loops, loop->num); return true;