From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id E159F3858C83; Sat, 5 Nov 2022 12:45:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E159F3858C83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667652319; bh=jbyh7Uf6xvvVsTLq17kbR29bH8FvNRLymsREzzyRKxU=; h=From:To:Subject:Date:From; b=aVH4F8a6qDGDkd0loU7v35o9TfVVd0p0RB8N9dGjUOfQkBg74rfFKaTU//YQp2ZMf zbLluWaqwgiYvpwvRVlVlCrvxhehAhhM807j1FefE0rwP87bMGHzQyDfPnG3j2y5+4 3YJnBP4bsuPeExeMVOQnzHxjWipE9Fc6Gepf8jUE= 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 r10-11071] doc: Document correct -fwide-exec-charset defaults [PR41041] X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/releases/gcc-10 X-Git-Oldrev: e6fc0223c6582a03c862c3e46fd116a9a8c0ea36 X-Git-Newrev: 87b0935ed43d971a6eeebca963fb673628f138dd Message-Id: <20221105124519.E159F3858C83@sourceware.org> Date: Sat, 5 Nov 2022 12:45:19 +0000 (GMT) List-Id: https://gcc.gnu.org/g:87b0935ed43d971a6eeebca963fb673628f138dd commit r10-11071-g87b0935ed43d971a6eeebca963fb673628f138dd 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. (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 7f1849d841f..b02c26638ea 100644 --- a/gcc/doc/cppopts.texi +++ b/gcc/doc/cppopts.texi @@ -314,9 +314,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}.