[0/2] : C N2653 char8_t implementation
Message ID | 28456f5f-58fa-8dcc-2d44-3d4d4eca944b@honermann.net |
---|---|
Headers |
Return-Path: <gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 583093857C70 for <patchwork@sourceware.org>; Sat, 8 Jan 2022 00:44:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 583093857C70 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1641602692; bh=MkEDW1dlrqAa3mQUnTUZkbB7TFtK70btLIw4nGPYeOM=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=W1TQoWGZpp+ezoXOzZD8/aQfZ/YUPpOhQJOZBP4TY9u7Zn01xophon/yGjlihMohM 97BPqFMh07o3UZFc0LZlHOjAMUVhTjkSrChjMnVY9SnLgPRFzdjW9BN/S9riTRatxb JKLfc2lRKp00Hk15H8WYEi9WRTDUatwt03vVyXCA= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp75.ord1c.emailsrvr.com (smtp75.ord1c.emailsrvr.com [108.166.43.75]) by sourceware.org (Postfix) with ESMTPS id 29B143857810 for <gcc-patches@gcc.gnu.org>; Sat, 8 Jan 2022 00:42:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 29B143857810 X-Auth-ID: tom@honermann.net Received: by smtp2.relay.ord1c.emailsrvr.com (Authenticated sender: tom-AT-honermann.net) with ESMTPSA id 82E2CC010C for <gcc-patches@gcc.gnu.org>; Fri, 7 Jan 2022 19:42:33 -0500 (EST) To: gcc-patches <gcc-patches@gcc.gnu.org> Subject: [PATCH 0/2]: C N2653 char8_t implementation Message-ID: <28456f5f-58fa-8dcc-2d44-3d4d4eca944b@honermann.net> Date: Fri, 7 Jan 2022 19:42:33 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Classification-ID: 018329fc-69f0-4c68-a4d2-6a94be383797-1-1 X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: Tom Honermann via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Tom Honermann <tom@honermann.net> Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org> |
Message
Tom Honermann
Jan. 8, 2022, 12:42 a.m. UTC
This series of patches implements the core language features for the WG14 N2653 [1] proposal to provide char8_t support in C. These changes are intended to align char8_t support in C with the support provided in C++20 via WG21 P0482R6 [2]. These patches addresses feedback provided in response to a previous submission [3][4]. These changes do not impact default gcc behavior. Per prior feedback by Joseph Myers, the existing -fchar8_t and -fno-char8_t options used to opt-in to or opt-out of char8_t support in C++ are NOT reused for C. Instead, the C related core language changes are enabled when targeting C2x. Note that N2653 has not yet been accepted by WG14 for C2x, but the patches enable these changes for C2x in order to avoid an additional language dialect flag (e.g., -fchar8_t). Patch 1: Language support Patch 2: New tests Tom. [1]: WG14 N2653 "char8_t: A type for UTF-8 characters and strings (Revision 1)" http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2653.htm [2]: WG21 P0482R6 "char8_t: A type for UTF-8 characters and strings (Revision 6)" https://wg21.link/p0482r6 [3]: [PATCH 0/3]: C N2653 char8_t implementation https://gcc.gnu.org/pipermail/gcc-patches/2021-June/572022.html [4]: [PATCH 1/3]: C N2653 char8_t: Language support https://gcc.gnu.org/pipermail/gcc-patches/2021-June/572023.html