From patchwork Mon Jul 3 23:08:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 115510 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp843281vqx; Mon, 3 Jul 2023 16:09:52 -0700 (PDT) X-Google-Smtp-Source: APBJJlHk78Y/tIZPr3LXjv1UBSBsBxzl1QvEEOQ1Gv08iAZldZFqkxt5037SmEtMYXCOnThcavl3 X-Received: by 2002:aa7:de01:0:b0:51e:fd3:ae5f with SMTP id h1-20020aa7de01000000b0051e0fd3ae5fmr2889120edv.19.1688425792195; Mon, 03 Jul 2023 16:09:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688425792; cv=none; d=google.com; s=arc-20160816; b=A4MmHTTQxdQINHacqmdr8INkEl8xqH/Az0bdgn5WpiJkoek3+iTxzjuWK/IbA9O6v8 URbdwjoAIABlNGP9q40O8XPVXOyGjqzwQhDnHPJ5lAAoFgQNAoQq981R7X1RGBQnVse+ GGzX+S27RKXZLkejDHpKayiDp7WUb0+Nj5yAi0Fvi1hl009HiSLrUpr5ZgOayH7EUiL2 eeqItKhffCjyIyZIOoqk0q9qosd1tTQuQiVthACK26a/CFa2PlHWrXo0UUgHT+opM8x6 528ZE8e5+f6cP9j2QByKl290lEd3vZURjUEy0anUS/UlrHYyo1Rl+r0McIXWvHSUY23J dKWA== 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=XdbCzxVrWDXlQ5x0lCheX5oJ+n0Mh2qOhiZVmYEBeXc=; fh=sJ+2/4g29YdyXkoRrFZSpsL2zxijepB7X/1rB0LDDh8=; b=g0guYlwu7w+JUQ/XU/jtm4b7xhDqfZwpye7n9wMzVwpe0BGer0TEXQ5J81Vp2rA5NJ cPScwX0fCFClaffW5bIJy01m6/f6R9RnzSfL2mNQBKGxHXG5zdy4gOy8A05Ki6H11p2+ HiF2UoYcbKk259HogtZdlFpgTD9Yh6pWZ2SgcK8x1RuqfVE8+CCS3ON6AplxgwBPTmch ZF9T8DxhzzZs5t9PpkX93ZX3eE1tzvcsTKPNw6IIZ+Ux6aXvjdGeAib+G+CZga3UEwYu xEsGawtdoAjCNA73sMa1COPcUNxuwAV15ObEpodvtnYdbmvRqKq2n90aM14cGpwjjdGp Arog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=EYiYDp4z; 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 (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id c5-20020aa7d605000000b0051e0e397052si2146692edr.604.2023.07.03.16.09.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 16:09:52 -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=EYiYDp4z; 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 E06583857713 for ; Mon, 3 Jul 2023 23:09:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E06583857713 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688425790; bh=XdbCzxVrWDXlQ5x0lCheX5oJ+n0Mh2qOhiZVmYEBeXc=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=EYiYDp4zXXKl7+KEjKCj+0IxVitv2WYBROlfHkp3Ky7dJnKEeIyYKT8xgkyzwtmES uED55lmRoxwS2s5wD01kEq0u/o6GF4XitVgttwCTm0pck3YdZs7PF+YagRautjDc2R Qv73uCLc5qoRhh7f1bzKYRf8BV35mzXrauAL5ugo= 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 61FC83857027 for ; Mon, 3 Jul 2023 23:08:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 61FC83857027 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-327-u1gRyWnIOLKMuQNu_IAM5g-1; Mon, 03 Jul 2023 19:08:29 -0400 X-MC-Unique: u1gRyWnIOLKMuQNu_IAM5g-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 43C5E8007CE; Mon, 3 Jul 2023 23:08:29 +0000 (UTC) Received: from localhost (unknown [10.42.28.54]) by smtp.corp.redhat.com (Postfix) with ESMTP id 10799492C13; Mon, 3 Jul 2023 23:08:28 +0000 (UTC) To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] libstdc++: Fix synopsis test Date: Tue, 4 Jul 2023 00:08:13 +0100 Message-ID: <20230703230828.995791-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 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_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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?1770442763603272317?= X-GMAIL-MSGID: =?utf-8?q?1770442763603272317?= Tested x86_64-linux. Pushed to trunk. -- >8 -- The header is only supported for the cxx11 ABI. The declarations of basic_syncbuf, basic_osyncstream, syncbuf and osyncstream were already correctly guarded by a check for _GLIBCXX_USE_CXX11_ABI, but the wsyncbuf and wosyncstream declarations were not. libstdc++-v3/ChangeLog: * testsuite/27_io/headers/iosfwd/synopsis.cc: Make wsyncbuf and wosyncstream depend on _GLIBCXX_USE_CXX11_ABI. --- libstdc++-v3/testsuite/27_io/headers/iosfwd/synopsis.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libstdc++-v3/testsuite/27_io/headers/iosfwd/synopsis.cc b/libstdc++-v3/testsuite/27_io/headers/iosfwd/synopsis.cc index b6d3fa7a719..12f47ae8133 100644 --- a/libstdc++-v3/testsuite/27_io/headers/iosfwd/synopsis.cc +++ b/libstdc++-v3/testsuite/27_io/headers/iosfwd/synopsis.cc @@ -115,7 +115,7 @@ _GLIBCXX_END_NAMESPACE_CXX11 typedef basic_ofstream wofstream; typedef basic_fstream wfstream; -#if __cplusplus >= 202002L +#if __cplusplus >= 202002L && _GLIBCXX_USE_CXX11_ABI typedef basic_syncbuf wsyncbuf; typedef basic_osyncstream wosyncstream; #endif