]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Minor reformattings
authorGhjuvan Lacambre <lacambre@adacore.com>
Wed, 17 Mar 2021 18:13:17 +0000 (19:13 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 21 Jun 2021 10:45:07 +0000 (06:45 -0400)
gcc/ada/

* errout.adb (Handle_Serious_Error): Capitalize comment.
* exp_dbug.adb (Set_Entity_Name): Capitalize sentence.
* exp_dist.adb (Expand_All_Calls_Remote_Subprogram_Call): Fix
typo.
* sem_ch3.adb (Modular_Type_Declaration): Add space after comma.

gcc/ada/errout.adb
gcc/ada/exp_dbug.adb
gcc/ada/exp_dist.adb
gcc/ada/sem_ch3.adb

index 16f7aa3a85c6e2c3d43e03ec64cd0ff2730ed774..e4a0d4a0d6e94609c1b2036e066f91852e621729 100644 (file)
@@ -1032,7 +1032,7 @@ package body Errout is
          if In_Extended_Main_Source_Unit (Sptr) then
             null;
 
-         --  If the main unit has not been read yet. the warning must be on
+         --  If the main unit has not been read yet. The warning must be on
          --  a configuration file: gnat.adc or user-defined. This means we
          --  are not parsing the main unit yet, so skip following checks.
 
index ef7b0241adb11822105a9e8878a527491645256e..ed5ae43be9bd5eb786e49f9ac1b980fce6e7d05d 100644 (file)
@@ -1557,7 +1557,7 @@ package body Exp_Dbug is
       then
          Set_BNPE_Suffix (Ent);
 
-         --  Strip trailing n's and last trailing b as required. note that
+         --  Strip trailing n's and last trailing b as required. Note that
          --  we know there is at least one b, or no suffix would be generated.
 
          while Name_Buffer (Name_Len) = 'n' loop
index 7fb21325bd55f37201d5336d1875b5665dcd199f..9805457f27fe3c4929863e9e84f5bad977ccbc3a 100644 (file)
@@ -2859,9 +2859,9 @@ package body Exp_Dist is
       if E_Calling_Stubs = Empty then
          RCI_Locator := RCI_Locator_Table.Get (RCI_Package);
 
-         --  The RCI_Locator package and calling stub are is inserted at the
-         --  top level in the current unit, and must appear in the proper scope
-         --  so that it is not prematurely removed by the GCC back end.
+         --  The RCI_Locator package and calling stub are inserted at the top
+         --  level in the current unit, and must appear in the proper scope so
+         --  that it is not prematurely removed by the GCC back end.
 
          declare
             Scop : constant Entity_Id := Cunit_Entity (Current_Sem_Unit);
index 4982fcd4721f625ea6b1d8cb122155259d943b37..594e08ef744f1564a0784a653f44802fd69a29d8 100644 (file)
@@ -19736,7 +19736,7 @@ package body Sem_Ch3 is
 
    begin
       --  If the mod expression is (exactly) 2 * literal, where literal is
-      --  128 or less,then almost certainly the * was meant to be **. Warn.
+      --  128 or less, then almost certainly the * was meant to be **. Warn.
 
       if Warn_On_Suspicious_Modulus_Value
         and then Nkind (Mod_Expr) = N_Op_Multiply