From: Jonathan Wakely Date: Tue, 27 May 2025 16:52:37 +0000 (+0100) Subject: libstdc++: Document that -std cannot be used in --target_board now X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ebbcd94e47deb1a154c8a9a18252cd2dae566734;p=thirdparty%2Fgcc.git libstdc++: Document that -std cannot be used in --target_board now Only using GLIBCXX_TESTSUITE_STDS or v3_std_list works now. libstdc++-v3/ChangeLog: * doc/xml/manual/test.xml: Remove outdated documentation on testing with -std options in --target_board. * 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 947cd948d83..f2cf8c42437 100644 --- a/libstdc++-v3/doc/html/manual/test.html +++ b/libstdc++-v3/doc/html/manual/test.html @@ -338,16 +338,6 @@ cat 27_io/objects/char/3_xin.in | a.out
-O1 -D_GLIBCXX_ASSERTIONS you could use:

    make check RUNTESTFLAGS=--target_board=unix/-O1/-D_GLIBCXX_ASSERTIONS

-

- The --target_board option can also be used to run the - tests multiple times in different variations. For example, to run the - entire testsuite three times using -O3 but with - different -std options: -

    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++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. @@ -359,6 +349,9 @@ cat 27_io/objects/char/3_xin.in | a.out

GLIBCXX_TESTSUITE_STDS environment variable, e.g. GLIBCXX_TESTSUITE_STDS=11,17,23 is equivalent to the v3_std_list value above. + Before GCC 14, the --target_board option could be + used to run the tests with different -std options, + but this no longer works.

To run the libstdc++ test suite under the debug mode, use diff --git a/libstdc++-v3/doc/xml/manual/test.xml b/libstdc++-v3/doc/xml/manual/test.xml index c4f501102dc..8e2729eedfd 100644 --- a/libstdc++-v3/doc/xml/manual/test.xml +++ b/libstdc++-v3/doc/xml/manual/test.xml @@ -584,18 +584,6 @@ cat 27_io/objects/char/3_xin.in | a.out make check RUNTESTFLAGS=--target_board=unix/-O1/-D_GLIBCXX_ASSERTIONS - - The option can also be used to run the - 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++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 11). - - Since GCC 14, the libstdc++ testsuite has built-in support for running tests with more than one , similar to the G++ tests. @@ -607,6 +595,9 @@ cat 27_io/objects/char/3_xin.in | a.out as a comma-separated list in the GLIBCXX_TESTSUITE_STDS environment variable, e.g. GLIBCXX_TESTSUITE_STDS=11,17,23 is equivalent to the v3_std_list value above. + Before GCC 14, the option could be + used to run the tests with different options, + but this no longer works.