From patchwork Thu Jun 20 08:52:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Marc_Poulhi=C3=A8s?= X-Patchwork-Id: 1950004 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=U9eirLOq; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4W4ZRr1nKDz20KL for ; Thu, 20 Jun 2024 19:09:12 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6E0F0388A406 for ; Thu, 20 Jun 2024 09:09:10 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by sourceware.org (Postfix) with ESMTPS id 4B0163889821 for ; Thu, 20 Jun 2024 08:53:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4B0163889821 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4B0163889821 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::32b ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718873626; cv=none; b=QO4xO3HIGjem+H0B6TF2c5SM+er66dktz8yCpCijBURd3kgeDisZCodIMUMeUnUV/lmopM2gdI4LQnMwf1E+xUvL1cusukmkC7V5QSvcv77aghmrWIcgHeuNnXr14ct6+UMIc9o0okyEXN/pLD4GPzeIVqBibsKJfLv1Nj37CvA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718873626; c=relaxed/simple; bh=gscpRon5eiwQmLPuISqZ/RTc1xEWbrUpdBOrzvR4UWU=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=TsqyXFtNwy5O29xZLVWXpVXKs8RIg9m9GcqnMT8smYNPZWgz0OgIM04pxbyMpn/pfIFVkNLzfBieI2gvh7RhGR4meNJ7rVLP611jw9TsYaF6TvzhVOPdCOCK8aUliNodXivnnwkZlDqEm9E9FRAfWEe8bxWXJ5Y8mqWUE0orW50= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-4247f36f689so1202485e9.1 for ; Thu, 20 Jun 2024 01:53:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1718873618; x=1719478418; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YI86ICPgxDyciJhnxu7KnREBbEwBQS1ioXxdCj0xsPM=; b=U9eirLOqJILVRuW/ZU2/sn1T5zbqs4nUBkiObPbO57rvqjVY5uPnaAiLs8kLQstqph s0dwxcVuiAqB4p2IBlt2oGEx06EU9UzGB5ArD0U+GHSVBrf0RDrbNepCDeAWmSvRBRMd +5f3Ww40USase56kVnD9Y8i8aVJIrssSXTfU9rexVBLRIz684ALuoSa/7AyS3y2ecOMB wWObe9wC9be13fYtGmSKDrA0Q/Ltg52HGJWmYQYZHSQMXz0lJizSzRl/8gaoUVeycntY IW37DKBkSQb9WOTti+kDdsshc8GWm6GrjxG7ST8KReNoarGa1b1AaFFdI61V3uSyYIEm lXTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718873618; x=1719478418; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YI86ICPgxDyciJhnxu7KnREBbEwBQS1ioXxdCj0xsPM=; b=o3WchG5419sO/eoK9HflnIImfVwpZFlYcp78EfQLvyQIHyG4BE5UIDxIgr0QJjMwJM gBMFyhX8lEMr8LsLP6mfybaqtTFxuFMElTAeb6eTjZYwctuWvm/nsZIVtF7c0okBzWPc mtOwhg+fT1DQ9z++iwmkoVmQy0wjMkexY/49AmnmMf4xqxon3gDpkyU1ryg5njfcfU8D OuhNjcnttZ+IA34OaIvHiK2T+Z0UUEEtVqVo9MmDZATnwFZ7mUxYw2xZpaWKiwplbGsK yg+2abHiDjasJRZV2n6tZG/DBvNIALcnkss7vjUfOnWjeEKWi10jKFylxxaxKRQt06lF HJ5A== X-Gm-Message-State: AOJu0YwUPCUhVUgk3OyQfZRDueXrUbvs4ZbqfLG/rIWMxIhvQ4bQwS9L jWEMGoV7+s/h4fZaohQcBrhJgcmETzuReYZCO8aCp3wEcCcEiyh4Eg9DEnjryWMbRkH/BsfHcDE = X-Google-Smtp-Source: AGHT+IHJP2vHvaNx2WtYrVOhdl84sozao93/6TDGRzYrf3pSs4wINC4fGCnwMrNVocMS7Nk3LQJr+A== X-Received: by 2002:a5d:6152:0:b0:360:82d6:5e96 with SMTP id ffacd0b85a97d-363170ec8afmr3100107f8f.3.1718873618160; Thu, 20 Jun 2024 01:53:38 -0700 (PDT) Received: from poulhies-Precision-5550.telnowedge.local (lmontsouris-659-1-24-67.w81-250.abo.wanadoo.fr. [81.250.175.67]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-363c795febfsm3305522f8f.104.2024.06.20.01.53.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jun 2024 01:53:37 -0700 (PDT) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= To: gcc-patches@gcc.gnu.org Cc: Eric Botcazou Subject: [COMMITTED 09/30] ada: Fix minor issues in comments Date: Thu, 20 Jun 2024 10:52:59 +0200 Message-ID: <20240620085321.2412421-9-poulhies@adacore.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240620085321.2412421-1-poulhies@adacore.com> References: <20240620085321.2412421-1-poulhies@adacore.com> MIME-Version: 1.0 X-Spam-Status: No, score=-13.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org From: Eric Botcazou gcc/ada/ * mutably_tagged.ads: Fix minor issues in comments throughout. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/mutably_tagged.ads | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/gcc/ada/mutably_tagged.ads b/gcc/ada/mutably_tagged.ads index b1e393f98ad..6b3b10d38ea 100644 --- a/gcc/ada/mutably_tagged.ads +++ b/gcc/ada/mutably_tagged.ads @@ -6,7 +6,7 @@ -- -- -- S p e c -- -- -- --- Copyright (C) 2024-2024, Free Software Foundation, Inc. -- +-- Copyright (C) 2024, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -36,8 +36,8 @@ package Mutably_Tagged is -- This package implements mutably tagged types via the Size'class aspect -- which enables the creation of class-wide types with a specific maximum -- size. This allows such types to be used directly in record components, - -- in object declarations without an initial expression, and to be - -- assigned a value from any type in a mutably tagged type's hierarchy. + -- in object declarations without an initial expression, and to be assigned + -- a value from any type in a mutably tagged type's hierarchy. -- For example, this structure allows Base_Type and its derivatives to be -- treated as components with a predictable size: @@ -49,17 +49,16 @@ package Mutably_Tagged is -- Component : Base_Type'Class; -- end record; - -- The core of thier implementation involve creating an "equivalent" type + -- The core of their implementation involves creating an "equivalent" type -- for each class-wide type that adheres to the Size'Class constraint. This - -- is achieved using the function Make_CW_Equivalent_Type, which - -- generates a type that is compatible in size and structure with any + -- is achieved by using the function Make_CW_Equivalent_Type from Exp_Util, + -- which generates a type that is compatible in size and structure with any -- derived type of the base class-wide type. - -- Once the class-wide equivalent type is generated, all references to - -- mutably tagged typed object declarations get rewritten to be - -- declarations of said equivalent type. References to these objects also - -- then get wrapped in unchecked conversions to the proper mutably tagged - -- class-wide type. + -- Once the class-wide equivalent type is generated, all declarations of + -- mutably tagged typed objects get rewritten as declarations of objects + -- with the equivalent type. References to these objects also then get + -- wrapped in unchecked conversions to the mutably tagged class-wide type. function Corresponding_Mutably_Tagged_Type (CW_Equiv_Typ : Entity_Id) return Entity_Id;