]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Fix typos "statment" and "condtion"
authorBob Duff <duff@adacore.com>
Wed, 29 Mar 2023 18:11:29 +0000 (14:11 -0400)
committerMarc Poulhiès <poulhies@adacore.com>
Fri, 26 May 2023 07:29:19 +0000 (09:29 +0200)
...caused by moving code here from Atree.

gcc/ada/

* einfo.ads: Add comma.
* contracts.adb: Fix typos.
* exp_attr.adb: Likewise.
* exp_ch5.adb: Likewise.
* exp_ch6.adb: Likewise.
* lib-xref.adb: Likewise.

gcc/ada/contracts.adb
gcc/ada/einfo.ads
gcc/ada/exp_attr.adb
gcc/ada/exp_ch5.adb
gcc/ada/exp_ch6.adb
gcc/ada/lib-xref.adb

index e2df8b96a65262e81b8b129bf8884cb7bfe9ef97..d3ceaa92e10845b3283329b93afa80ee797ecd80 100644 (file)
@@ -1640,7 +1640,7 @@ package body Contracts is
       --     return
       --        Result_Obj : constant Typ := _Wrapped_Statements
       --     do
-      --        <postconditions statments>
+      --        <postconditions statements>
       --     end return;
       --  end;
 
@@ -1658,7 +1658,7 @@ package body Contracts is
       --
       --  begin
       --     _Wrapped_Statements;
-      --     <postconditions statments>
+      --     <postconditions statements>
       --  end;
 
       --  Create Identifier
index ef5201a68ff87cf59a81ec595b73037508639c3a..39efb932f90729f0f07877c7b47d3c552ca13ed3 100644 (file)
@@ -4762,7 +4762,7 @@ package Einfo is
 
 --    Wrapped_Statements
 --       Defined in functions, procedures, entries, and entry families. Refers
---       to the entity of the _Wrapped_Statements procedure which gets
+--       to the entity of the _Wrapped_Statements procedure, which gets
 --       generated as part of the expansion of contracts and postconditions
 --       and contains its enclosing subprogram's original source declarations
 --       and statements.
index 7235a164e0a7fb27842a80bbb9c7b65b07e620ed..6b498eb2d772b52ca150a4d404a20b8ae28c56f5 100644 (file)
@@ -5051,7 +5051,7 @@ package body Exp_Attr is
          if Present (Subp) then
             Ins_Nod := Subp;
 
-         --  General case where the postcondtion checks occur after the call
+         --  General case where the postcondition checks occur after the call
          --  to _Wrapped_Statements.
 
          else
index b4d931195d898db0fb775817e487490b716b1529..30af98b3fc03bc53ceb8f63b95612e387f5b04ab 100644 (file)
@@ -3972,7 +3972,7 @@ package body Exp_Ch5 is
 
          Declarations : constant List_Id := New_List (Selector_Decl);
 
-      --  Start of processing for Expand_General_Case_Statment
+      --  Start of processing for Expand_General_Case_Statement
 
       begin
          if Present (Choice_Index_Decl) then
index b2408140bef37ae2e1e283cec54f38105c351d8a..50d66e34ff714dd0fbd266180d40136d692d33f1 100644 (file)
@@ -3090,7 +3090,7 @@ package body Exp_Ch6 is
          --  Start of processing for Insert_Level_Assign
 
          begin
-            --  Examine further nested condtionals
+            --  Examine further nested conditionals
 
             pragma Assert (Nkind (Branch) =
                             N_Expression_With_Actions);
index b45c601f865ecbfc5ed6ec22039cea807c30750d..3d6b29862b300443eaf47914b78a44aad3dd2db5 100644 (file)
@@ -706,7 +706,7 @@ package body Lib.Xref is
             Set_Referenced (E);
 
          --  For the case where the entity is on the left hand side of an
-         --  assignment statment, we do nothing here.
+         --  assignment statement, we do nothing here.
 
          --  The processing for Analyze_Assignment_Statement will set the
          --  Referenced_As_LHS flag.