From patchwork Wed Oct 12 20:18:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Fran=C3=A7ois_Dumont?= X-Patchwork-Id: 1971 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp2787953wrs; Wed, 12 Oct 2022 13:19:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4m9R9N7P9/mGrO1rLSHmqmdjYtyiZQGcC3y6V3i3Oc2T7SRqAyMkAlgR0uGb7wDXS6Beom X-Received: by 2002:aa7:c58a:0:b0:459:1511:6cff with SMTP id g10-20020aa7c58a000000b0045915116cffmr29283486edq.27.1665605983529; Wed, 12 Oct 2022 13:19:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665605983; cv=none; d=google.com; s=arc-20160816; b=mlHjQVqd8MtVf0jCpjzgwcIAbxnhT25Os7f2NDKEd681rq0zDiYkk3mFMuBMGaR6Og lL9eD0v+VimCRKOVtP8Js+KMNipt1nkvvenkRsenIjnKj+sjOtW7WeuRbz5U8jDGvXqK LcrLU+GK0rcd/SlkxehXXLuAIFjGS0FFXS6V8bxEYGf4wddhVTuC6ZYSY6vyGKl1X17+ PIpuk+pkfBkdOoiQh0cYkPnZ1LgARZ+MOGGA/evQY/MGyTWa5K7Ww6TIARc06wdlhzao bwQigmdsP35/OD1J8GoqJC9GV4R85l2Z+Ye0NKaduDqoD1ymuIGOrHf6WO5ybCpEtoE3 ckcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:from:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :to:content-language:user-agent:mime-version:date:message-id :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=ToufLk81ezq1q1dYDYWcO54Z1h5EB2CJrutYvCeDN6A=; b=tfxQ7Vg20+8qCxVIOjLqADPgsiD6Bsb7RX5uvEJPaST7WTh4oSmCGEVoQxCqI0iMQt 4h1sRd6N6el23V32dzz/g+U7UAvZFD/C1AO2+VkqJAZU1SFhlQbdPwSLMorxMyYWFqSI rljFWYJIwzvzl/FkJA11DOlSN6sNwVxseWJAfbz3UZRfeV5aIZSA3up7icRO7K2Ks5xa 5kuIbK60KVq4eOmypcCh/MEznBFjBuoqQRgxTKJZpiPBuTM0Pybrb8fdiHicZEm3O+Gj xtPThWTXxWdm4mW6e3BBOYB7ysRE9Jg30NWuDPJlgWCEUZXkCAnPSDg3uCNEx93IfmLs /GeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=FgSucRRN; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id di19-20020a170906731300b0078dcdb1c9dfsi6959701ejc.553.2022.10.12.13.19.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Oct 2022 13:19:43 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=FgSucRRN; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 CA3613851152 for ; Wed, 12 Oct 2022 20:19:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CA3613851152 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665605963; bh=ToufLk81ezq1q1dYDYWcO54Z1h5EB2CJrutYvCeDN6A=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=FgSucRRNEUn0Kywfetplp4lcCqdgAZ7h9P976urCXeUyb42BGNkjw1o0qKY7Utoud FOU4wKO7ZbrAPUvxvgzSgto7ALofd5Hn/GJrB8iaWH7AuSzDmfsxBZth7jd60k/Y/f SGxeg9vw2B9GVVARjWffaNwznfQOXbvZTOBHQdkA= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by sourceware.org (Postfix) with ESMTPS id 2854D3858D38; Wed, 12 Oct 2022 20:18:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2854D3858D38 Received: by mail-wm1-x330.google.com with SMTP id ay36so11073788wmb.0; Wed, 12 Oct 2022 13:18:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=subject:from:cc:to:content-language:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ToufLk81ezq1q1dYDYWcO54Z1h5EB2CJrutYvCeDN6A=; b=HH3BwcFPziDD6GR48xRlagT8gonZTm6k59ry/5pscQLPIIS1cSZ64c+ZwRxmkc2ITv 0YKjqr/DF+tMzvKdCZxjw4D7S3/iQEK7yUD2ixqXhBGejLbWtpTVLZ2OUF4jlT+GIyoa n7Ewg5czfR2QlUIb/RrYrgPiNiVPjwlogHdGB3uZaC8axxrW49mLGRPk4QMCg3peBPGU GjE66m2v3txW+2Kq7vo4ykQHz/mOvcNQMA0qisgaC0b1qptXQKwFdjdbCmVU646tB6Ck 1UjO6GwBVsW4+sdiAEa3vkf1RuLWnsQDq+aNZe8gV4kuk1hzRnxTP9al3Hgr30F+z6Js 2fcw== X-Gm-Message-State: ACrzQf2b6Jo/DcJVeEDVPyT4ltd2OPqNX8+yMBaAUBaVATtD3IIWaGhe PqOMs9LdMhNgQLAD92t38w7IveItrlA= X-Received: by 2002:a05:600c:3506:b0:3b4:c086:fa37 with SMTP id h6-20020a05600c350600b003b4c086fa37mr4161992wmq.165.1665605918575; Wed, 12 Oct 2022 13:18:38 -0700 (PDT) Received: from ?IPV6:2a01:e0a:1dc:b1c0:4b8f:cd55:e46d:c234? ([2a01:e0a:1dc:b1c0:4b8f:cd55:e46d:c234]) by smtp.googlemail.com with ESMTPSA id n16-20020a5d51d0000000b0022f40a2d06esm505794wrv.35.2022.10.12.13.18.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Oct 2022 13:18:37 -0700 (PDT) Message-ID: <8266b5be-256c-4be2-84db-3a880e849d41@gmail.com> Date: Wed, 12 Oct 2022 22:18:37 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Content-Language: fr To: "libstdc++@gcc.gnu.org" Subject: [PATCH] PR 107189 Remove useless _Alloc_node X-Spam-Status: No, score=-9.7 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, 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: =?utf-8?q?Fran=C3=A7ois_Dumont_via_Gcc-patches?= From: =?utf-8?q?Fran=C3=A7ois_Dumont?= Reply-To: =?utf-8?q?Fran=C3=A7ois_Dumont?= Cc: gcc-patches 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?1746514459797379768?= X-GMAIL-MSGID: =?utf-8?q?1746514459797379768?= libstdc++: Remove _Alloc_node instance in _Rb_tree [PR107189]     libstdc++-v3/ChangeLog:             PR libstdc++/107189             * include/bits/stl_tree.h (_Rb_tree<>::_M_insert_range_equal): Remove             unused _Alloc_node instance. Ok to commit ? François diff --git a/libstdc++-v3/include/bits/stl_tree.h b/libstdc++-v3/include/bits/stl_tree.h index a4de6141765..33d25089a1d 100644 --- a/libstdc++-v3/include/bits/stl_tree.h +++ b/libstdc++-v3/include/bits/stl_tree.h @@ -1123,7 +1123,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION __enable_if_t::value> _M_insert_range_equal(_InputIterator __first, _InputIterator __last) { - _Alloc_node __an(*this); for (; __first != __last; ++__first) _M_emplace_equal(*__first); }