From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1914) id 87B903987035; Fri, 9 Jul 2021 12:39:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 87B903987035 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Pierre-Marie de Rodat To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-2213] [Ada] Typo corrections and minor reformatting X-Act-Checkin: gcc X-Git-Author: Gary Dismukes X-Git-Refname: refs/heads/master X-Git-Oldrev: e4de29f4677e81e71c60eb2b9f247eaa12ea1353 X-Git-Newrev: 79b87fcf29cd100f15ae68bd74bf94830bf41564 Message-Id: <20210709123939.87B903987035@sourceware.org> Date: Fri, 9 Jul 2021 12:39:39 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jul 2021 12:39:39 -0000 https://gcc.gnu.org/g:79b87fcf29cd100f15ae68bd74bf94830bf41564 commit r12-2213-g79b87fcf29cd100f15ae68bd74bf94830bf41564 Author: Gary Dismukes Date: Mon Jun 14 15:37:49 2021 -0400 [Ada] Typo corrections and minor reformatting gcc/ada/ * libgnarl/s-osinte__vxworks.ads: Fix typo ("release" => "releases") plus comment reformatting. * libgnat/s-os_lib.ads: In a comment, fix typo ("indended" => "intended"), add a hyphen and semicolon, plus reformatting. In comment for subtype time_t, fix typo ("effect" => "affect"), add hyphens, plus reformatting. * libgnat/s-parame.ads, libgnat/s-parame__ae653.ads, libgnat/s-parame__hpux.ads: Remove period from one-line comment. Diff: --- gcc/ada/libgnarl/s-osinte__vxworks.ads | 6 +++--- gcc/ada/libgnat/s-os_lib.ads | 19 +++++++++---------- gcc/ada/libgnat/s-parame.ads | 2 +- gcc/ada/libgnat/s-parame__ae653.ads | 2 +- gcc/ada/libgnat/s-parame__hpux.ads | 2 +- 5 files changed, 15 insertions(+), 16 deletions(-) diff --git a/gcc/ada/libgnarl/s-osinte__vxworks.ads b/gcc/ada/libgnarl/s-osinte__vxworks.ads index 8b9c5bf7b48..a2d5620a03c 100644 --- a/gcc/ada/libgnarl/s-osinte__vxworks.ads +++ b/gcc/ada/libgnarl/s-osinte__vxworks.ads @@ -242,9 +242,9 @@ package System.OS_Interface is type time_t is range -2 ** (System.Parameters.time_t_bits - 1) .. 2 ** (System.Parameters.time_t_bits - 1) - 1; - -- Time_t here used to be unsigned to match the VxWorks header - -- declaration. The header declaration has changed in newer release - -- and is now signed for applications. + -- Time_t here used to be unsigned to match the VxWorks header declaration. + -- The header declaration has changed in newer releases and is now signed + -- for applications. type timespec is record ts_sec : time_t; diff --git a/gcc/ada/libgnat/s-os_lib.ads b/gcc/ada/libgnat/s-os_lib.ads index 4c279d563b5..2049e385f6c 100644 --- a/gcc/ada/libgnat/s-os_lib.ads +++ b/gcc/ada/libgnat/s-os_lib.ads @@ -168,18 +168,17 @@ package System.OS_Lib is -- Time_t Stuff -- ------------------ - -- Note: Do not use time_t in the compiler and host based tools, - -- instead use OS_Time. These 3 declarations are indended for use only - -- by consumers of the GNAT.OS_Lib renaming of this package. + -- Note: Do not use time_t in the compiler and host-based tools; instead + -- use OS_Time. These 3 declarations are intended for use only by consumers + -- of the GNAT.OS_Lib renaming of this package. subtype time_t is Long_Long_Integer; - -- C time_t can be either long or long long, but this is a subtype - -- not used in the compiler or tools, but only for user - -- applications, so we choose the Ada equivalent of the latter - -- because eventually that will be the type used out of necessity. - -- This may effect some user code on 32 bit targets that have not yet - -- migrated to the Posix 2008 standard, particularly pre version 5 - -- 32 bit Linux. + -- C time_t can be either long or long long, but this is a subtype not used + -- in the compiler or tools, but only for user applications, so we choose + -- the Ada equivalent of the latter because eventually that will be the + -- type used out of necessity. This may affect some user code on 32-bit + -- targets that have not yet migrated to the Posix 2008 standard, + -- particularly pre version 5 32-bit Linux. function To_C (Time : OS_Time) return time_t; -- Convert OS_Time to C time_t type diff --git a/gcc/ada/libgnat/s-parame.ads b/gcc/ada/libgnat/s-parame.ads index 178bd7cf2a9..0f76a6535bc 100644 --- a/gcc/ada/libgnat/s-parame.ads +++ b/gcc/ada/libgnat/s-parame.ads @@ -105,7 +105,7 @@ package System.Parameters is ------------------------------------ time_t_bits : constant := Long_Integer'Size; - -- Number of bits in type time_t. + -- Number of bits in type time_t ---------------------------------------------- -- Characteristics of types in Interfaces.C -- diff --git a/gcc/ada/libgnat/s-parame__ae653.ads b/gcc/ada/libgnat/s-parame__ae653.ads index 76824351c91..f838b41d5b1 100644 --- a/gcc/ada/libgnat/s-parame__ae653.ads +++ b/gcc/ada/libgnat/s-parame__ae653.ads @@ -105,7 +105,7 @@ package System.Parameters is ------------------------------------ time_t_bits : constant := Long_Integer'Size; - -- Number of bits in type time_t. + -- Number of bits in type time_t ---------------------------------------------- -- Characteristics of types in Interfaces.C -- diff --git a/gcc/ada/libgnat/s-parame__hpux.ads b/gcc/ada/libgnat/s-parame__hpux.ads index 053cd764a8a..d6d4e10e602 100644 --- a/gcc/ada/libgnat/s-parame__hpux.ads +++ b/gcc/ada/libgnat/s-parame__hpux.ads @@ -103,7 +103,7 @@ package System.Parameters is ------------------------------------ time_t_bits : constant := Long_Integer'Size; - -- Number of bits in type time_t. + -- Number of bits in type time_t ---------------------------------------------- -- Characteristics of Types in Interfaces.C --