public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-10365] doc: Document correct -fwide-exec-charset defaults [PR41041]
@ 2022-11-05 12:38 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2022-11-05 12:38 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:ae31f6acb2cf9d43a265f42c12f95e4687ac1fa4

commit r11-10365-gae31f6acb2cf9d43a265f42c12f95e4687ac1fa4
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Fri Nov 4 12:10:32 2022 +0000

    doc: Document correct -fwide-exec-charset defaults [PR41041]
    
    As shown in the PR, the default is not UTF-32 but rather UTF-32BE or
    UTF-32LE, avoiding the need for a byte order mark in literals.
    
    gcc/ChangeLog:
    
            PR c/41041
            * doc/cppopts.texi: Document -fwide-exec-charset defaults
            correctly.
    
    (cherry picked from commit e50ea3a42f058c14ee29327d5277ab0435e3d36b)

Diff:
---
 gcc/doc/cppopts.texi | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/gcc/doc/cppopts.texi b/gcc/doc/cppopts.texi
index b941de6df1b..03fd8084619 100644
--- a/gcc/doc/cppopts.texi
+++ b/gcc/doc/cppopts.texi
@@ -318,9 +318,10 @@ supported by the system's @code{iconv} library routine.
 @opindex fwide-exec-charset
 @cindex character set, wide execution
 Set the wide execution character set, used for wide string and
-character constants.  The default is UTF-32 or UTF-16, whichever
-corresponds to the width of @code{wchar_t}.  As with
-@option{-fexec-charset}, @var{charset} can be any encoding supported
+character constants.  The default is one of UTF-32BE, UTF-32LE, UTF-16BE,
+or UTF-16LE, whichever corresponds to the width of @code{wchar_t} and the
+big-endian or little-endian byte order being used for code generation.  As
+with @option{-fexec-charset}, @var{charset} can be any encoding supported
 by the system's @code{iconv} library routine; however, you will have
 problems with encodings that do not fit exactly in @code{wchar_t}.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-11-05 12:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-05 12:38 [gcc r11-10365] doc: Document correct -fwide-exec-charset defaults [PR41041] Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).