From patchwork Fri May 12 13:44:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 93208 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp5118437vqo; Fri, 12 May 2023 06:46:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7yp5rRZZb7xKcAGc0J666L8MM5H6YHQmT8i31cJoT7Je0XPC8PDhtEK6qDlJAcSvjs4AOn X-Received: by 2002:a17:906:dc93:b0:965:d7c7:24cc with SMTP id cs19-20020a170906dc9300b00965d7c724ccmr25152263ejc.23.1683899188572; Fri, 12 May 2023 06:46:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683899188; cv=none; d=google.com; s=arc-20160816; b=wRDAqTzHPaSD9DILL67KkYxbN8LAamU5J6vzR+Z72hQ5fP7np09JIbrh1d1SuKjVXr o4P7HWD0+FoaeQZPptE0nJEcVaa8qFQDnhD/RQJxsckMTKWfbXN4R1DjfXARHgB+ewLQ wE+Ja8PHScenFfUMNvcXml6enDkDr6g6TMRUMztOk9Mi3FCoadb7PFcdLSKRGCanwqNq 4TG0wuXrCTIGjxJWedooA7ivblitQALRDj5dOQ9hZugaij3VXtjMuDPD6AlIjL8To4el ePV4yiN9t47c+8qPPCSxBrAavcZG0WmkE1WosmMMDEQZaIFK+AjkBS69eMrH16KaBWR1 zjUA== 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=IMk34F3sQYF9hZ1D1RaQ2RmFidu8h4U3OMpIQOjOmGE=; b=XNHhTJjr5lJEz3M+P6JJqW6UbjMpW2B7Z+9tSoyJIZlodYvu7MwwbkzvVD9yqABxvG 666P4/7V2JDV5fZ0KsPG/Q53WFu2C3DLS5FSLK3vLaap7U4X2TlT4Fe1ElRbv4W8bqyp cMgiyKAS1TcXQY65AVJ1CcAIC2NjOhTREvw1ozRIfHlUbpHcWbzHnFdy+6hCjQUFX3Ro V2KNay+AXcSb5WwgItw4lFLrjjk7zOrCjlNB0BxW9gQkl3LXiuNjHNrVQjltxO+s3gFl /FoTr2n/MbYedrHXrltAmyDTLq1PbGb+hqbTMdmNJto7TGk9i4wTPhR9gudk9AlgugJ1 ivSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=tQYi48U4; 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 (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id rl18-20020a170907217200b0094edbf6c509si7288133ejb.455.2023.05.12.06.46.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 06:46:28 -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=tQYi48U4; 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 AEDCC38708E8 for ; Fri, 12 May 2023 13:45:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AEDCC38708E8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683899119; bh=IMk34F3sQYF9hZ1D1RaQ2RmFidu8h4U3OMpIQOjOmGE=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=tQYi48U4YkN2p2UxmaUBua51fX1ahRFFnkjPZIx/rioEtowHu6ljTtoEE0QJo/eMa 3uBwTSlqLBryRUjddoa/yiSUlml0wcMEhYZlS7YWJW0v8bqJnwpiw9e7EZAm1Nkf/M zFs7ZWxX9H1zxZfYg43J6nBePonHwXccwQXz+Ao0= 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 E777C3858C78 for ; Fri, 12 May 2023 13:44:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E777C3858C78 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-644-1nYQknsKOp60LH2xkyD4zg-1; Fri, 12 May 2023 09:44:32 -0400 X-MC-Unique: 1nYQknsKOp60LH2xkyD4zg-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 07FA185C069; Fri, 12 May 2023 13:44:32 +0000 (UTC) Received: from localhost (unknown [10.42.28.178]) by smtp.corp.redhat.com (Postfix) with ESMTP id C2CD340104E; Fri, 12 May 2023 13:44:31 +0000 (UTC) To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] libstdc++: Remove test dependencies on _GLIBCXX_USE_C99_STDINT_TR1 Date: Fri, 12 May 2023 14:44:31 +0100 Message-Id: <20230512134431.1289116-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, 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?1765696275571410897?= X-GMAIL-MSGID: =?utf-8?q?1765696275571410897?= Tested x86_64-linux. Pushed to trunk. -- >8 -- These #ifdef checks should have been removed in r9-2029-g612c9c702e2c9e when the u16string_view and u32string_view aliases were changed to be defined unconditionally. libstdc++-v3/ChangeLog: * testsuite/21_strings/basic_string_view/typedefs.cc: Remove dependency on _GLIBCXX_USE_C99_STDINT_TR1. * testsuite/experimental/string_view/typedefs.cc: Likewise. --- libstdc++-v3/testsuite/21_strings/basic_string_view/typedefs.cc | 2 -- libstdc++-v3/testsuite/experimental/string_view/typedefs.cc | 2 -- 2 files changed, 4 deletions(-) diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/typedefs.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/typedefs.cc index b139e51e107..1beb2e1c54d 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/typedefs.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/typedefs.cc @@ -28,9 +28,7 @@ using check2_t = std::string_view; using check3_t = std::u8string_view; #endif -#ifdef _GLIBCXX_USE_C99_STDINT_TR1 using check4_t = std::u16string_view; using check5_t = std::u32string_view; -#endif using check6_t = std::wstring_view; diff --git a/libstdc++-v3/testsuite/experimental/string_view/typedefs.cc b/libstdc++-v3/testsuite/experimental/string_view/typedefs.cc index 60c4e12aa4f..a09ed8f8a22 100644 --- a/libstdc++-v3/testsuite/experimental/string_view/typedefs.cc +++ b/libstdc++-v3/testsuite/experimental/string_view/typedefs.cc @@ -28,9 +28,7 @@ using check2_t = std::experimental::fundamentals_v1::string_view; using check3_t = std::experimental::fundamentals_v1::u8string_view; #endif -#ifdef _GLIBCXX_USE_C99_STDINT_TR1 using check4_t = std::experimental::fundamentals_v1::u16string_view; using check5_t = std::experimental::fundamentals_v1::u32string_view; -#endif using check6_t = std::experimental::fundamentals_v1::wstring_view;