From: Jonathan Wakely Date: Tue, 4 Jan 2022 15:54:16 +0000 (+0000) Subject: libstdc++: Fix example preprocessor command in FAQ [PR103877] X-Git-Tag: releases/gcc-9.5.0~147 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dae73190d42a8074cc393c759338942d0de8b2bd;p=thirdparty%2Fgcc.git libstdc++: Fix example preprocessor command in FAQ [PR103877] libstdc++-v3/ChangeLog: PR libstdc++/103877 * doc/xml/faq.xml: Add '-x c++' to preprocessor command. * doc/html/faq.html: Regenerate. (cherry picked from commit cebe875f6f44b905a0d56a2007b5a638a33a893c) --- diff --git a/libstdc++-v3/doc/html/faq.html b/libstdc++-v3/doc/html/faq.html index 18407225d7aa..aa85d85db46e 100644 --- a/libstdc++-v3/doc/html/faq.html +++ b/libstdc++-v3/doc/html/faq.html @@ -456,7 +456,7 @@ CPLUSPLUS_CPP_SPEC in the gcc config headers for your target (and try changing them to see what happens when building complicated code). You can also run - g++ -E -dM - < /dev/null" to display + g++ -E -dM -x c++ /dev/null to display a list of predefined macros for any particular installation.

This has been discussed on the mailing lists quite a bit. diff --git a/libstdc++-v3/doc/xml/faq.xml b/libstdc++-v3/doc/xml/faq.xml index cf8684e1ceaa..ef673ef49540 100644 --- a/libstdc++-v3/doc/xml/faq.xml +++ b/libstdc++-v3/doc/xml/faq.xml @@ -580,7 +580,7 @@ CPLUSPLUS_CPP_SPEC in the gcc config headers for your target (and try changing them to see what happens when building complicated code). You can also run - g++ -E -dM - < /dev/null" to display + g++ -E -dM -x c++ /dev/null to display a list of predefined macros for any particular installation. This has been discussed on the mailing lists