]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Minor reformattings
authorpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Aug 2019 09:50:14 +0000 (09:50 +0000)
committerpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Aug 2019 09:50:14 +0000 (09:50 +0000)
2019-08-20  Gary Dismukes  <dismukes@adacore.com>

gcc/ada/

* ali.adb, ali.ads, aspects.adb, checks.ads, checks.adb,
doc/gnat_rm/implementation_defined_pragmas.rst,
doc/gnat_ugn/building_executable_programs_with_gnat.rst,
einfo.ads, exp_aggr.adb, exp_ch11.adb, exp_ch3.ads, exp_ch4.adb,
exp_disp.adb, inline.adb, libgnat/a-locale.ads,
libgnat/s-soflin.ads, par_sco.adb, repinfo.adb, sem_ch5.adb,
sem_disp.adb, sem_elab.adb, sem_eval.adb, sem_spark.adb,
sem_spark.ads, sinfo.ads: Minor reformattings, typo fixes and
and rewordings.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@274737 138bc75d-0d04-0410-961f-82ee72b054a4

26 files changed:
gcc/ada/ChangeLog
gcc/ada/ali.adb
gcc/ada/ali.ads
gcc/ada/aspects.adb
gcc/ada/checks.adb
gcc/ada/checks.ads
gcc/ada/doc/gnat_rm/implementation_defined_pragmas.rst
gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst
gcc/ada/einfo.ads
gcc/ada/exp_aggr.adb
gcc/ada/exp_ch11.adb
gcc/ada/exp_ch3.ads
gcc/ada/exp_ch4.adb
gcc/ada/exp_disp.adb
gcc/ada/inline.adb
gcc/ada/libgnat/a-locale.ads
gcc/ada/libgnat/s-soflin.ads
gcc/ada/par_sco.adb
gcc/ada/repinfo.adb
gcc/ada/sem_ch5.adb
gcc/ada/sem_disp.adb
gcc/ada/sem_elab.adb
gcc/ada/sem_eval.adb
gcc/ada/sem_spark.adb
gcc/ada/sem_spark.ads
gcc/ada/sinfo.ads

index 0a92182d55bd3d7d85192332afd3c6c55305aa0a..608eacb41afc8fa05e3de7efab7b56caa58f9a68 100644 (file)
@@ -1,3 +1,15 @@
+2019-08-20  Gary Dismukes  <dismukes@adacore.com>
+
+       * ali.adb, ali.ads, aspects.adb, checks.ads, checks.adb,
+       doc/gnat_rm/implementation_defined_pragmas.rst,
+       doc/gnat_ugn/building_executable_programs_with_gnat.rst,
+       einfo.ads, exp_aggr.adb, exp_ch11.adb, exp_ch3.ads, exp_ch4.adb,
+       exp_disp.adb, inline.adb, libgnat/a-locale.ads,
+       libgnat/s-soflin.ads, par_sco.adb, repinfo.adb, sem_ch5.adb,
+       sem_disp.adb, sem_elab.adb, sem_eval.adb, sem_spark.adb,
+       sem_spark.ads, sinfo.ads: Minor reformattings, typo fixes and
+       and rewordings.
+
 2019-08-20  Dmitriy Anisimkov  <anisimko@adacore.com>
 
        * adaint.c (__gnat_to_gm_time): On _WIN32, don't round time up
index ab9810466bde09a6ad9c85f3ffabf895681f0080..8d1d54a90b912713d1723477b57de8ee28675002 100644 (file)
@@ -649,7 +649,7 @@ package body ALI is
       Xref.Init;
       Xref_Section.Init;
 
-      --  Add dummy zero'th item in Linker_Options and Notes for sort calls
+      --  Add dummy zeroth item in Linker_Options and Notes for sort calls
 
       Linker_Options.Increment_Last;
       Notes.Increment_Last;
index 22bf8a2b0793bdd6942e22478c411aae44b2e6b2..5e2ec715183e299681014dcb3718769e8d450ba0 100644 (file)
@@ -727,9 +727,9 @@ package ALI is
       --  but before the entries from the run-time.
    end record;
 
-   --  The indexes of active entries in this table range from 1 to
-   --  the value of Linker_Options.Last. The zero'th element is for
-   --  convenience if the table needs to be sorted.
+   --  The indexes of active entries in this table range from 1 to the value of
+   --  Linker_Options.Last. The zeroth element is for convenience if the table
+   --  needs to be sorted.
 
    package Linker_Options is new Table.Table (
      Table_Component_Type => Linker_Option_Record,
@@ -765,9 +765,9 @@ package ALI is
       --  location to the last character on the line.
    end record;
 
-   --  The indexes of active entries in this table range from 1 to the
-   --  value of Notes.Last. The zero'th element is for convenience if
-   --  the table needs to be sorted.
+   --  The indexes of active entries in this table range from 1 to the value of
+   --  Notes.Last. The zeroth element is for convenience if the table needs to
+   --  be sorted.
 
    package Notes is new Table.Table (
      Table_Component_Type => Notes_Record,
index d582abf7ff54aa2fe9f892736059b533fcf57634..3b8b7c4ec99c229108469807e6df11b18a1e6c97 100644 (file)
@@ -226,8 +226,8 @@ package body Aspects is
          end if;
 
          if Is_Private_Type (Owner)
-            and then Present (Full_View (Owner))
-            and then not Operational_Aspect (A)
+           and then Present (Full_View (Owner))
+           and then not Operational_Aspect (A)
          then
             Owner := Full_View (Owner);
          end if;
index 03cfcef1a3880109f9e3a9c89435ea952182ac5e..61cabedacb6bba0977006fed599d3c08b73e966f 100644 (file)
@@ -2471,7 +2471,7 @@ package body Checks is
         (Formal     : Entity_Id;
          Prag_Nam   : Name_Id;
          For_Result : Boolean := False);
-      --  Add a single 'Valid[_Scalar] check which verifies the initialization
+      --  Add a single 'Valid[_Scalars] check which verifies the initialization
       --  of Formal. Prag_Nam denotes the pre or post condition pragma name.
       --  Set flag For_Result when to verify the result of a function.
 
index e2ac6ae538fa6297e74210ed6db1cb308bad082e..9bf29081764078840d7947df71f92e46dea03a80 100644 (file)
@@ -161,7 +161,7 @@ package Checks is
 
    procedure Activate_Range_Check (N : Node_Id);
    pragma Inline (Activate_Range_Check);
-   --  Sets Do_Range_Check flag in node N, and handles possible local raise
+   --  Sets Do_Range_Check flag in node N, and handles possible local raise.
    --  Always call this routine rather than calling Set_Do_Range_Check to
    --  set an explicit value of True, to ensure handling the local raise case.
 
index 7614504abbf284a6d002bc2aad14327ab0bb69fc..91c2d33568874027ccef3ac963e05392c9a10456 100644 (file)
@@ -380,9 +380,9 @@ Syntax:
 
   pragma Aggregate_Individually_Assign;
 
-Where possible GNAT will store the binary representation of a record aggregate
+Where possible, GNAT will store the binary representation of a record aggregate
 in memory for space and performance reasons. This configuration pragma changes
-this behaviour so that record aggregates are instead always converted into
+this behavior so that record aggregates are instead always converted into
 individual assignment statements.
 
 
index 82aecc89a28fae65babc169b9d8ac35a2a132d44..6f1345254625fac0b58a97bc603a4b85352af4dd 100644 (file)
@@ -4796,7 +4796,7 @@ checks to be performed. The following checks are defined:
 
   The set of style check switches is set to match that used by the GNAT sources.
   This may be useful when developing code that is eventually intended to be
-  incorporated into GNAT. Currently this is equivalent to :switch:`-gnatwydISux`)
+  incorporated into GNAT. Currently this is equivalent to :switch:`-gnatyydISux`)
   but additional style switches may be added to this set in the future without
   advance notice.
 
index 089960a005487c2023688304719ff4928c379e4b..e93a837b82e7478e82d73205cad8b892a44b4567 100644 (file)
@@ -663,8 +663,8 @@ package Einfo is
 --       In that case, this field points to that subtype.
 --
 --       For E_Class_Wide_Subtype, the presence of Equivalent_Type overrides
---       this field. Note that this field ONLY appears in subtype entries, not
---       in type entries, it is not defined, and it is an error to reference
+--       this field. Note that this field ONLY appears in subtype entities, not
+--       in type entities, it is not defined, and it is an error to reference
 --       Cloned_Subtype in an E_Record_Type or E_Class_Wide_Type entity.
 
 --    Comes_From_Source
@@ -915,7 +915,7 @@ package Einfo is
 --       depends on a private type.
 
 --    Derived_Type_Link (Node31)
---       Defined in all type and subtype entries. Set in a base type if
+--       Defined in all type and subtype entities. Set in a base type if
 --       a derived type declaration is encountered which derives from
 --       this base type or one of its subtypes, and there are already
 --       primitive operations declared. In this case, it references the
@@ -1228,7 +1228,7 @@ package Einfo is
 --       initial value). See Exp_Util.Expand_Class_Wide_Subtype for further
 --       details. For E_Exception_Type, this points to the record containing
 --       the data necessary to represent exceptions (for further details, see
---       System.Standard_Library. For access_to_protected subprograms, it
+--       System.Standard_Library). For access to protected subprograms, it
 --       denotes a record that holds pointers to the operation and to the
 --       protected object. For remote Access_To_Subprogram types, it denotes
 --       the record that is the fat pointer representation of an RAST.
@@ -1616,7 +1616,7 @@ package Einfo is
 --       set, signalling that Freeze.Inherit_Delayed_Rep_Aspects must be called
 --       at the freeze point of the derived type.
 
---    Has_DIC (syntherized)
+--    Has_DIC (synthesized)
 --       Defined in all type entities. Set for a private type and its full view
 --       when the type is subject to pragma Default_Initial_Condition (DIC), or
 --       when the type inherits a DIC pragma from a parent type.
@@ -1952,7 +1952,7 @@ package Einfo is
 --       Unmodified and Unreferenced pragmas.
 
 --    Has_Pragma_Unused (Flag294)
---       Defined in all entries. Set if a valid pragma Unused applies to a
+--       Defined in all entities. Set if a valid pragma Unused applies to a
 --       variable or entity, indicating that warnings should not be given if
 --       it is never modified or referenced. Note: This pragma is exactly
 --       equivalent Unmodified and Unreference combined.
@@ -3327,7 +3327,7 @@ package Einfo is
 --       frozen. If set it indicates that the representation is known to be
 --       unsigned (i.e. that no negative values appear in the range). This is
 --       normally just a reflection of the lower bound of the subtype or base
---       type, but there is one case in which the setting is non-obvious,
+--       type, but there is one case in which the setting is noobvious,
 --       namely the case of an unsigned subtype of a signed type from which
 --       a further subtype is obtained using variable bounds. This further
 --       subtype is still unsigned, but this cannot be determined by looking
index d720820881ab4ad1912cb4bff9bd7e610894bdc1..c3eba3c3f9334ba2181b6acd50821326beaa4b43 100644 (file)
@@ -7478,7 +7478,7 @@ package body Exp_Aggr is
          return;
       end if;
 
-      --  If the pramga Aggregate_Individually_Assign is set always convert to
+      --  If the pramga Aggregate_Individually_Assign is set, always convert to
       --  assignments.
 
       if Aggregate_Individually_Assign then
index 29d8718e4fe6bfc4d0ab42a3b74c4bc20ec4d5cf..d45cb4507aad1d67b4cbbe0e3ab244bdf7453f81 100644 (file)
@@ -63,10 +63,9 @@ package body Exp_Ch11 is
    --  N is the node on which the warning is placed.
 
    procedure Warn_If_No_Propagation (N : Node_Id);
-   --  Called for an exception raise that is not a local raise (and thus
-   --  cannot be optimized to a goto). Issues warning if
-   --  No_Exception_Propagation restriction is set.
-   --  N is the node for the raise or equivalent call.
+   --  Called for an exception raise that is not a local raise (and thus cannot
+   --  be optimized to a goto). Issues warning if No_Exception_Propagation
+   --  restriction is set. N is the node for the raise or equivalent call.
 
    ---------------------------
    -- Expand_At_End_Handler --
index 6ae0db7eac5980bbed1feff7257eb84ea1c575aa..197c053b5c2e3ac278aca7286ac5cf65bd8500da 100644 (file)
@@ -102,10 +102,10 @@ package Exp_Ch3 is
      (Typ  : Entity_Id;
       N    : Node_Id;
       Size : Uint := No_Uint) return Node_Id;
-   --  Build an expression which represents the required initial value of type
+   --  Build an expression that represents the required initial value of type
    --  Typ for which predicate Needs_Simple_Initialization is True. N is a node
-   --  whose source location used in the construction of the expression. Size
-   --  is utilized as follows:
+   --  whose source location is used in the construction of the expression.
+   --  Size is used as follows:
    --
    --    * If the size of the object to be initialized it is known, it should
    --      be passed to the routine.
@@ -115,7 +115,7 @@ package Exp_Ch3 is
    --
    --  The object size is needed to prepare a known invalid value for use by
    --  Normalize_Scalars. A call to this routine where Typ denotes a scalar
-   --  type is only valid when Normalize_Scalars or Initialize_Scalars is
+   --  type is valid only when Normalize_Scalars or Initialize_Scalars is
    --  active, or if N is the node for a 'Invalid_Value attribute node.
 
    procedure Init_Secondary_Tags
index 00f9aae51a3ee63cbbe438b9e9d06f291f58437f..f28deac9b47f8f8547866acbcc65084367202c76 100644 (file)
@@ -1852,7 +1852,7 @@ package body Exp_Ch4 is
                     Statements => New_List (Loop_Stm)));
 
          --  If no separate indexes, return loop statement with explicit
-         --  iteration scheme on its own
+         --  iteration scheme on its own.
 
          else
             Loop_Stm :=
@@ -2757,7 +2757,7 @@ package body Exp_Ch4 is
       --  The J'th entry in an expression node that represents the total length
       --  of operands 1 through J. It is either an integer literal node, or a
       --  reference to a constant entity with the right value, so it is fine
-      --  to just do a Copy_Node to get an appropriate copy. The extra zero'th
+      --  to just do a Copy_Node to get an appropriate copy. The extra zeroth
       --  entry always is set to zero. The length is of type Artyp.
 
       Low_Bound : Node_Id;
@@ -4421,7 +4421,7 @@ package body Exp_Ch4 is
 
    begin
       --  Warn on the presence of an allocator of an anonymous access type when
-      --  enabled except when its an object declaration at library level.
+      --  enabled, except when it's an object declaration at library level.
 
       if Warn_On_Anonymous_Allocators
         and then Ekind (PtrT) = E_Anonymous_Access_Type
@@ -11310,7 +11310,7 @@ package body Exp_Ch4 is
          end if;
 
          --  Nothing to do if expression was rewritten into a float-to-float
-         --  conversion, since this kind of conversions is handled elsewhere.
+         --  conversion, since this kind of conversion is handled elsewhere.
 
          if Is_Floating_Point_Type (Etype (Expr))
            and then Is_Floating_Point_Type (Target_Type)
index 84a6256681cc1e687c2cc55e83b0844660d07b9e..640d205a4a4cc86ea333d6ab982a55c6e2a5c1a4 100644 (file)
@@ -730,7 +730,7 @@ package body Exp_Disp is
 
          --  If the dispatching call appears in the same scope as the
          --  declaration of the dispatching subprogram (for example in
-         --  the expression of a local expression function) the prec.
+         --  the expression of a local expression function), the spec
          --  has not been analyzed yet, in which case we use the Chars
          --  field to recognize intended occurrences of the formals.
 
@@ -746,9 +746,7 @@ package body Exp_Disp is
                F := First_Formal (Subp);
                A := First_Actual (Call_Node);
 
-               if Present (Entity (N))
-                 and then Is_Formal (Entity (N))
-               then
+               if Present (Entity (N)) and then Is_Formal (Entity (N)) then
                   while Present (F) loop
                      if F = Entity (N) then
                         Rewrite (N, New_Copy_Tree (A));
@@ -781,9 +779,9 @@ package body Exp_Disp is
                      Next_Actual (A);
                   end loop;
 
-               --  If node is not analyzed, recognize occurrences of
-               --  a formal by name, as would be done when resolving
-               --  the aspect expression in the context of the subprogram.
+               --  If the node is not analyzed, recognize occurrences of a
+               --  formal by name, as would be done when resolving the aspect
+               --  expression in the context of the subprogram.
 
                elsif not Analyzed (N)
                  and then Nkind (N) = N_Identifier
index 46daa487e709b3e1a616a6cc3aa0d00da6ecc001..e5ecb554075ccd938a48b09f441d84bfae3ad2ab 100644 (file)
@@ -635,8 +635,8 @@ package body Inline is
             --  declares the type, and that body is visible to the back end.
             --  Do not inline it either if it is in the main unit.
             --  Extend the -gnatn2 processing to -gnatn1 for Inline_Always
-            --  calls if the back-end takes care of inlining the call.
-            --  Note that Level is in Inline_Call | Inline_Packag here.
+            --  calls if the back end takes care of inlining the call.
+            --  Note that Level is in Inline_Call | Inline_Package here.
 
             elsif ((Level = Inline_Call
                       and then Has_Pragma_Inline_Always (E)
index 314001ab600a536f06c2977725efcce877a015ba..418c41eb681ee4b1f8603418d980a3d5f541f596 100644 (file)
@@ -20,9 +20,9 @@ package Ada.Locales is
    pragma Remote_Types (Locales);
 
    --  A locale identifies a geopolitical place or region and its associated
-   --  language, which can be used to determine other
-   --  internationalization-related characteristics. The active locale is the
-   --  locale associated with the partition of the current task.
+   --  language, which can be used to determine other internationalization-
+   --  related characteristics. The active locale is the locale associated with
+   --  the partition of the current task.
 
    type Language_Code is new String (1 .. 3)
       with Dynamic_Predicate =>
index ff095b6c33bbf492e3f280d232e831c1c7db3472..2125d598c2d5756a1b6eff7e7b1f85f4854d5a60 100644 (file)
@@ -302,15 +302,16 @@ package System.Soft_Links is
    --  Wrapper to the possible user specified traceback decorator to be
    --  called during automatic output of exception data.
 
-   --  The null value of this wrapper correspond sto the null value of the
+   --  The null value of this wrapper correspondto the null value of the
    --  current actual decorator. This is ensured first by the null initial
    --  value of the corresponding variables, and then by Set_Trace_Decorator
    --  in g-exctra.adb.
 
    pragma Atomic (Traceback_Decorator_Wrapper);
    --  Since concurrent read/write operations may occur on this variable.
-   --  See the body of Tailored_Exception_Traceback in Ada.Exceptions for
-   --  a more detailed description of the potential problems.
+   --  See the body of Tailored_Exception_Traceback in
+   --  Ada.Exceptions.Exception_Data for a more detailed description of the
+   --  potential problems.
 
    procedure Save_Library_Occurrence (E : EOA);
    --  When invoked, this routine saves an exception occurrence into a hidden
index 4a7c286aea09fa9b36a044b4f0cf571e30ca7428..0fe248cb4df1df0dcf7fa4c6c56e9b58fbfdadfe 100644 (file)
@@ -92,8 +92,8 @@ package body Par_SCO is
    --  writing out the SCO information to the ALI file, we can fill in the
    --  proper dependency numbers and file names.
 
-   --  Note that the zero'th entry is here for convenience in sorting the
-   --  table, the real lower bound is 1.
+   --  Note that the zeroth entry is here for convenience in sorting the table;
+   --  the real lower bound is 1.
 
    package SCO_Unit_Number_Table is new Table.Table
      (Table_Component_Type => Unit_Number_Type,
index 0f318a0d65e0542e14bc9a86f5176b11ed5e6d2e..6318682f6481b383c8ada8ac5b1683004565001a 100644 (file)
@@ -1818,8 +1818,8 @@ package body Repinfo is
                    Has_Rep_Item (Ent, Name_Scalar_Storage_Order)
                      or else SSO_Set_Low_By_Default  (Ent)
                      or else SSO_Set_High_By_Default (Ent);
-      --  Scalar_Storage_Order is displayed if specified explicitly
-      --  or set by Default_Scalar_Storage_Order.
+      --  Scalar_Storage_Order is displayed if specified explicitly or set by
+      --  Default_Scalar_Storage_Order.
 
    --  Start of processing for List_Scalar_Storage_Order
 
index 963819ede4a745067b45dabd202159c85e6104d9..3abaa8dd83636dfef2218628b5f4461cfc3297f7 100644 (file)
@@ -2234,15 +2234,14 @@ package body Sem_Ch5 is
                It : Interp;
 
             begin
-               --  THe domain of iteralion must implement either the RM
+               --  The domain of iteration must implement either the RM
                --  iterator interface, or the SPARK Iterable aspect.
 
                if No (Iterator) then
-                  if No
-                     (Find_Aspect (Etype (Iter_Name), Aspect_Iterable))
-                  then
-                     Error_Msg_NE ("cannot iterate over&",
-                       N, Base_Type (Etype (Iter_Name)));
+                  if No (Find_Aspect (Etype (Iter_Name), Aspect_Iterable)) then
+                     Error_Msg_NE
+                       ("cannot iterate over&",
+                        N, Base_Type (Etype (Iter_Name)));
                      return;
                   end if;
 
index ee8f4431da9b0e8a7ea47f7d087b721244d0e001..b04b86332b15c7992bd7a50f9dfa01752c54dbdf 100644 (file)
@@ -1144,12 +1144,12 @@ package body Sem_Disp is
          --  3. Subprograms associated with stream attributes (built by
          --     New_Stream_Subprogram)
 
-         --  4. Wrapper built for inherited operations with inherited class-
+         --  4. Wrappers built for inherited operations with inherited class-
          --     wide conditions, where the conditions include calls to other
          --     overridden primitives. The wrappers include checks on these
          --     modified conditions. (AI12-113).
 
-         --  5. Declarations built for subprograms without separate spec which
+         --  5. Declarations built for subprograms without separate specs that
          --     are eligible for inlining in GNATprove (inside
          --     Sem_Ch6.Analyze_Subprogram_Body_Helper).
 
index 714a9f7221fcba7ca2ffc3cebe078e1a901e6e60..2dbf54da555e8f53773596ba0b1bf9afde500e50 100644 (file)
@@ -15234,8 +15234,8 @@ package body Sem_Elab is
          begin
             --  Nothing to do for predefined primitives because they are
             --  artifacts of tagged type expansion and cannot override source
-            --  primitives. Nothing to do as well for inherited primitives as
-            --  the check concerns overridding ones.
+            --  primitives. Nothing to do as well for inherited primitives, as
+            --  the check concerns overriding ones.
 
             if Is_Predefined_Dispatching_Operation (Prim)
               or else not Is_Overriding_Subprogram (Prim)
index 430b8bd5234c64b1b61359a7be2424dc630cb166..5c41642cea296e341977c98557baa76e08549bf4 100644 (file)
@@ -562,9 +562,9 @@ package body Sem_Eval is
       elsif Is_Out_Of_Range (N, Base_Type (T), Assume_Valid => True) then
          Out_Of_Range (N);
 
-      --  Give a warning or error on the value outside the subtype. A
-      --  warning is omitted if the expression appears in a range that could
-      --  be null (warnings are handled elsewhere for this case).
+      --  Give a warning or error on the value outside the subtype. A warning
+      --  is omitted if the expression appears in a range that could be null
+      --  (warnings are handled elsewhere for this case).
 
       elsif T /= Base_Type (T) and then Nkind (Parent (N)) /= N_Range then
          if Is_In_Range (N, T, Assume_Valid => True) then
@@ -578,8 +578,8 @@ package body Sem_Eval is
             if CodePeer_Mode and then T = RTE (RE_Priority) then
                Set_Do_Range_Check (N, False);
 
-            --  Determine if the out of range violation constitutes a warning
-            --  or an error based on context according to RM 4.9 (34/3).
+            --  Determine if the out-of-range violation constitutes a warning
+            --  or an error based on context, according to RM 4.9 (34/3).
 
             elsif Nkind_In (Original_Node (N), N_Type_Conversion,
                                                N_Qualified_Expression)
@@ -5531,8 +5531,8 @@ package body Sem_Eval is
          --  CodePeer mode where the target runtime may have more priorities.
 
          elsif not CodePeer_Mode or else Etype (N) /= RTE (RE_Priority) then
-            --  Determine if the out of range violation constitutes a warning
-            --  or an error based on context according to RM 4.9 (34/3).
+            --  Determine if the out-of-range violation constitutes a warning
+            --  or an error based on context, according to RM 4.9 (34/3).
 
             if Nkind (Original_Node (N)) = N_Type_Conversion
               and then not Comes_From_Source (Original_Node (N))
index 30e1426774792ca41c4b3a52089d5010ca5773f4..f99dced0da39ec353fcc9b3fe2e3abf8480264ca 100644 (file)
@@ -1171,19 +1171,17 @@ package body Sem_SPARK is
 
          Expr_Root := Get_Root_Object (Expr);
 
-         --  SPARK RM 3.10(8): For an assignment statement where
-         --  the target is a stand-alone object of an anonymous
-         --  access-to-object type
+         --  SPARK RM 3.10(7): For an assignment statement where the target is
+         --  a stand-alone object of an anonymous access-to-object type.
 
          pragma Assert (Present (Target_Root));
 
-         --  If the type of the target is an anonymous
-         --  access-to-constant type (an observing access type), the
-         --  source shall be an owning access object denoted by a name
-         --  that is not in the Moved state, and whose root object
-         --  is not in the Moved state and is not declared at a
-         --  statically deeper accessibility level than that of
-         --  the target object.
+         --  If the type of the target is an anonymous access-to-constant type
+         --  (an observing access type), the source shall be an owning access
+         --  object denoted by a name that is not in the Moved state, and whose
+         --  root object is not in the Moved state and is not declared at a
+         --  statically deeper accessibility level than that of the target
+         --  object.
 
          if Is_Access_Constant (Target_Typ) then
             Perm := Get_Perm (Expr);
@@ -1206,11 +1204,10 @@ package body Sem_SPARK is
 
             --  ??? check accessibility level
 
-            --  If the type of the target is an anonymous
-            --  access-to-variable type (an owning access type), the
-            --  source shall be an owning access object denoted by a
-            --  name that is in the Unrestricted state, and whose root
-            --  object is the target object itself.
+            --  If the type of the target is an anonymous access-to-variable
+            --  type (an owning access type), the source shall be an owning
+            --  access object denoted by a name that is in the Unrestricted
+            --  state, and whose root object is the target object itself.
 
             Check_Expression (Expr, Observe);
             Handle_Observe (Target_Root, Expr, Is_Decl);
index 0aaa11584badf815b65ea75cb68598c0520f2fe9..ff9aa633ab0b93c19dc7770fb6f1da69f0a2d1a1 100644 (file)
@@ -166,8 +166,7 @@ package Sem_SPARK is
    --  when there are violations of ownership rules.
 
    function Is_Deep (Typ : Entity_Id) return Boolean;
-   --  A function that can tell whether a type is deep. Returns True if the
-   --  type passed as argument is deep.
+   --  Returns True if the type passed as argument is deep
 
    function Is_Traversal_Function (E : Entity_Id) return Boolean;
 
index e3f7fd32ebe3b953376f3a7ffe28f738b2922ad1..dc8280076d27e0d478133bae3b11ef7a91b750dc 100644 (file)
@@ -2327,7 +2327,8 @@ package Sinfo is
    --    Present in N_Extended_Return_Statement. Points to a list initially
    --    containing a single N_Object_Declaration representing the return
    --    object. We use a list (instead of just a pointer to the object decl)
-   --    because Analyze wants to insert extra actions on this list.
+   --    because Analyze wants to insert extra actions on this list, before the
+   --    N_Object_Declaration, which always remains last on the list.
 
    --  Rounded_Result (Flag18-Sem)
    --    Present in N_Type_Conversion, N_Op_Divide, and N_Op_Multiply nodes.