Message ID | 8266b5be-256c-4be2-84db-3a880e849d41@gmail.com |
---|---|
State | Accepted, archived |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> 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 <ouuuleilei@gmail.com> (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 <ouuuleilei@gmail.com>; 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) Content-Type: multipart/mixed; boundary="------------M80YyDLeTjSQp7DulMFTN8pj" 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" <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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: =?utf-8?q?Fran=C3=A7ois_Dumont_via_Gcc-patches?= <gcc-patches@gcc.gnu.org> Reply-To: =?utf-8?q?Fran=C3=A7ois_Dumont?= <frs.dumont@gmail.com> Cc: gcc-patches <gcc-patches@gcc.gnu.org> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746514459797379768?= X-GMAIL-MSGID: =?utf-8?q?1746514459797379768?= |
Series |
PR 107189 Remove useless _Alloc_node
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
François Dumont
Oct. 12, 2022, 8:18 p.m. UTC
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
Comments
Gentle reminder. Sorry if I should have committed it as trivial but I cannot do it anymore now that I asked :-) On 12/10/22 22:18, François Dumont wrote: > 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
Still no chance to review ? On 14/11/22 18:56, François Dumont wrote: > Gentle reminder. > > Sorry if I should have committed it as trivial but I cannot do it > anymore now that I asked :-) > > > On 12/10/22 22:18, François Dumont wrote: >> 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 > >
OK for trunk, sorry for not getting to it sooner. On Wed, 4 Jan 2023 at 21:13, François Dumont via Libstdc++ <libstdc++@gcc.gnu.org> wrote: > > Still no chance to review ? > > On 14/11/22 18:56, François Dumont wrote: > > Gentle reminder. > > > > Sorry if I should have committed it as trivial but I cannot do it > > anymore now that I asked :-) > > > > > > On 12/10/22 22:18, François Dumont wrote: > >> 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 > > > >
On Thu, 12 Jan 2023 at 12:01, Jonathan Wakely wrote: > > OK for trunk, sorry for not getting to it sooner. P.S. I do think this one would have been OK to commit as obvious, since it's just removing an unused variable and so has no effect on anything. > > On Wed, 4 Jan 2023 at 21:13, François Dumont via Libstdc++ > <libstdc++@gcc.gnu.org> wrote: > > > > Still no chance to review ? > > > > On 14/11/22 18:56, François Dumont wrote: > > > Gentle reminder. > > > > > > Sorry if I should have committed it as trivial but I cannot do it > > > anymore now that I asked :-) > > > > > > > > > On 12/10/22 22:18, François Dumont wrote: > > >> 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<!__same_value_type<_InputIterator>::value> _M_insert_range_equal(_InputIterator __first, _InputIterator __last) { - _Alloc_node __an(*this); for (; __first != __last; ++__first) _M_emplace_equal(*__first); }