]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix example preprocessor command in FAQ [PR103877]
authorJonathan Wakely <jwakely@redhat.com>
Tue, 4 Jan 2022 15:54:16 +0000 (15:54 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 9 May 2022 16:37:20 +0000 (17:37 +0100)
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)

libstdc++-v3/doc/html/faq.html
libstdc++-v3/doc/xml/faq.xml

index 18407225d7aab15bd56676eb686ea1c88422671b..aa85d85db46ed911d3a6cda0b221d31d74c77ce9 100644 (file)
          <code class="varname">CPLUSPLUS_CPP_SPEC</code> in
          the gcc config headers for your target (and try changing them to
          see what happens when building complicated code).  You can also run
-         <span class="command"><strong>g++ -E -dM - &lt; /dev/null"</strong></span> to display
+         <span class="command"><strong>g++ -E -dM -x c++ /dev/null</strong></span> to display
          a list of predefined macros for any particular installation.
       </p><p>This has been discussed on the mailing lists
          <a class="link" href="http://gcc.gnu.org/cgi-bin/htsearch?method=and&amp;format=builtin-long&amp;sort=score&amp;words=_XOPEN_SOURCE+Solaris" target="_top">quite a bit</a>.
index cf8684e1ceaa059eae85afe21197efd73183ec86..ef673ef495409237c82195b82eba0bc7504777ca 100644 (file)
          <varname>CPLUSPLUS_CPP_SPEC</varname> in
          the gcc config headers for your target (and try changing them to
          see what happens when building complicated code).  You can also run
-         <command>g++ -E -dM - &lt; /dev/null"</command> to display
+         <command>g++ -E -dM -x c++ /dev/null</command> to display
          a list of predefined macros for any particular installation.
       </para>
       <para>This has been discussed on the mailing lists