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>
Wed, 5 Jan 2022 13:47:01 +0000 (13:47 +0000)
libstdc++-v3/ChangeLog:

PR libstdc++/103877
* doc/xml/faq.xml: Add '-x c++' to preprocessor command.
* doc/html/faq.html: Regenerate.

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

index 967e5f5..f49b84c 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 e419d3c..9ae4966 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