[Ada] Minor reformatting and a typo fix
authorGary Dismukes <dismukes@adacore.com>
Wed, 28 Oct 2020 05:08:44 +0000 (01:08 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 26 Nov 2020 08:39:56 +0000 (03:39 -0500)
gcc/ada/

* sem_ch6.adb (Analyze_Call_And_Resolve): Reformatted a comment.
* sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
Fixed a typo.

gcc/ada/sem_ch6.adb
gcc/ada/sem_prag.adb

index 0c403ed..3d397a1 100644 (file)
@@ -2421,9 +2421,8 @@ package body Sem_Ch6 is
       else
          Error_Msg_N ("invalid procedure or entry call", N);
 
-         --  Specialize the error message in the case where both a
-         --  primitive operation and a record component are visible
-         --  at the same time.
+         --  Specialize the error message in the case where both a primitive
+         --  operation and a record component are visible at the same time.
 
          if Nkind (P) = N_Selected_Component
            and then Is_Entity_Name (Selector_Name (P))
index 02cf0bc..d06e68c 100644 (file)
@@ -10439,7 +10439,7 @@ package body Sem_Prag is
                   end if;
 
                --  Special processing for No_Tasking restriction (not just a
-               --  warning) when it appears as a configuration pragmas.
+               --  warning) when it appears as a configuration pragma.
 
                elsif R_Id = No_Tasking
                  and then No (Cunit (Main_Unit))