From patchwork Wed Jul 5 06:41:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 115951 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1671878vqx; Tue, 4 Jul 2023 23:43:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlE11EBnPBoTKyKTtFBIZidxCnG403pGgitUxm1LmrCygUknJbLE3DeeSv9EOZ3HBbqeaQWL X-Received: by 2002:a17:906:2097:b0:992:1ecb:d296 with SMTP id 23-20020a170906209700b009921ecbd296mr1217563ejq.12.1688539437510; Tue, 04 Jul 2023 23:43:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688539437; cv=none; d=google.com; s=arc-20160816; b=Vc4kXTOkmliu8DsEoyTNYHDZ2l3t9mzFN9v6avj9TN89OCd+d8+fb9xVt+D0k2V04v 2ahKSStOKGHEkNomtqDIScNsxO/lIH6jou/YkkK27uzV4lytGn/QbXZYpPKHKv0oeVvj dW+5dka0m8BirnDjxxPECcziy4IaaB8uModMfKX/6mhpA+NGMfjsVTUxbKOJ9wjWrjC2 jWEZMJ8ID+RqSgqWLMIWFlxY1AhPWdcHdxFcgy/JlnIBOIPQNCEheL+9kMEeFnDujTru oukCLjiJH4JaMW/tCCWWviaoxieTR8OMH61VYqVKqMV3zJKGLZ7YmFs+sobtPT7xYkgv 2gjQ== 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=o9vOz9uoLy5qQr2vI9eLqmjOv9oXREYko5UWR991eKc=; fh=sJ+2/4g29YdyXkoRrFZSpsL2zxijepB7X/1rB0LDDh8=; b=vNzFeRc+xv1Kzwoll9JAL1kD5J9dTIHItYU4oXF/1OQJUvelP1yyE/y2myYZULfU27 Kw8Ybm8HTYkzHpx7mKvbj06aA7EXYX+LNsSBRsmX+sW4MM8uz37+UgQZb+iykzvpNZmc WmAycCVOS+3OQg7GiH/z8JwogY0kD9Qtntu23zHbVEdBR5yCRuuy+27n4OzunoTOPCZx dSMhG5NUMrzUIvpVgzGFwZPZmvidxgzPKkWO25pZU/V+WMY8eQBS9vRC0+Z/X1oS3a+R 11ZP8Z+AMY9Suhm9wg144BsSASUg459Y8y2JegHs5GZ8bf0Mh2nFIYJ/iC1zrbB8Fdwg 1bxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=CTmo7YRn; 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 c25-20020a170906695900b009926703c4b9si4863663ejs.413.2023.07.04.23.43.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jul 2023 23:43:57 -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=CTmo7YRn; 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 D1EB33853D04 for ; Wed, 5 Jul 2023 06:42:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D1EB33853D04 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688539320; bh=o9vOz9uoLy5qQr2vI9eLqmjOv9oXREYko5UWR991eKc=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=CTmo7YRn2R0CluIkhdzxNEG6uB7b63ObItNqF5h7srAwUWv5sOJAhHxY3ddw8a+H4 K8ZyYqJHW9ob4thRIJ7wNy+5d0rp4HFBuBPj+/fes3T8doE3F7Fgfd9N9Uf8zJpSch EQJPfr4CaIVNGj7v/4vbZhJGaJHcvqAPmwh3L9fE= 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 DCA4B3853D0E for ; Wed, 5 Jul 2023 06:41:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DCA4B3853D0E 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-108-CW46_0O8PImb8eVgeroHDQ-1; Wed, 05 Jul 2023 02:41:14 -0400 X-MC-Unique: CW46_0O8PImb8eVgeroHDQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 37EF338149A7; Wed, 5 Jul 2023 06:41:14 +0000 (UTC) Received: from localhost (unknown [10.42.28.54]) by smtp.corp.redhat.com (Postfix) with ESMTP id 02C7140C2063; Wed, 5 Jul 2023 06:41:13 +0000 (UTC) To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] libstdc++: Disable std::forward_list tests for C++98 mode Date: Wed, 5 Jul 2023 07:41:07 +0100 Message-ID: <20230705064113.1143661-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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 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?1770561928929694095?= X-GMAIL-MSGID: =?utf-8?q?1770561928929694095?= Tested x86_64-linux. Pushed to trunk. -- >8 -- These tests fail with -std=gnu++98/-D_GLIBCXX_DEBUG in the runtest flags. They should require the c++11 effective target. libstdc++-v3/ChangeLog: * testsuite/23_containers/forward_list/debug/iterator1_neg.cc: Skip as UNSUPPORTED for C++98 mode. * testsuite/23_containers/forward_list/debug/iterator3_neg.cc: Likewise. --- .../testsuite/23_containers/forward_list/debug/iterator1_neg.cc | 2 +- .../testsuite/23_containers/forward_list/debug/iterator3_neg.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/iterator1_neg.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/iterator1_neg.cc index a0e05413896..59a22f7ec89 100644 --- a/libstdc++-v3/testsuite/23_containers/forward_list/debug/iterator1_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/forward_list/debug/iterator1_neg.cc @@ -15,7 +15,7 @@ // with this library; see the file COPYING3. If not see // . // -// { dg-do run { xfail *-*-* } } +// { dg-do run { target c++11 xfail *-*-* } } // { dg-require-debug-mode "" } #include diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/iterator3_neg.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/iterator3_neg.cc index bfa281ad9f4..0c4439f46ed 100644 --- a/libstdc++-v3/testsuite/23_containers/forward_list/debug/iterator3_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/forward_list/debug/iterator3_neg.cc @@ -15,7 +15,7 @@ // with this library; see the file COPYING3. If not see // . // -// { dg-do run { xfail *-*-* } } +// { dg-do run { target c++11 xfail *-*-* } } // { dg-require-debug-mode "" } #include