From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 4CF6D389901E; Mon, 10 Jan 2022 12:18:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4CF6D389901E 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 r12-6407] libstdc++: Update default -std option in manual X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: 4fde88e5dd152fe866a97b12e0f8229970d15cb3 X-Git-Newrev: e1b8a91e470358261862e44d23b16eee2203ef92 Message-Id: <20220110121831.4CF6D389901E@sourceware.org> Date: Mon, 10 Jan 2022 12:18:31 +0000 (GMT) X-BeenThere: libstdc++-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jan 2022 12:18:31 -0000 https://gcc.gnu.org/g:e1b8a91e470358261862e44d23b16eee2203ef92 commit r12-6407-ge1b8a91e470358261862e44d23b16eee2203ef92 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. Diff: --- libstdc++-v3/doc/html/index.html | 4 ++-- libstdc++-v3/doc/html/manual/using.html | 3 ++- libstdc++-v3/doc/xml/manual/using.xml | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/libstdc++-v3/doc/html/index.html b/libstdc++-v3/doc/html/index.html index d21efe58a58..b0c94da4ff7 100644 --- a/libstdc++-v3/doc/html/index.html +++ b/libstdc++-v3/doc/html/index.html @@ -1,6 +1,6 @@ -The GNU C++ Library

The GNU C++ Library

Short Contents

- Copyright (C) 2008-2021 +The GNU C++ Library

The GNU C++ Library

Short Contents

+ Copyright (C) 2008-2022 FSF

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 FlagsDescription
-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 65fde4609db..36b86702d22 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.