sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for undocumented formal.
authorThomas Quinot <quinot@adacore.com>
Fri, 10 Apr 2009 15:12:15 +0000 (15:12 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Fri, 10 Apr 2009 15:12:15 +0000 (17:12 +0200)
2009-04-10  Thomas Quinot  <quinot@adacore.com>

* sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
undocumented formal.
Minor reformatting

* a-direio.ads: Fix typo in comment

* sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
Use uniform phrasing for comment at start of subprogram body.

* xsnamest.adb: Add note to explain why we use specific names for the
newly generated files instead of generating snames.{ads,adb,h} directly

From-SVN: r145918

14 files changed:
gcc/ada/ChangeLog
gcc/ada/a-direio.ads
gcc/ada/errout.adb
gcc/ada/exp_dist.adb
gcc/ada/g-dirope.adb
gcc/ada/sem_case.adb
gcc/ada/sem_ch11.adb
gcc/ada/sem_ch12.adb
gcc/ada/sem_ch13.adb
gcc/ada/sem_ch3.adb
gcc/ada/sem_ch4.adb
gcc/ada/sem_ch6.ads
gcc/ada/sem_type.adb
gcc/ada/xsnamest.adb

index 1a645a185d2be10e47b521964594ae676ab98a4b..395cf6331f7d6fafe2049bd2dd79ac8f56c28164 100644 (file)
@@ -1,3 +1,18 @@
+2009-04-10  Thomas Quinot  <quinot@adacore.com>
+
+       * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
+       undocumented formal.
+       Minor reformatting
+
+       * a-direio.ads: Fix typo in comment
+
+       * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
+       errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
+       Use uniform phrasing for comment at start of subprogram body.
+
+       * xsnamest.adb: Add note to explain why we use specific names for the
+       newly generated files instead of generating snames.{ads,adb,h} directly
+
 2009-04-10  Sergey Rybin  <rybin@adacore.com>
 
        * vms_data.ads:
index 5410d1f012b9720c342a5b65610c49182880d92a..1244b2dbfbd248bff14bab444f111e7649ed9acc 100644 (file)
@@ -170,7 +170,7 @@ private
    --  Size of an element in storage units. The Max operation here is to ensure
    --  that we allocate a single byte for zero-sized elements. It's a bit weird
    --  to instantiate Direct_IO with zero sized elements, but it is legal and
-   --  this adjustment ensures that we don't get anomolous behavior.
+   --  this adjustment ensures that we don't get anomalous behavior.
 
    pragma Inline (Close);
    pragma Inline (Create);
index 68d6409ed43e41ce04f2596e9b185b00344ec34b..d2c1caed84326e1c78afb6e68083eedac8c189bd 100644 (file)
@@ -278,7 +278,7 @@ package body Errout is
          return;
       end if;
 
-      --  Start processing of new message
+      --  Start of processing for new message
 
       Sindex := Get_Source_File_Index (Flag_Location);
       Test_Style_Warning_Serious_Msg (Msg);
index 516a55f46fd1aa53aaefb429423d126bf17664d6..0fc6288604f469c148731f54f0b10f10acb49ad1 100644 (file)
@@ -9595,7 +9595,7 @@ package body Exp_Dist is
                                  return Nod;
                               end Make_Discriminant_Reference;
 
-                           --  Start processing for Variant_Part
+                           --  Start of processing for Variant_Part
 
                            begin
                               Append_To (Stmts,
index f27336697ab285337fd7593ecac77b3391b11d3d..ad03db8c7b75649d7e0b49945c48d7454acb989f 100644 (file)
@@ -146,7 +146,7 @@ package body GNAT.Directory_Operations is
          end Check_For_Standard_Dirs;
       end Basename;
 
-   --  Start processing for Base_Name
+   --  Start of processing for Base_Name
 
    begin
       if Path'Length <= Suffix'Length then
index f226c348bdef8ef3b0f9d43decbb869764fc08a3..7afd0d3f718bf9f0d43666edbbbe744eecc8778b 100644 (file)
@@ -203,7 +203,7 @@ package body Sem_Case is
       Lo       : Uint;
       Prev_Hi  : Uint;
 
-   --  Start processing for Check_Choices
+   --  Start of processing for Check_Choices
 
    begin
       --  Choice_Table must start at 0 which is an unused location used
index 1aa3e7c07f703af39f5a5da6e0ef4937543955d8..8aedaf5be31e52da50129fe9c350a01f777fd39f 100644 (file)
@@ -156,7 +156,7 @@ package body Sem_Ch11 is
          return False;
       end Others_Present;
 
-   --  Start processing for Analyze_Exception_Handlers
+   --  Start of processing for Analyze_Exception_Handlers
 
    begin
       Handler := First (L);
index 739cbafa133c0f469aba1f518ad233f07ca90dbe..b8e5d88835556edad7ce677951f95082b15a7fbf 100644 (file)
@@ -6158,12 +6158,13 @@ package body Sem_Ch12 is
          while Present (E1) and then  E1 /= Instance loop
             if Ekind (E1) = E_Package
               and then Nkind (Parent (E1)) = N_Package_Renaming_Declaration
-              and then Renamed_Object (E1) = Pack
             then
-               return True;
+               if Renamed_Object (E1) = Pack then
+                  return True;
 
-            elsif Renamed_Object (E1) = P then
-               return False;
+               elsif Renamed_Object (E1) = P then
+                  return False;
+               end if;
             end if;
 
             Next_Entity (E1);
@@ -6172,7 +6173,7 @@ package body Sem_Ch12 is
          return False;
       end Is_Actual_Of_Previous_Formal;
 
-   --  Start processing of Denotes_Formal_Package
+   --  Start of processing for Denotes_Formal_Package
 
    begin
       if On_Exit then
index f5394dc172d27ab9eb4b0eba559eef9ad6b53438..47ffb42384f59b8fc7b97403e68b663f278fcab6 100644 (file)
@@ -4051,7 +4051,7 @@ package body Sem_Ch13 is
                   end if;
                end Same_Rep;
 
-            --  Start processing for Record_Case
+            --  Start of processing for Record_Case
 
             begin
                if Has_Discriminants (T1) then
index bc3ffadca9cccc2a1850e64e4b8367f4205fd5ab..70d6ceb4077c41b0a4789d66cab752c51aa2428e 100644 (file)
@@ -8434,7 +8434,7 @@ package body Sem_Ch3 is
          end if;
       end Post_Error;
 
-   --  Start processing for Check_Completion
+   --  Start of processing for Check_Completion
 
    begin
       E := First_Entity (Current_Scope);
@@ -13243,7 +13243,7 @@ package body Sem_Ch3 is
          end if;
       end Tag_Mismatch;
 
-   --  Start processing for Find_Type_Name
+   --  Start of processing for Find_Type_Name
 
    begin
       --  Find incomplete declaration, if one was given
index bd546fa845f403158cefad4734c999968ea907f5..e8199b5efebb1fa8baae48f3b5455f94c0c513b6 100644 (file)
@@ -4395,7 +4395,7 @@ package body Sem_Ch4 is
          end if;
       end Check_Right_Argument;
 
-   --  Start processing for Find_Arithmetic_Types
+   --  Start of processing for Find_Arithmetic_Types
 
    begin
       if not Is_Overloaded (L) then
@@ -4576,7 +4576,7 @@ package body Sem_Ch4 is
          end if;
       end Try_One_Interp;
 
-   --  Start processing for Find_Comparison_Types
+   --  Start of processing for Find_Comparison_Types
 
    begin
       --  If left operand is aggregate, the right operand has to
index e54c1e1117c1892a0d79d9b89fcb539e03a4f357..aecb09af949acde4c6add0f7e2268b7f757a6720 100644 (file)
@@ -116,9 +116,10 @@ package Sem_Ch6 is
       Err_Loc                  : Node_Id := Empty;
       Skip_Controlling_Formals : Boolean := False);
    --  Check that two callable entities (subprograms, entries, literals)
-   --  are subtype conformant, post error message if not (RM 6.3.1(16))
+   --  are subtype conformant, post error message if not (RM 6.3.1(16)),
    --  the flag being placed on the Err_Loc node if it is specified, and
    --  on the appropriate component of the New_Id construct if not.
+   --  What is the semantics of Skip_Controlling_Formals???
 
    procedure Check_Type_Conformant
      (New_Id  : Entity_Id;
index 815986456d8b1914fc28a422804aec21f88e104b..e7c2125c0435de3f9cc6989346bdb89641ebd2a1 100644 (file)
@@ -2416,7 +2416,7 @@ package body Sem_Type is
          end if;
       end Check_Right_Argument;
 
-   --  Start processing for Intersect_Types
+   --  Start of processing for Intersect_Types
 
    begin
       if Etype (L) = Any_Type or else Etype (R) = Any_Type then
index 2d6e8e97e080bc09070898908122a78dc547277d..c4c386bd6c85cbe644ae5c3f8c3ac11ca992af14 100644 (file)
@@ -185,6 +185,11 @@ begin
    Open (InB, In_File, "snames.adb-tmpl");
    Open (InH, In_File, "snames.h-tmpl");
 
+   --  Note that we do not generate snames.{ads,adb,h} directly. Instead
+   --  we output them to snames.n{s,b,h} so that Makefiles can use
+   --  move-if-change to not touch previously generated files if the
+   --  new ones are identical.
+
    Create (OutS, Out_File, "snames.ns");
    Create (OutB, Out_File, "snames.nb");
    Create (OutH, Out_File, "snames.nh");