From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by sourceware.org (Postfix) with ESMTP id 18779395BC18 for ; Thu, 23 Apr 2020 20:41:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 18779395BC18 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-413-UZF1JHXPMTKrHho06NnEig-1; Thu, 23 Apr 2020 16:41:38 -0400 X-MC-Unique: UZF1JHXPMTKrHho06NnEig-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 627881800D51; Thu, 23 Apr 2020 20:41:37 +0000 (UTC) Received: from localhost (unknown [10.33.36.131]) by smtp.corp.redhat.com (Postfix) with ESMTP id E1D5C5D714; Thu, 23 Apr 2020 20:41:36 +0000 (UTC) Date: Thu, 23 Apr 2020 21:41:36 +0100 From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed 9/8] libstdc++: Define __cpp_lib_three_way_comparison for freestanding Message-ID: <20200423204136.GQ71320@redhat.com> References: MIME-Version: 1.0 In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: multipart/mixed; boundary="sl5MdczEF/OU2Miu" Content-Disposition: inline X-Spam-Status: No, score=-28.4 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libstdc++@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++ mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Apr 2020 20:41:47 -0000 --sl5MdczEF/OU2Miu Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable The header is always supported, not only for hosted configs. =09* include/std/version (__cpp_lib_three_way_comparison): Define for =09freestanding builds. Tested powerpc64le-linux, committed to master. --sl5MdczEF/OU2Miu Content-Type: text/x-patch; charset=us-ascii Content-Disposition: attachment; filename="patch.txt" Content-Transfer-Encoding: quoted-printable commit a2dcb56c9443d1211e14889bd0c2c21360d54cdb Author: Jonathan Wakely Date: Thu Apr 23 21:39:33 2020 +0100 libstdc++: Define __cpp_lib_three_way_comparison for freestanding =20 The header is always supported, not only for hosted configs. =20 * include/std/version (__cpp_lib_three_way_comparison): Define = for freestanding builds. diff --git a/libstdc++-v3/include/std/version b/libstdc++-v3/include/std/ve= rsion index d06d60c9106..1beb9aa938e 100644 --- a/libstdc++-v3/include/std/version +++ b/libstdc++-v3/include/std/version @@ -184,6 +184,9 @@ #endif #define __cpp_lib_is_nothrow_convertible 201806L #define __cpp_lib_remove_cvref 201711L +#if __cpp_impl_three_way_comparison >=3D 201907L && __cpp_lib_concepts +# define __cpp_lib_three_way_comparison 201907L +#endif #define __cpp_lib_type_identity 201806L #define __cpp_lib_unwrap_ref 201811L =20 @@ -215,9 +218,6 @@ #define __cpp_lib_span 202002L #define __cpp_lib_ssize 201902L #define __cpp_lib_starts_ends_with 201711L -#if __cpp_impl_three_way_comparison >=3D 201907L && __cpp_lib_concepts -# define __cpp_lib_three_way_comparison 201907L -#endif #define __cpp_lib_to_address 201711L #define __cpp_lib_to_array 201907L #endif --sl5MdczEF/OU2Miu--