Minor reformatting.
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Aug 2011 09:24:25 +0000 (09:24 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Aug 2011 09:24:25 +0000 (09:24 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177105 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ada/sem_ch6.adb
gcc/ada/sem_ch8.adb

index 260edc2..140113c 100644 (file)
@@ -1392,7 +1392,6 @@ package body Sem_Ch6 is
 
       if Result_Definition (N) /= Error then
          if Nkind (Result_Definition (N)) = N_Access_Definition then
-
             Check_Formal_Restriction
               ("access result is not allowed", Result_Definition (N));
 
@@ -1431,7 +1430,7 @@ package body Sem_Ch6 is
             then
                Check_Formal_Restriction
                  ("returning an unconstrained array is not allowed",
-                 Result_Definition (N));
+                  Result_Definition (N));
             end if;
 
             --  Ada 2005 (AI-231): Ensure proper usage of null exclusion
@@ -1861,16 +1860,15 @@ package body Sem_Ch6 is
          --  Special checks in formal mode
 
          if Nkind (Body_Spec) = N_Function_Specification then
-            --  In formal mode, the last statement of a function should be a
-            --  return statement.
+
+            --  In formal mode, last statement of a function should be a return
 
             declare
                Stat : constant Node_Id := Last_Source_Statement (HSS);
             begin
                if Present (Stat)
-                 and then not Nkind_In (Stat,
-                                        N_Simple_Return_Statement,
-                                        N_Extended_Return_Statement)
+                 and then not Nkind_In (Stat, N_Simple_Return_Statement,
+                                              N_Extended_Return_Statement)
                then
                   Check_Formal_Restriction
                     ("last statement in function should be RETURN", Stat);
@@ -8769,7 +8767,6 @@ package body Sem_Ch6 is
          Default := Expression (Param_Spec);
 
          if Present (Default) then
-
             Check_Formal_Restriction
               ("default expression is not allowed", Default);
 
index de3b9ff..7c9f59b 100644 (file)
@@ -2553,10 +2553,9 @@ package body Sem_Ch8 is
 
       Set_Hidden_By_Use_Clause (N, No_Elist);
 
-      --  Use clause is not allowed in a spec of a predefined package
-      --  declaration except that packages whose file name starts a-n are OK
-      --  (these are children of Ada.Numerics, and such packages are never
-      --  loaded by Rtsfind).
+      --  Use clause not allowed in a spec of a predefined package declaration
+      --  except that packages whose file name starts a-n are OK (these are
+      --  children of Ada.Numerics, which are never loaded by Rtsfind).
 
       if Is_Predefined_File_Name (Unit_File_Name (Current_Sem_Unit))
         and then Name_Buffer (1 .. 3) /= "a-n"