From patchwork Fri Feb 24 14:25:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 61337 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp938074wrd; Fri, 24 Feb 2023 06:26:20 -0800 (PST) X-Google-Smtp-Source: AK7set+pruWnvYkWrhI9FW7p+grazkRtezkI06f85Hp7mPhl1hBS39zcG18CmDDmUz4N3nS8NXH2 X-Received: by 2002:aa7:ce14:0:b0:4ac:bbb4:9772 with SMTP id d20-20020aa7ce14000000b004acbbb49772mr14344073edv.40.1677248780460; Fri, 24 Feb 2023 06:26:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677248780; cv=none; d=google.com; s=arc-20160816; b=0ApcHg5It1MFOOF4Ic7jSr4MQ5wlHLA9fbtBFh2R6VXBsdubMDqhJ5KFNwrfv/hml7 bGvK+2gF2ITUtbiOwzuxcsXpOCJYJmqUpyY12sc6VopxCBYo6/+My8buvlgh4jNL7Y5c +lxeA0TcuYLW22O8U7G4xBwF0ZY/dGC97c+vTCokILlkWM1b0Ze1EGt2I1Uk4vkxXJPi w1v1oylS83TvrbJiVzFqvV+9t3I5kh0wU+gUbKGN4wTUU+ZweQ9MRaKcWVS/zidwIDnT BiFg0OSDB7td7zm6805RjVKRdbxWY+elsVb7dZ60/1o/6ZEmTqs2nmmExkUribWCJuJ0 Hrfg== 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=z6mJGSWbAumfz/FgKn5QK6KQD+okYPXBeT4nUeAAcrw=; b=t/S36LEi1/5/PN/gDzSCVoKwvpWJqBBkzXw5ohonWfUwaSsC6wEKY9loxOLs4DyZGR yOCMvCKPHFdIe90cyZ59nu1hgGKuKPa7uc081X3mFuehCh7MuiB+TJ38bSl5RUUcI9v4 JutsAG9Iwo7vKnIL4KqikvH6vRAXtO7c0OuLl+GtkborkLop3JzJ5NxX6nC5DZBKjF2P /PguH6V7Gd8YYob1WLZuDNxdunTgLFI1TwVBOw6zdXkyvfF+KU3CEm/6Ei5rhM2zkdKw CkbxNB1DVro4kT+kUCoQtJ/b+zzL6oRqv4jYW855A3I+wRZczRMoX/XY2Fqgl+9XB+NB QKXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=YmYh6M2F; 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 g22-20020aa7d1d6000000b004acede4d6cesi13062324edp.175.2023.02.24.06.26.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Feb 2023 06:26:20 -0800 (PST) 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=YmYh6M2F; 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 A5E7F3851ABC for ; Fri, 24 Feb 2023 14:26:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A5E7F3851ABC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677248769; bh=z6mJGSWbAumfz/FgKn5QK6KQD+okYPXBeT4nUeAAcrw=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=YmYh6M2FyeCMiWSuR3+jf6bgn7Iwoa3ViNFQIwc4jmHMPDI9W59p1+dBEOaY2zrW7 CqerLfPWgoVLaWZ7iAG7bAnSE0DK+bMw4MvKVyMKwgjsj++Ks2AlgRsjUxw0oAnCYk wKyeL2RgJMQ/mBhXB26TMOw17RFmC9NbdHaoZKAI= 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.133.124]) by sourceware.org (Postfix) with ESMTPS id 5DD11385840F for ; Fri, 24 Feb 2023 14:25:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5DD11385840F Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-96-dMAi8LGtPuWonVkkEuMWLg-1; Fri, 24 Feb 2023 09:25:24 -0500 X-MC-Unique: dMAi8LGtPuWonVkkEuMWLg-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id AB617887403; Fri, 24 Feb 2023 14:25:23 +0000 (UTC) Received: from localhost (unknown [10.33.36.228]) by smtp.corp.redhat.com (Postfix) with ESMTP id 74C27440D8; Fri, 24 Feb 2023 14:25:23 +0000 (UTC) To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] libstdc++: Suppress warnings about use of deprecated std::aligned_storage Date: Fri, 24 Feb 2023 14:25:22 +0000 Message-Id: <20230224142522.713327-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-11.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_NONE, RCVD_IN_MSPIKE_H2, 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jonathan Wakely via Gcc-patches From: Jonathan Wakely Reply-To: Jonathan Wakely 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?1758722817193345110?= X-GMAIL-MSGID: =?utf-8?q?1758722817193345110?= Tested powerpc64le-linux. Pushed to trunk. -- >8 -- libstdc++-v3/ChangeLog: * include/ext/aligned_buffer.h (__aligned_buffer): Add diagnostic pragmas. --- libstdc++-v3/include/ext/aligned_buffer.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libstdc++-v3/include/ext/aligned_buffer.h b/libstdc++-v3/include/ext/aligned_buffer.h index 765d14684f2..dc62dfc8741 100644 --- a/libstdc++-v3/include/ext/aligned_buffer.h +++ b/libstdc++-v3/include/ext/aligned_buffer.h @@ -81,6 +81,8 @@ namespace __gnu_cxx template using __aligned_buffer = __aligned_membuf<_Tp>; #else +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" // Similar to __aligned_membuf but aligned for complete objects, not members. // This type is used in , , // and , but ideally they would use __aligned_membuf @@ -118,6 +120,7 @@ namespace __gnu_cxx _M_ptr() const noexcept { return static_cast(_M_addr()); } }; +#pragma GCC diagnostic pop #endif } // namespace