From: Jonathan Wakely
Date: Wed, 19 Mar 2025 23:27:24 +0000 (+0000)
Subject: libstdc++: Correct statement about default -std option
X-Git-Tag: basepoints/gcc-16~1098
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b93e60e7901526d7df2d8c0f5e0e46c57e8e3771;p=thirdparty%2Fgcc.git
libstdc++: Correct statement about default -std option
The default is -std=gnu++17 now, not -std=gnu++14.
libstdc++-v3/ChangeLog:
* doc/xml/manual/test.xml: Fix default for -std option.
* doc/html/manual/test.html: Regenerate.
---
diff --git a/libstdc++-v3/doc/html/manual/test.html b/libstdc++-v3/doc/html/manual/test.html
index 4b295e583f6..947cd948d83 100644
--- a/libstdc++-v3/doc/html/manual/test.html
+++ b/libstdc++-v3/doc/html/manual/test.html
@@ -343,11 +343,11 @@ cat 27_io/objects/char/3_xin.in | a.out
-O3 but with
different -std options:
-
make check 'RUNTESTFLAGS=--target_board=unix/-O3\"{-std=gnu++98,-std=gnu++11,-std=gnu++14}\"'
+
make check 'RUNTESTFLAGS=--target_board=unix/-O3\"{-std=gnu++98,-std=gnu++11,-std=gnu++17}\"'
N.B. that set of variations could also be written as
unix/-O3\"{-std=gnu++98,-std=gnu++11,}\" so that
the third variation would use the default for -std
- (which is -std=gnu++14 as of GCC 6).
+ (which is -std=gnu++17 as of GCC 11).
Since GCC 14, the libstdc++ testsuite has built-in support for running
tests with more than one -std, similar to the G++ tests.
diff --git a/libstdc++-v3/doc/xml/manual/test.xml b/libstdc++-v3/doc/xml/manual/test.xml
index 963e3e13500..c4f501102dc 100644
--- a/libstdc++-v3/doc/xml/manual/test.xml
+++ b/libstdc++-v3/doc/xml/manual/test.xml
@@ -589,11 +589,11 @@ cat 27_io/objects/char/3_xin.in | a.out
tests multiple times in different variations. For example, to run the
entire testsuite three times using but with
different options:
- make check 'RUNTESTFLAGS=--target_board=unix/-O3\"{-std=gnu++98,-std=gnu++11,-std=gnu++14}\"'
+ make check 'RUNTESTFLAGS=--target_board=unix/-O3\"{-std=gnu++98,-std=gnu++11,-std=gnu++17}\"'
N.B. that set of variations could also be written as
unix/-O3\"{-std=gnu++98,-std=gnu++11,}\" so that
the third variation would use the default for
- (which is as of GCC 6).
+ (which is as of GCC 11).