]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gnat_rm.texi, [...]: Minor reformatting.
authorRobert Dewar <dewar@adacore.com>
Mon, 20 Jan 2014 16:08:09 +0000 (16:08 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Mon, 20 Jan 2014 16:08:09 +0000 (17:08 +0100)
2014-01-20  Robert Dewar  <dewar@adacore.com>

* gnat_rm.texi, sem_ch4.adb: Minor reformatting.

From-SVN: r206843

gcc/ada/ChangeLog
gcc/ada/gnat_rm.texi
gcc/ada/sem_ch4.adb

index 3d73ee33d58c696fa85021c0d1b12490e12e7de1..6fc4554f77e6bc4403f519d748aa4e4a88e3fdd5 100644 (file)
@@ -1,3 +1,7 @@
+2014-01-20  Robert Dewar  <dewar@adacore.com>
+
+       * gnat_rm.texi, sem_ch4.adb: Minor reformatting.
+
 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
 
        * sem_ch4.adb (Analyze_Quantified_Expression): If after
index aa47b56385fc3772919c7871137629fe2f5da044..7710fd6a89b1399099db1380dbdc19d9c4b1c85c 100644 (file)
@@ -6308,7 +6308,7 @@ Pragma SPARK_Mode can be used as a local pragma with the following semantics:
 Auto cannot be used as a mode argument.
 
 @item
-When the pragma at the start of the visible declarations (preceded only
+When the pragma is at the start of the visible declarations (preceded only
 by other pragmas) of a package declaration, it marks the whole package
 (declaration and body) in or out of SPARK 2014.
 
index fcf6c75f18f49ea6101ee24b2f5f8feb28ffadb9..3e02d38d043b23427713afba5c393e8065a73bb7 100644 (file)
@@ -2956,17 +2956,15 @@ package body Sem_Ch4 is
          Form2 : constant Entity_Id := Next_Formal (Form1);
 
       begin
-         if Ekind (Fun) /= E_Function
-           or else Is_Abstract_Subprogram (Fun)
-         then
+         if Ekind (Fun) /= E_Function or else Is_Abstract_Subprogram (Fun) then
             return False;
 
          elsif not Has_Compatible_Type (Act1, Etype (Form1)) then
             return False;
 
          elsif Present (Form2) then
-            if
-              No (Act2) or else not Has_Compatible_Type (Act2, Etype (Form2))
+            if No (Act2)
+              or else not Has_Compatible_Type (Act2, Etype (Form2))
             then
                return False;
             end if;
@@ -3016,7 +3014,7 @@ package body Sem_Ch4 is
           (Needs_No_Actuals (Nam)
             or else
               (Needs_One_Actual (Nam)
-                 and then Present (Next_Actual (First (Actuals)))))
+                and then Present (Next_Actual (First (Actuals)))))
       then
          if Is_Array_Type (Subp_Type)
            and then
@@ -3673,8 +3671,7 @@ package body Sem_Ch4 is
          begin
             Preanalyze (Loop_Par);
 
-            if Nkind (Discrete_Subtype_Definition (Loop_Par)) =
-              N_Function_Call
+            if Nkind (Discrete_Subtype_Definition (Loop_Par)) = N_Function_Call
               and then Parent (Loop_Par) /= N
             then
                --  The parser cannot distinguish between a loop specification