From: Jonathan Wakely Date: Mon, 2 Sep 2019 11:09:51 +0000 (+0100) Subject: Backport documentation fixes X-Git-Tag: releases/gcc-7.5.0~188 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99d2cb921d6e94f06a44407834b7a51ef6f0bf19;p=thirdparty%2Fgcc.git Backport documentation fixes Backport from mainline 2019-05-21 Jonathan Wakely * doc/xml/manual/shared_ptr.xml: Fix names of lock policy constants. Backport from mainline 2019-06-20 Jonathan Wakely * doc/xml/manual/status_cxx2017.xml: Fix outdated reference to C++17 working draft. 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: r275307 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 811411d5ab4a..dd99959b9dde 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,23 @@ +2019-09-02 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. + + Backport from mainline + 2019-06-20 Jonathan Wakely + + * doc/xml/manual/status_cxx2017.xml: Fix outdated reference to + C++17 working draft. + + Backport from mainline + 2019-05-21 Jonathan Wakely + + * doc/xml/manual/shared_ptr.xml: Fix names of lock policy constants. + 2019-09-02 Jonathan Wakely Backport from mainline diff --git a/libstdc++-v3/doc/html/manual/memory.html b/libstdc++-v3/doc/html/manual/memory.html index 28a4577eb18a..b7c948060319 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 4da9f0ad4b3d..5c988179a12f 100644 --- a/libstdc++-v3/doc/html/manual/status.html +++ b/libstdc++-v3/doc/html/manual/status.html @@ -518,8 +518,8 @@ presence of the required flag.

    This section describes the C++17 and library TS support in the GCC 7 series.

    -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). diff --git a/libstdc++-v3/doc/xml/manual/shared_ptr.xml b/libstdc++-v3/doc/xml/manual/shared_ptr.xml index fcbade6d5bfd..24e275e95ebb 100644 --- a/libstdc++-v3/doc/xml/manual/shared_ptr.xml +++ b/libstdc++-v3/doc/xml/manual/shared_ptr.xml @@ -239,7 +239,7 @@ available policies are: - _S_Atomic + _S_atomic Selected when GCC supports a builtin atomic compare-and-swap operation @@ -252,7 +252,7 @@ synchronisation. - _S_Mutex + _S_mutex The _Sp_counted_base specialization for this policy contains a mutex, @@ -263,7 +263,7 @@ builtins aren't available so explicit memory barriers are needed in places. - _S_Single + _S_single This policy uses a non-reentrant add_ref_lock() with no locking. It is diff --git a/libstdc++-v3/doc/xml/manual/status_cxx2017.xml b/libstdc++-v3/doc/xml/manual/status_cxx2017.xml index 8ca061177424..2f4ebe37c81e 100644 --- a/libstdc++-v3/doc/xml/manual/status_cxx2017.xml +++ b/libstdc++-v3/doc/xml/manual/status_cxx2017.xml @@ -24,8 +24,8 @@ This section describes the C++17 and library TS support in the GCC 7 series. -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).