Message ID | 20220915225856.413536-1-jwakely@redhat.com |
---|---|
State | New, archived |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5044:0:0:0:0:0 with SMTP id h4csp491013wrt; Thu, 15 Sep 2022 15:59:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ZBpFPHiyIzVv49BgEtgDy3QLzyeVDGlptbQv7K0WfyzmFgbheMmSN+BWNn+LOdTqXBcp8 X-Received: by 2002:a05:6402:1a4d:b0:44e:221d:d1dd with SMTP id bf13-20020a0564021a4d00b0044e221dd1ddmr1724476edb.267.1663282798317; Thu, 15 Sep 2022 15:59:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663282798; cv=none; d=google.com; s=arc-20160816; b=OfL9KWa3h2HhPbMagSzV5lFrNr3n8y9pRubEHdcVU74wKscag8MlfryNSfjaxDOycz v+56hE758uNuh+kxAU+JC7uH1TMpkozIiQKMWqLGDHizomRSyaFBYK5NCgzr0wtFqX6j UfebJYXa0dL7KFFuLKVdjPWn8RvF8N7bah208uBEIHMHfdeWU+66WJm/YZ6igCNzoZCW 6Addn5V2mSWBxT2cSRQTpMbM/Nh1KLsioCWLU96xFyuKzXGZlj9NjEcjphozVGvL9d/D brgW11KPLnzjNnUuqElayE0OKv3+C1L33JccgD12fpT+yUnv0t4SkZ+qSx3UKUIHffYq gQpg== 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 :content-transfer-encoding:mime-version:message-id:date:subject:to :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=rMiz2MVzDR6/I6euPboFiIMkGr8nsY2z7ES5lGAB4d0=; b=eGO5Ib/4NuKk8h9lSmoM27d4iQ/V97h7N5okUELgykqHt8yXfhguGN1uElqVnHVEB5 ITj2JmG31uNnnP52eYXeXxdGI6Xgqb7XNnuZzE1yG+hTqJ89EVN8pTnzrOR/6ZQSSKxJ +OfrAZqEkUVx8lCcfpCAVVm97jgSvhTHoOGNh30kzUs17rG6ozEeEZKRDtP/zodxEsL9 uvZHoX2w1Se56BeM2eD1JFn5NU16m5zp/pXs0aH3p4FYwP561t+XwkVuoRCyEGeOE46B q9wIBEn+i/mqoY8CMKOo3IU/9V2j97Avw99RVY5WOT7pWwU3e/lVA9X8TeSpGkBdn316 gW+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=oSj9x57Y; 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 (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id hp15-20020a1709073e0f00b0077f009c0f04si9994459ejc.94.2022.09.15.15.59.58 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Sep 2022 15:59:58 -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=@gcc.gnu.org header.s=default header.b=oSj9x57Y; 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 718363949F2F for <ouuuleilei@gmail.com>; Thu, 15 Sep 2022 22:59:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 718363949F2F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663282784; bh=rMiz2MVzDR6/I6euPboFiIMkGr8nsY2z7ES5lGAB4d0=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=oSj9x57YOTuLUPHupYeMzL7LBchzZ+sHEB3rd/bNaN3iOQoZH8kGmJxdGxf5Fzgp8 g8RSb5xhIFOuO8z/L+Sr9W8k+uDI/qoi05cjGTAM8L3HA0NyXhM75QIACHO40PK3CY 7K6v01KnijyeKVaz+oAzqqwkluHsmZc5oLyy6IMg= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 8B347393BA74 for <gcc-patches@gcc.gnu.org>; Thu, 15 Sep 2022 22:59:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8B347393BA74 Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-643-yci-Q1nRNlinMuWqN0h7UQ-1; Thu, 15 Sep 2022 18:58:57 -0400 X-MC-Unique: yci-Q1nRNlinMuWqN0h7UQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id DAF551C068CD; Thu, 15 Sep 2022 22:58:56 +0000 (UTC) Received: from localhost (unknown [10.33.36.214]) by smtp.corp.redhat.com (Postfix) with ESMTP id A247E1121314; Thu, 15 Sep 2022 22:58:56 +0000 (UTC) To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] libstdc++: Remove unnecessary header from <memory> Date: Thu, 15 Sep 2022 23:58:56 +0100 Message-Id: <20220915225856.413536-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.8 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=unavailable 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: Jonathan Wakely via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Jonathan Wakely <jwakely@redhat.com> 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?1744078423374170717?= X-GMAIL-MSGID: =?utf-8?q?1744078423374170717?= |
Series |
[committed] libstdc++: Remove unnecessary header from <memory>
|
|
Commit Message
Jonathan Wakely
Sept. 15, 2022, 10:58 p.m. UTC
Tested powerpc64le-linux, pushed to trunk. -- >8 -- Previously <memory> included <bits/stl_algobase.h> so that std::copy, std::fill etc. could be used by <bits/stl_uninitialized.h>. But that includes it explicitly now, so that it can be compiled as a header unit. There's no need to include it in <memory>, where its purpose isn't obvious. libstdc++-v3/ChangeLog: * include/std/memory: Do not include <bits/stl_algobase.h>. --- libstdc++-v3/include/std/memory | 1 - 1 file changed, 1 deletion(-)
diff --git a/libstdc++-v3/include/std/memory b/libstdc++-v3/include/std/memory index 481fa42a618..20a55020a36 100644 --- a/libstdc++-v3/include/std/memory +++ b/libstdc++-v3/include/std/memory @@ -60,7 +60,6 @@ * Smart pointers, etc. */ -#include <bits/stl_algobase.h> #include <bits/allocator.h> #include <bits/stl_construct.h> #include <bits/stl_uninitialized.h>