From: Jonathan Wakely Date: Fri, 26 Jul 2019 13:36:33 +0000 (+0100) Subject: Add missing feature test macro to C++17 status table X-Git-Tag: releases/gcc-9.2.0~110 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8852f119e4cd4812163c0ee1e9d19471a3b1145e;p=thirdparty%2Fgcc.git Add missing feature test macro to C++17 status table Backport from mainline 2019-05-23 Jonathan Wakely * doc/xml/manual/status_cxx2017.xml: Add feature test macro for P0040R3. * doc/html/*: Regenerate. From-SVN: r273831 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 3211e188a057..1c6e5592bf45 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,12 @@ +2019-07-26 Jonathan Wakely + + Backport from mainline + 2019-05-23 Jonathan Wakely + + * doc/xml/manual/status_cxx2017.xml: Add feature test macro for + P0040R3. + * doc/html/*: Regenerate. + 2019-07-26 Jonathan Wakely Backport from mainline diff --git a/libstdc++-v3/doc/html/manual/bugs.html b/libstdc++-v3/doc/html/manual/bugs.html index 208ec296743c..9a413c444159 100644 --- a/libstdc++-v3/doc/html/manual/bugs.html +++ b/libstdc++-v3/doc/html/manual/bugs.html @@ -501,14 +501,14 @@

Avoid using dynamic_cast when it would be ill-formed.

2537: - Requirements on the first template parameter of container adaptors - -

Add static assertions to enforce the requirement. -

2566: Constructors for priority_queue taking allocators should call make_heap

Call make_heap. +

2566: + Requirements on the first template parameter of container adaptors + +

Add static assertions to enforce the requirement.

2583: There is no way to supply an allocator for basic_string(str, pos) diff --git a/libstdc++-v3/doc/html/manual/memory.html b/libstdc++-v3/doc/html/manual/memory.html index 11d13a9dd915..0330df1dfafb 100644 --- a/libstdc++-v3/doc/html/manual/memory.html +++ b/libstdc++-v3/doc/html/manual/memory.html @@ -554,7 +554,7 @@ not be conforming for shared_ptr to have an extra template parameter, even if it had a default value. The available policies are:

  1. - _S_Atomic + _S_atomic

    Selected when GCC supports a builtin atomic compare-and-swap operation on the target processor (see Atomic @@ -562,13 +562,13 @@ Builtins.) The reference counts are maintained using a lock-free algorithm and GCC's atomic builtins, which provide the required memory synchronisation.

  2. - _S_Mutex + _S_mutex

    The _Sp_counted_base specialization for this policy contains a mutex, which is locked in add_ref_lock(). This policy is used when GCC's atomic builtins aren't available so explicit memory barriers are needed in places.

  3. - _S_Single + _S_single

    This policy uses a non-reentrant add_ref_lock() with no locking. It is used when libstdc++ is built without --enable-threads. diff --git a/libstdc++-v3/doc/html/manual/status.html b/libstdc++-v3/doc/html/manual/status.html index 52e82a82de1a..ebae5e34da58 100644 --- a/libstdc++-v3/doc/html/manual/status.html +++ b/libstdc++-v3/doc/html/manual/status.html @@ -526,8 +526,8 @@ presence of the required flag. This section describes the C++17 and library TS support in mainline GCC SVN, not in any particular release.

    -The following table lists new library features that have been accepted into -the C++17 working draft. The "Proposal" column provides a link to the +The following table lists new library features that are included in +the C++17 standard. The "Proposal" column provides a link to the ISO C++ committee proposal that describes the feature, while the "Status" column indicates the first version of GCC that contains an implementation of this feature (if it has been implemented). @@ -669,7 +669,7 @@ Feature-testing recommendations for C++. P0040R3 - 7.1 shared_ptr::weak_type + 7.1 __cpp_lib_raw_memory_algorithms >= 201606L shared_ptr::weak_type P0163R0 diff --git a/libstdc++-v3/doc/xml/manual/status_cxx2017.xml b/libstdc++-v3/doc/xml/manual/status_cxx2017.xml index fefe9dad36df..40fe7cd2037e 100644 --- a/libstdc++-v3/doc/xml/manual/status_cxx2017.xml +++ b/libstdc++-v3/doc/xml/manual/status_cxx2017.xml @@ -392,7 +392,7 @@ Feature-testing recommendations for C++. 7.1 - + __cpp_lib_raw_memory_algorithms >= 201606L