[ Preprocessor ] [ Common ] Feature: Macros for identifying the wide and narrow execution string literal encoding
Joseph Myers
joseph@codesourcery.com
Thu Oct 8 17:36:33 GMT 2020
On Thu, 8 Oct 2020, JeanHeyd Meneide via Gcc-patches wrote:
> * gcc/doc/cpp.texi: Document new predefined macro.
This documentation doesn't seem sufficient to use the macros. Do they
expand to (narrow) string literals? To an unquoted sequence of
characters? I think from the implementation that the answer is strings
(so, in particular, not usable for testing anything in #if conditionals),
but the documentation ought to say so. The test ought to verify the form
of the expansion as well (even if it can't do anything useful at execution
time, because if you make the macros reflect the command-line options they
are character set names that are meaningful on the host, and any
conversion functionality on the target may not use the same names as the
host).
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Gcc-patches
mailing list