From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31933 invoked by alias); 17 Sep 2019 08:06:54 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 30807 invoked by uid 89); 17 Sep 2019 08:06:44 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-11.2 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=Dispatch X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 17 Sep 2019 08:06:43 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 2E7A2117C34; Tue, 17 Sep 2019 04:06:37 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id WGqfnqxiiUAl; Tue, 17 Sep 2019 04:06:37 -0400 (EDT) Received: from tron.gnat.com (tron.gnat.com [205.232.38.10]) by rock.gnat.com (Postfix) with ESMTP id 34B40117C35; Tue, 17 Sep 2019 04:06:34 -0400 (EDT) Received: by tron.gnat.com (Postfix, from userid 4862) id 33AB46AD; Tue, 17 Sep 2019 04:06:34 -0400 (EDT) Date: Tue, 17 Sep 2019 08:07:00 -0000 From: Pierre-Marie de Rodat To: gcc-patches@gcc.gnu.org Cc: Tom Tromey Subject: [Ada] Update the character type comment in exp_dbug.ads Message-ID: <20190917080634.GA37632@adacore.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="PNTmBPCT7hxwcZjr" Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2019-09/txt/msg00985.txt.bz2 --PNTmBPCT7hxwcZjr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 377 The character type comment in exp_dbug.ads documented the QU and QW encodings, but did not document the plain "Qc" encoding, where 'c' is the character itself. This patch updates the comment to follow the implementation. Tested on x86_64-pc-linux-gnu, committed on trunk 2019-09-17 Tom Tromey gcc/ada/ * exp_dbug.ads: Update character type comment. --PNTmBPCT7hxwcZjr Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="patch.diff" Content-length: 1539 --- gcc/ada/exp_dbug.ads +++ gcc/ada/exp_dbug.ads @@ -1452,18 +1452,21 @@ package Exp_Dbug is -- a character literal, the name is encoded as described in the following -- paragraph. - -- A name QUhh, where each 'h' is a lower-case hexadecimal digit, stands - -- for a character whose Unicode encoding is hh, and QWhhhh likewise stands - -- for a wide character whose encoding is hhhh. The representation values - -- are encoded as for ordinary enumeration literals (and have no necessary - -- relationship to the values encoded in the names). + -- The characters 'a'..'z' and '0'..'9' are represented as Qc, where 'c' + -- stands for the character itself. A name QUhh, where each 'h' is a + -- lower-case hexadecimal digit, stands for a character whose Unicode + -- encoding is hh, and QWhhhh likewise stands for a wide character whose + -- encoding is hhhh. The representation values are encoded as for ordinary + -- enumeration literals (and have no necessary relationship to the values + -- encoded in the names). -- For example, given the type declaration - -- type x is (A, 'C', B); + -- type x is (A, 'C', 'b'); -- the second enumeration literal would be named QU43 and the value - -- assigned to it would be 1. + -- assigned to it would be 1, and the third enumeration literal would be + -- named Qb and the value assigned to it would be 2. ----------------------------------------------- -- Secondary Dispatch tables of tagged types -- --PNTmBPCT7hxwcZjr--