From mboxrd@z Thu Jan 1 00:00:00 1970
Return-Path:
Received: by sourceware.org (Postfix, from userid 2181)
id 5B5CA3858425; Mon, 10 Jan 2022 18:57:52 +0000 (GMT)
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5B5CA3858425
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset="utf-8"
From: Jonathan Wakely
To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org
Subject: [gcc r11-9449] libstdc++: Update default -std option in manual
X-Act-Checkin: gcc
X-Git-Author: Jonathan Wakely
X-Git-Refname: refs/heads/releases/gcc-11
X-Git-Oldrev: 01a70ccd723eb9a479186fe37c972b0d0f8676cf
X-Git-Newrev: 702d2c9febe19b95a22e93bc2c82aeedb40d4d16
Message-Id: <20220110185752.5B5CA3858425@sourceware.org>
Date: Mon, 10 Jan 2022 18:57:52 +0000 (GMT)
X-BeenThere: gcc-cvs@gcc.gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Gcc-cvs mailing list
List-Unsubscribe: ,
List-Archive:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Mon, 10 Jan 2022 18:57:52 -0000
https://gcc.gnu.org/g:702d2c9febe19b95a22e93bc2c82aeedb40d4d16
commit r11-9449-g702d2c9febe19b95a22e93bc2c82aeedb40d4d16
Author: Jonathan Wakely
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
-std option passed to the compiler.
By default, g++ is equivalent to
- g++ -std=gnu++14 since GCC 6, and
+ g++ -std=gnu++17 since GCC 11, and
+ g++ -std=gnu++14 in GCC 6, 7, 8, 9, and 10, and
g++ -std=gnu++98 for older releases.
Table 3.1. C++ Command Options
Option Flags
Description
-std=c++98 or -std=c++03
Use the 1998 ISO C++ standard plus amendments.
-std=gnu++98 or -std=gnu++03
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 passed to the compiler.
By default, g++ is equivalent to
- g++ -std=gnu++14 since GCC 6, and
+ g++ -std=gnu++17 since GCC 11, and
+ g++ -std=gnu++14 in GCC 6, 7, 8, 9, and 10, and
g++ -std=gnu++98 for older releases.