From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by sourceware.org (Postfix) with ESMTPS id D72693858C53 for ; Sat, 5 Nov 2022 11:01:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D72693858C53 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-x634.google.com with SMTP id b2so19161294eja.6 for ; Sat, 05 Nov 2022 04:01:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=PQ7NA0n2J6vQrH3lO0+PA+6M7kY6G6gffJhe1NwyVQU=; b=FHgHLCK3dpI4TMu5WB6Jsj+zHv00CtGF4riIpT4yjvemBlgRoYQebk02TNNAc6utqA 7EQfoX6FYUQ+/T9xzcibCi18ixuvWcxCSAUHzj7aIwRTmTjffPbkhdQsQhhZW3C4acKo vVEeAzPtEABBfeVS0p+ncHKk8KsIu8cbgP1xTAgHU53519XoXzPIfrPiwAhz0xCKBPIa vDizG9YTP/qSOhtPEN2C55/JdzOr/dhZSfBgJlRKesfOuNFzUxgIZ/dTeOdz7eb1HaS4 H9xmk6PL3ovNALsNKxBFQOfh+Kh+ivQqw6V843sYI397rz2pK4Ff+c3e4Wr3s2wD44Mc c4Cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=PQ7NA0n2J6vQrH3lO0+PA+6M7kY6G6gffJhe1NwyVQU=; b=rPifH58NagLIjvdjxSm6aGVxoXSpdIoG7EcoiCh4MOUfz8ThPUbHMnModgGnXWGMMl J6z6JSkPPdcYqb3rqap+smuKZf/zNbLjyo6USyW8pK5TfN6TfU6JZmH6wCV7WEKE8JbL ZOpKrVozTrH+P1Ssjp341OW8mQW1plUb7W0jjKk9z8CXjElnYXAP34O4XVwOOFAkt4U8 dLVskpMt24iNQL1THXzDzOJJ+Taoccn3VeFQ4NDVXGE3A1aQ//dR/3NkXItKTZddjwnc zuiSGr+3xzRgknJvzDQaR2uiiNqZ0Y0vPaxTGP/3Lau+/ioqqn8tPBcte3Mhmzvp61hG k5BA== X-Gm-Message-State: ACrzQf1DjVeOtWtMTelDjy6BedO92/oVt0KRxJ90iA9+bkthw1LxBx5/ QevwIZ9bAEsobYpnCuDCgo2WuIJ/J9a6f9iFcRo= X-Google-Smtp-Source: AMsMyM7HiAdvwRnCBjvNeOkg3JpnBRkWrqz0i/9Wai6HpwxRxVP7zpgCL56878Tny9HR5fwFx37K8TQ9+UQmACSY/XQ= X-Received: by 2002:a17:907:2c68:b0:7ad:8ba7:664a with SMTP id ib8-20020a1709072c6800b007ad8ba7664amr38807486ejc.488.1667646076151; Sat, 05 Nov 2022 04:01:16 -0700 (PDT) MIME-Version: 1.0 References: <20221104121734.828189-1-jwakely@redhat.com> In-Reply-To: <20221104121734.828189-1-jwakely@redhat.com> From: Richard Biener Date: Sat, 5 Nov 2022 12:01:03 +0100 Message-ID: Subject: Re: [PATCH] doc: Document correct -fwide-exec-charset defaults [PR41041] To: Jonathan Wakely Cc: gcc-patches@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Fri, Nov 4, 2022 at 1:18 PM Jonathan Wakely via Gcc-patches wrote: > > OK for trunk and release branches? OK > -- >8 -- > > 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. > --- > 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}. > > -- > 2.38.1 >