From patchwork Thu Sep 28 09:52:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 145897 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp3190900vqu; Thu, 28 Sep 2023 02:53:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGV6sI6lN3KOR9C7p+syfj0xEFnJfiGLaBtd0Fhh5+jKQyx/DAfSB+dikYinTk6Uj0omOi0 X-Received: by 2002:a17:906:3050:b0:9ae:65a5:b6f4 with SMTP id d16-20020a170906305000b009ae65a5b6f4mr745062ejd.20.1695894787321; Thu, 28 Sep 2023 02:53:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695894787; cv=none; d=google.com; s=arc-20160816; b=lxaeaXgkl6NZmrGiynqJrDspyy5rvBfNnzlB9qPmPHuvqw5I1Gz6I1MvmVy7DGXhXd 9HASktJ/6D34Rh1A19ef9MqA9UAc51dzzQudX1k81R8Gy7dHZejedtIcK5HoENQIjmol F3j5d3S5hGgN9pDjxvZr+F3ynYinLSyW7FrCrD87RaFJNeBNnj6XrTnoXA9+sDw6VH7C zhhYrGpywjWm9EISsGUVvC6Z7bbPk2GcRA6WihuWRj9d81sl0+GtVzQvsykrrwUcCD9K IdoKnvWPG4gzYbmlevfnZIXV+CEzd2feT3+mP9tjlcWpj/jkg6oNy81MSCu28trAJTzq O2dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version:user-agent :message-id:date:subject:mail-followup-to:to:from:dmarc-filter :delivered-to; bh=YwbemM5lclA5YLcvBVen22mQ2ItxvmVWlRNssmgvSeE=; fh=hPrbWPhweUx4V0GV9uXJqbyAzg2ABmTz7kczrAQqMmM=; b=kfyDBpp+gOuz04ZrEC/4y9/lzW9TwouLRtTx/ZzgS5FKCFyWE+yRhcuk9MZDHAcpNp d1IEJAapxGs7rW4SK8i0cBuOEehWUER0KCcbr4EswB5rzmUXpeocQ8qm53+piA6pF8vD d+QF3T6HTn11hZYzHKJrQv7RF6eepeUNJQuQ6WrRTrDZOM5mwDkBYzsqPuHnDGzkaHam GwbRacVjpi7R3sPLrkYX1/gcMD1sDw7mh38labref4OWry1Xrh7hCjbDJ/66+blIPqvf nunvHSKUPSx74ucTs2CzwG3zkcL9KjPST0FqRIitgYPJXuYSfXGIupmHjIFaCD2kikW5 ZW3w== ARC-Authentication-Results: i=1; mx.google.com; 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"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id dt16-20020a170907729000b009b2abbba4dcsi4751228ejc.892.2023.09.28.02.53.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 02:53:07 -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; 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"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7CFA7386193D for ; Thu, 28 Sep 2023 09:52:48 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by sourceware.org (Postfix) with ESMTP id 7EDF83861820 for ; Thu, 28 Sep 2023 09:52:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7EDF83861820 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7A3591FB for ; Thu, 28 Sep 2023 02:52:42 -0700 (PDT) Received: from localhost (e121540-lin.manchester.arm.com [10.32.110.72]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9E2C23F59C for ; Thu, 28 Sep 2023 02:52:03 -0700 (PDT) From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, richard.sandiford@arm.com Subject: [pushed] Remove some unused poly_int variables Date: Thu, 28 Sep 2023 10:52:02 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-Spam-Status: No, score=-24.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_NONE, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_NONE, SPF_NONE, TXREP 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.30 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778274572437008851 X-GMAIL-MSGID: 1778274572437008851 Switching to default constructors for poly_int exposed some unused variables that weren't previously diagnosed. Tested on aarch64-linux-gnu & x86_64-linux-gnu, pushed as obvious. Richard gcc/ * dwarf2out.cc (mem_loc_descriptor): Remove unused variables. * tree-affine.cc (expr_to_aff_combination): Likewise. gcc/cp/ * constexpr.cc (cxx_fold_indirect_ref): Remove unused variables. gcc/rust/ * backend/rust-constexpr.cc (rs_fold_indirect_ref): Remove unused variables. --- gcc/cp/constexpr.cc | 1 - gcc/dwarf2out.cc | 1 - gcc/rust/backend/rust-constexpr.cc | 1 - gcc/tree-affine.cc | 1 - 4 files changed, 4 deletions(-) diff --git a/gcc/cp/constexpr.cc b/gcc/cp/constexpr.cc index 2a6601c0cbc..0f948db7c2d 100644 --- a/gcc/cp/constexpr.cc +++ b/gcc/cp/constexpr.cc @@ -5643,7 +5643,6 @@ cxx_fold_indirect_ref (const constexpr_ctx *ctx, location_t loc, tree type, { tree sub = op0; tree subtype; - poly_uint64 const_op01; /* STRIP_NOPS, but stop if REINTERPRET_CAST_P. */ while (CONVERT_EXPR_P (sub) || TREE_CODE (sub) == NON_LVALUE_EXPR diff --git a/gcc/dwarf2out.cc b/gcc/dwarf2out.cc index f60a0656d8f..ad2be7c961a 100644 --- a/gcc/dwarf2out.cc +++ b/gcc/dwarf2out.cc @@ -15967,7 +15967,6 @@ mem_loc_descriptor (rtx rtl, machine_mode mode, enum dwarf_location_atom op; dw_loc_descr_ref op0, op1; rtx inner = NULL_RTX; - poly_int64 offset; if (mode == VOIDmode) mode = GET_MODE (rtl); diff --git a/gcc/rust/backend/rust-constexpr.cc b/gcc/rust/backend/rust-constexpr.cc index 4e581a3f2cf..b28fa27b2d0 100644 --- a/gcc/rust/backend/rust-constexpr.cc +++ b/gcc/rust/backend/rust-constexpr.cc @@ -737,7 +737,6 @@ rs_fold_indirect_ref (const constexpr_ctx *ctx, location_t loc, tree type, { tree sub = op0; tree subtype; - poly_uint64 const_op01; /* STRIP_NOPS, but stop if REINTERPRET_CAST_P. */ while (CONVERT_EXPR_P (sub) || TREE_CODE (sub) == NON_LVALUE_EXPR diff --git a/gcc/tree-affine.cc b/gcc/tree-affine.cc index ee327e63a23..ecab4671ab4 100644 --- a/gcc/tree-affine.cc +++ b/gcc/tree-affine.cc @@ -268,7 +268,6 @@ expr_to_aff_combination (aff_tree *comb, tree_code code, tree type, tree op0, tree op1 = NULL_TREE) { aff_tree tmp; - poly_int64 bitpos, bitsize, bytepos; switch (code) {