From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 8DBD03858CDB; Sat, 5 Nov 2022 12:37:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8DBD03858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667651830; bh=6b3ortRVNrFHqOwT7nfKqAOT/mF2faaQuCWSc6MuhPk=; h=From:To:Subject:Date:From; b=JIwSdaVpsNxDX2CV1Tzikx077w8sU0zUetN2fxWafb4QMlbP0B9SCTA//+zkN0E4I U0Z0rDYgbqC2IBz5foI8NdOlXuNr7d7RC3llEAZubJxb9+pb7iWwp1y1rAL3CVfV4Z djx2y+lqu/KMAdDfHLaV/GP9ckL2f3fwrMFWj0dE= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-3694] doc: Document correct -fwide-exec-charset defaults [PR41041] X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: 6b1a2474f9e422ef746f7ea13014b288850bb68a X-Git-Newrev: e50ea3a42f058c14ee29327d5277ab0435e3d36b Message-Id: <20221105123710.8DBD03858CDB@sourceware.org> Date: Sat, 5 Nov 2022 12:37:06 +0000 (GMT) List-Id: https://gcc.gnu.org/g:e50ea3a42f058c14ee29327d5277ab0435e3d36b commit r13-3694-ge50ea3a42f058c14ee29327d5277ab0435e3d36b Author: Jonathan Wakely 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. 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 75c56a368ca..c0a92b37018 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}.