public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jonathan Wakely <redi@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org
Subject: [gcc r11-9449] libstdc++: Update default -std option in manual
Date: Mon, 10 Jan 2022 18:57:52 +0000 (GMT)	[thread overview]
Message-ID: <20220110185752.5B5CA3858425@sourceware.org> (raw)

https://gcc.gnu.org/g:702d2c9febe19b95a22e93bc2c82aeedb40d4d16

commit r11-9449-g702d2c9febe19b95a22e93bc2c82aeedb40d4d16
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Mon Jan 10 11:23:12 2022 +0000

    libstdc++: Update default -std option in manual
    
    libstdc++-v3/ChangeLog:
    
            * doc/xml/manual/using.xml: Update documentation around default
            -std option.
            * doc/html/*: Regenerate.
    
    (cherry picked from commit e1b8a91e470358261862e44d23b16eee2203ef92)

Diff:
---
 libstdc++-v3/doc/html/manual/using.html | 3 ++-
 libstdc++-v3/doc/xml/manual/using.xml   | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/libstdc++-v3/doc/html/manual/using.html b/libstdc++-v3/doc/html/manual/using.html
index 140896b1f60..641a08c688b 100644
--- a/libstdc++-v3/doc/html/manual/using.html
+++ b/libstdc++-v3/doc/html/manual/using.html
@@ -11,7 +11,8 @@
       The standard library conforms to the dialect of C++ specified by the
       <code class="option">-std</code> option passed to the compiler.
       By default, <span class="command"><strong>g++</strong></span> is equivalent to
-      <span class="command"><strong>g++ -std=gnu++14</strong></span> since GCC 6, and
+      <span class="command"><strong>g++ -std=gnu++17</strong></span> since GCC 11, and
+      <span class="command"><strong>g++ -std=gnu++14</strong></span> in GCC 6, 7, 8, 9, and 10, and
       <span class="command"><strong>g++ -std=gnu++98</strong></span> for older releases.
     </p><div class="table"><a id="table.cmd_options"></a><p class="title"><strong>Table 3.1. C++ Command Options</strong></p><div class="table-contents"><table class="table" summary="C++ Command Options" border="1"><colgroup><col align="left" class="c1" /><col align="left" class="c2" /></colgroup><thead><tr><th align="left">Option Flags</th><th align="left">Description</th></tr></thead><tbody><tr><td align="left"><code class="literal">-std=c++98</code> or <code class="literal">-std=c++03</code>
       </td><td align="left">Use the 1998 ISO C++ standard plus amendments.</td></tr><tr><td align="left"><code class="literal">-std=gnu++98</code> or <code class="literal">-std=gnu++03</code>
diff --git a/libstdc++-v3/doc/xml/manual/using.xml b/libstdc++-v3/doc/xml/manual/using.xml
index 24543e9526e..ff22e509aa8 100644
--- a/libstdc++-v3/doc/xml/manual/using.xml
+++ b/libstdc++-v3/doc/xml/manual/using.xml
@@ -16,7 +16,8 @@
       The standard library conforms to the dialect of C++ specified by the
       <option>-std</option> option passed to the compiler.
       By default, <command>g++</command> is equivalent to
-      <command>g++ -std=gnu++14</command> since GCC 6, and
+      <command>g++ -std=gnu++17</command> since GCC 11, and
+      <command>g++ -std=gnu++14</command> in GCC 6, 7, 8, 9, and 10, and
       <command>g++ -std=gnu++98</command> for older releases.
     </para>


                 reply	other threads:[~2022-01-10 18:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220110185752.5B5CA3858425@sourceware.org \
    --to=redi@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    --cc=libstdc++-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).