From patchwork Tue Dec 27 04:35:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Oliva X-Patchwork-Id: 36772 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1222408wrt; Mon, 26 Dec 2022 20:36:36 -0800 (PST) X-Google-Smtp-Source: AMrXdXuwhb63eWe3z3HGWjJhGAqTAR0rrM9Pi9mLvUiAcfKUQ7NYeKED5C9xBuk7teQYRWKyXczL X-Received: by 2002:a17:906:724b:b0:7c1:7669:629 with SMTP id n11-20020a170906724b00b007c176690629mr17341497ejk.49.1672115796873; Mon, 26 Dec 2022 20:36:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672115796; cv=none; d=google.com; s=arc-20160816; b=XP2UvPmkZSX7CweVWg+KWnxZ9E3ILszeR3VG7iB9y7cCq2/JZ2z9zPeJwibs9ffOUr SyLJF19hqb+vXkV2XPNn6ilEMlpEWwgrN1iQN34BnSSNvCf1Tb5hwY4LqVVtELldGP+V fyuCP9SrDYTd/rrbmFLpyldmV+KI6Gli4Z1J0yzvhLAmcCrhG0S6CENN/nKCFqFIQWA1 yZqkG+XKVU6u3ANaO3bFIn/w+sWGtrKbwXUdUR9hFuqbKY2n4LRyEuY3FtKBP1yGeJKr 0yQiuTus1s8rdZPyGS1Bd3Pv7lemG03tpU9X34jCVlbn7Juh5S67Eub+OGGe5LzyPmpz 9qZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:mime-version :user-agent:message-id:in-reply-to:date:references:organization :subject:cc:to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=iAJcLChQMbxrg1h0EkXdm7nMJF9Nfav1QypwnGoURj0=; b=tQSvJRqHgFfgwjMWut20niWfOz90c5MxJqFFqZQXpPVGDuURdDMn6wC7HfhcVlnGF0 wSVW9eKAgq5+9xAGXN7H6VtZNYth/6szRu7pqqGoOiRx62wdVN0u2BprxGdcmxtAgnfb 9CIi9iq7ruTxUJHpoy5QawuR55wlAE0mM/tSc0te/t5euLfmnTczNnq7G5ZHZA+7JR0M bxuiwY8blhecPetnlzerLhPn4e/9pyXIFnqgniFEZEq5drwPT6/s9m7ibBuasemZl99T 9WW8wKcxu5jc3bvxYDgg0xj+bnRDm+sCabfBEAdTdpBzh3ikjSpYUf79fWwAnQp0I9V5 4tFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=dRDqxK1U; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id gn12-20020a1709070d0c00b007ae26c753edsi11310140ejc.52.2022.12.26.20.36.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Dec 2022 20:36:36 -0800 (PST) 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=@gcc.gnu.org header.s=default header.b=dRDqxK1U; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BCEA53858412 for ; Tue, 27 Dec 2022 04:36:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BCEA53858412 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1672115795; bh=iAJcLChQMbxrg1h0EkXdm7nMJF9Nfav1QypwnGoURj0=; h=To:Cc:Subject:References:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=dRDqxK1Ui3XOeBFWMetmqy7YgV/VwK/9nfSqGPx8ISKtBFY67vQ5Zl7SJoufiwA6M QqaqJu/wUd3Ggjjn9zwbqlhi5tsi3UpQ8E5hz7DaV2+wpQTv+lj3c1IoJXB772yxTa 9McCTxUyTlbqnhi0KfTGTGbx8c6NJBYtJB/XFE6U= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from rock.gnat.com (rock.gnat.com [205.232.38.15]) by sourceware.org (Postfix) with ESMTPS id AC7D03858D32 for ; Tue, 27 Dec 2022 04:35:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AC7D03858D32 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 74C2B1162AB; Mon, 26 Dec 2022 23:35:53 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at gnat.com Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id FFiPhLlJGumF; Mon, 26 Dec 2022 23:35:53 -0500 (EST) Received: from free.home (tron.gnat.com [IPv6:2620:20:4000:0:46a8:42ff:fe0e:e294]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by rock.gnat.com (Postfix) with ESMTPS id 2292F11628F; Mon, 26 Dec 2022 23:35:52 -0500 (EST) Received: from livre (livre.home [172.31.160.2]) by free.home (8.15.2/8.15.2) with ESMTPS id 2BR4ZjLR712560 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 27 Dec 2022 01:35:45 -0300 To: gcc-patches@gcc.gnu.org Cc: Richard Biener Subject: [10/13] lto: drop dummy partition mapping Organization: Free thinker, does not speak for AdaCore References: Date: Tue, 27 Dec 2022 01:35:45 -0300 In-Reply-To: (Alexandre Oliva's message of "Tue, 27 Dec 2022 01:07:35 -0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Alexandre Oliva via Gcc-patches From: Alexandre Oliva Reply-To: Alexandre Oliva Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753340493733181806?= X-GMAIL-MSGID: =?utf-8?q?1753340493733181806?= When adding a catch-all partition, we map NULL to it. That mapping is ineffective and unnecessary. Drop it. Regstrapped on x86_64-linux-gnu. Ok to install? for gcc/lto/ChangeLog * lto-partition.cc (lto_1_to_1_map): Drop NULL partition mapping. --- gcc/lto/lto-partition.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/gcc/lto/lto-partition.cc b/gcc/lto/lto-partition.cc index ebb9c3abe128c..654d67f272e92 100644 --- a/gcc/lto/lto-partition.cc +++ b/gcc/lto/lto-partition.cc @@ -333,7 +333,6 @@ lto_1_to_1_map (void) else { partition = new_partition (""); - pmap.put (NULL, partition); npartitions++; }