From mboxrd@z Thu Jan 1 00:00:00 1970
Return-Path:
Received: by sourceware.org (Postfix, from userid 2181)
id BEB7D385735C; Mon, 9 May 2022 16:39:49 +0000 (GMT)
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BEB7D385735C
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="utf-8"
From: Jonathan Wakely
To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org
Subject: [gcc r9-10054] libstdc++: Fix example preprocessor command in FAQ
[PR103877]
X-Act-Checkin: gcc
X-Git-Author: Jonathan Wakely
X-Git-Refname: refs/heads/releases/gcc-9
X-Git-Oldrev: de3549eb7bba1af6894b6ad781b6943b16883f2b
X-Git-Newrev: dae73190d42a8074cc393c759338942d0de8b2bd
Message-Id: <20220509163949.BEB7D385735C@sourceware.org>
Date: Mon, 9 May 2022 16:39:49 +0000 (GMT)
X-BeenThere: libstdc++-cvs@gcc.gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Libstdc++-cvs mailing list
List-Unsubscribe: ,
List-Archive:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Mon, 09 May 2022 16:39:49 -0000
https://gcc.gnu.org/g:dae73190d42a8074cc393c759338942d0de8b2bd
commit r9-10054-gdae73190d42a8074cc393c759338942d0de8b2bd
Author: Jonathan Wakely
Date: Tue Jan 4 15:54:16 2022 +0000
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:
---
libstdc++-v3/doc/html/faq.html | 2 +-
libstdc++-v3/doc/xml/faq.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libstdc++-v3/doc/html/faq.html b/libstdc++-v3/doc/html/faq.html
index 18407225d7a..aa85d85db46 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 cf8684e1cea..ef673ef4954 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