From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) by sourceware.org (Postfix) with ESMTP id 01895384A026 for ; Wed, 22 Apr 2020 21:58:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 01895384A026 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-104-GhdNhuotPvqwA_iCFjBuEA-1; Wed, 22 Apr 2020 17:58:00 -0400 X-MC-Unique: GhdNhuotPvqwA_iCFjBuEA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B5057107ACCD; Wed, 22 Apr 2020 21:57:59 +0000 (UTC) Received: from localhost (unknown [10.33.36.131]) by smtp.corp.redhat.com (Postfix) with ESMTP id 61A321002381; Wed, 22 Apr 2020 21:57:59 +0000 (UTC) Date: Wed, 22 Apr 2020 22:57:58 +0100 From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed 0/8] libstdc++: Add/update/fix feature test macros Message-ID: MIME-Version: 1.0 X-Clacks-Overhead: GNU Terry Pratchett X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Spam-Status: No, score=-15.0 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=unavailable 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: Wed, 22 Apr 2020 21:58:04 -0000 This series of patches fixes a number of omissions and errors in the feature test macros we define. Tested powerpc64le-linux, committed to master. Jonathan Wakely (8): libstdc++: Update value of __cpp_lib_jthread macro libstdc++: Remove non-standard feature test macros libstdc++: Add missing feature test macros libstdc++: Rename __cpp_lib_constexpr_invoke macro libstdc++: Update __cpp_lib_concepts value libstdc++: Do not define __cpp_lib_constexpr_algorithms in libstdc++: Update (and revert) value of __cpp_lib_array_constexpr libstdc++: Define __cpp_lib_execution feature test macro libstdc++-v3/ChangeLog | 87 +++++++++++++++++++ libstdc++-v3/include/bits/ptr_traits.h | 3 + libstdc++-v3/include/bits/range_access.h | 1 + libstdc++-v3/include/bits/ranges_algo.h | 1 + libstdc++-v3/include/bits/stl_iterator.h | 6 +- libstdc++-v3/include/bits/stl_map.h | 1 - libstdc++-v3/include/bits/unordered_map.h | 1 - libstdc++-v3/include/std/atomic | 1 + libstdc++-v3/include/std/concepts | 2 +- libstdc++-v3/include/std/condition_variable | 3 +- libstdc++-v3/include/std/execution | 1 + libstdc++-v3/include/std/functional | 2 +- libstdc++-v3/include/std/memory | 1 + libstdc++-v3/include/std/memory_resource | 1 + libstdc++-v3/include/std/stop_token | 2 +- libstdc++-v3/include/std/string_view | 1 + libstdc++-v3/include/std/type_traits | 4 + libstdc++-v3/include/std/utility | 8 +- libstdc++-v3/include/std/version | 26 ++++-- .../testsuite/20_util/exchange/constexpr.cc | 6 -- .../function_objects/invoke/constexpr.cc | 4 +- .../testsuite/20_util/to_address/1_neg.cc | 2 +- .../array/comparison_operators/constexpr.cc | 6 ++ .../array/element_access/constexpr_c++17.cc | 57 ++++++++++++ .../array/requirements/constexpr_fill.cc | 6 ++ .../array/requirements/constexpr_iter.cc | 12 ++- .../25_algorithms/pstl/feature_test-2.cc | 27 ++++++ .../25_algorithms/pstl/feature_test-3.cc | 34 ++++++++ .../25_algorithms/pstl/feature_test-4.cc | 33 +++++++ .../25_algorithms/pstl/feature_test-5.cc | 28 ++++++ .../25_algorithms/pstl/feature_test.cc | 27 +----- .../condition_variable_any/stop_token/1.cc | 2 +- .../condition_variable_any/stop_token/2.cc | 2 +- .../testsuite/30_threads/jthread/1.cc | 2 +- .../testsuite/30_threads/jthread/2.cc | 2 +- .../testsuite/30_threads/stop_token/1.cc | 2 +- .../testsuite/30_threads/stop_token/2.cc | 2 +- libstdc++-v3/testsuite/std/concepts/1.cc | 2 +- libstdc++-v3/testsuite/std/concepts/2.cc | 2 +- 39 files changed, 345 insertions(+), 65 deletions(-) create mode 100644 libstdc++-v3/testsuite/23_containers/array/element_acce= ss/constexpr_c++17.cc create mode 100644 libstdc++-v3/testsuite/25_algorithms/pstl/feature_test-= 2.cc create mode 100644 libstdc++-v3/testsuite/25_algorithms/pstl/feature_test-= 3.cc create mode 100644 libstdc++-v3/testsuite/25_algorithms/pstl/feature_test-= 4.cc create mode 100644 libstdc++-v3/testsuite/25_algorithms/pstl/feature_test-= 5.cc --=20 2.25.3