From 1a4f7c1b05389e5d4469571ca510e4c519d5fe51 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Thu, 23 May 2019 17:01:18 +0100 Subject: [PATCH] Add missing feature test macro to C++17 status table * doc/xml/manual/status_cxx2017.xml: Add feature test macro for P0040R3. * doc/html/*: Regenerate. From-SVN: r271571 --- libstdc++-v3/ChangeLog | 4 ++++ libstdc++-v3/doc/html/manual/memory.html | 6 +++--- libstdc++-v3/doc/html/manual/status.html | 2 +- libstdc++-v3/doc/xml/manual/status_cxx2017.xml | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 2d557fc3a78..1e88703d406 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,9 @@ 2019-05-23 Jonathan Wakely + * doc/xml/manual/status_cxx2017.xml: Add feature test macro for + P0040R3. + * doc/html/*: Regenerate. + * include/experimental/any (__any_caster): Use RTTI if comparing addresses fails, to support non-unique addresses in shared libraries. * include/std/any (__any_caster): Likewise. diff --git a/libstdc++-v3/doc/html/manual/memory.html b/libstdc++-v3/doc/html/manual/memory.html index b373c31c84c..8f7cd1a187e 100644 --- a/libstdc++-v3/doc/html/manual/memory.html +++ b/libstdc++-v3/doc/html/manual/memory.html @@ -541,7 +541,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 @@ -549,13 +549,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 f6494b5477f..38400194eb3 100644 --- a/libstdc++-v3/doc/html/manual/status.html +++ b/libstdc++-v3/doc/html/manual/status.html @@ -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 73403ef6ba0..a11e93cda90 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 -- 2.30.2