[Ada] Remove extra space in single object declarations
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 27 Dec 2021 18:42:51 +0000 (19:42 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 11 Jan 2022 13:24:46 +0000 (13:24 +0000)
gcc/ada/

* exp_aggr.adb, exp_attr.adb, exp_ch3.adb, exp_ch7.adb,
exp_dist.adb, exp_util.adb, freeze.adb, frontend.adb,
inline.adb, itypes.adb, lib-load.adb, lib-xref.adb,
libgnat/a-cfhase.adb, libgnat/a-cforse.adb,
libgnat/a-chtgbo.adb, libgnat/a-crdlli.adb,
libgnat/a-except.adb, libgnat/a-strfix.adb,
libgnat/a-textio.adb, libgnat/a-tienau.adb,
libgnat/a-tigeau.adb, libgnat/a-witeio.adb,
libgnat/a-wtenau.adb, libgnat/a-wtgeau.adb,
libgnat/a-ztenau.adb, libgnat/a-ztexio.adb,
libgnat/a-ztgeau.adb, libgnat/g-comlin.adb,
libgnat/g-debpoo.adb, libgnat/g-expect.adb,
libgnat/s-fileio.adb, libgnat/s-memory.adb, libgnat/s-mmap.adb,
libgnat/s-objrea.adb, libgnat/s-pehage.adb,
libgnat/s-regpat.adb, libgnat/s-shasto.adb,
libgnat/s-valued.adb, libgnat/s-valuef.adb, par-ch11.adb,
par-ch4.adb, par-ch6.adb, par-ch9.adb, par_sco.adb,
repinfo-input.adb, sem_cat.adb, sem_ch10.adb, sem_ch12.adb,
sem_ch13.adb, sem_ch4.adb, sem_eval.adb, sem_prag.adb,
sem_res.adb, sem_util.adb, sinput.adb, switch-c.adb: Fix style.

56 files changed:
gcc/ada/exp_aggr.adb
gcc/ada/exp_attr.adb
gcc/ada/exp_ch3.adb
gcc/ada/exp_ch7.adb
gcc/ada/exp_dist.adb
gcc/ada/exp_util.adb
gcc/ada/freeze.adb
gcc/ada/frontend.adb
gcc/ada/inline.adb
gcc/ada/itypes.adb
gcc/ada/lib-load.adb
gcc/ada/lib-xref.adb
gcc/ada/libgnat/a-cfhase.adb
gcc/ada/libgnat/a-cforse.adb
gcc/ada/libgnat/a-chtgbo.adb
gcc/ada/libgnat/a-crdlli.adb
gcc/ada/libgnat/a-except.adb
gcc/ada/libgnat/a-strfix.adb
gcc/ada/libgnat/a-textio.adb
gcc/ada/libgnat/a-tienau.adb
gcc/ada/libgnat/a-tigeau.adb
gcc/ada/libgnat/a-witeio.adb
gcc/ada/libgnat/a-wtenau.adb
gcc/ada/libgnat/a-wtgeau.adb
gcc/ada/libgnat/a-ztenau.adb
gcc/ada/libgnat/a-ztexio.adb
gcc/ada/libgnat/a-ztgeau.adb
gcc/ada/libgnat/g-comlin.adb
gcc/ada/libgnat/g-debpoo.adb
gcc/ada/libgnat/g-expect.adb
gcc/ada/libgnat/s-fileio.adb
gcc/ada/libgnat/s-memory.adb
gcc/ada/libgnat/s-mmap.adb
gcc/ada/libgnat/s-objrea.adb
gcc/ada/libgnat/s-pehage.adb
gcc/ada/libgnat/s-regpat.adb
gcc/ada/libgnat/s-shasto.adb
gcc/ada/libgnat/s-valued.adb
gcc/ada/libgnat/s-valuef.adb
gcc/ada/par-ch11.adb
gcc/ada/par-ch4.adb
gcc/ada/par-ch6.adb
gcc/ada/par-ch9.adb
gcc/ada/par_sco.adb
gcc/ada/repinfo-input.adb
gcc/ada/sem_cat.adb
gcc/ada/sem_ch10.adb
gcc/ada/sem_ch12.adb
gcc/ada/sem_ch13.adb
gcc/ada/sem_ch4.adb
gcc/ada/sem_eval.adb
gcc/ada/sem_prag.adb
gcc/ada/sem_res.adb
gcc/ada/sem_util.adb
gcc/ada/sinput.adb
gcc/ada/switch-c.adb

index 98f9026e8f0429863ea95d86c572331fb7e1b6a5..e360baa6683af4ba8a1233e59a2b0ef9c98a0856 100644 (file)
@@ -9375,7 +9375,7 @@ package body Exp_Aggr is
          -----------------------
 
          function Get_Component_Val (N : Node_Id) return Uint is
-            Val  : Uint;
+            Val : Uint;
 
          begin
             --  We have to analyze the expression here before doing any further
index dd796bc1769d0ce5cf8e576556908d2c15538dec..5374dd4d7e9ded5d4fcb0fe5ec73271857f4d9cd 100644 (file)
@@ -3784,7 +3784,7 @@ package body Exp_Attr is
       --------------
 
       when Attribute_From_Any => From_Any : declare
-         Decls  : constant List_Id   := New_List;
+         Decls : constant List_Id := New_List;
 
       begin
          Rewrite (N,
index 921ab58a9690c124913ea5b32d0130fec9bf6159..50f46fb479eb5b11b2a3a75bebf5514f2a70a72c 100644 (file)
@@ -4139,7 +4139,7 @@ package body Exp_Ch3 is
                Set_Static_Initialization (Proc_Id, Agg);
 
                declare
-                  Comp  : Node_Id;
+                  Comp : Node_Id;
                begin
                   Comp := First (Component_Associations (Agg));
                   while Present (Comp) loop
index d8b398c1b77737ae31141b81431b7ffba02db299..8c74808e5945c9a0433d15f9a6e0c5531418c9b2 100644 (file)
@@ -4702,7 +4702,7 @@ package body Exp_Ch7 is
      (N   : Node_Id;
       Ref : Node_Id) return Node_Id
    is
-      Loc  : constant Source_Ptr := Sloc (N);
+      Loc : constant Source_Ptr := Sloc (N);
 
    begin
       --  For restricted run-time libraries (Ravenscar), tasks are
index 00da994d473d2fd7d2560199fbb7a1f0697b4495..e1df9d271df53c65e252b12046be9022425476b6 100644 (file)
@@ -2908,7 +2908,7 @@ package body Exp_Dist is
    ---------------------------------
 
    procedure Expand_Calling_Stubs_Bodies (Unit_Node : Node_Id) is
-      Spec  : constant Node_Id := Specification (Unit_Node);
+      Spec : constant Node_Id := Specification (Unit_Node);
    begin
       Add_Calling_Stubs_To_Declarations (Spec);
    end Expand_Calling_Stubs_Bodies;
index df94e026c475f833e902aa3516ddc18847ebe7c4..e1b462ac05fbae592905deb8bbaf923e4139eb39 100644 (file)
@@ -8780,7 +8780,7 @@ package body Exp_Util is
    ----------------------------------
 
    function Is_Possibly_Unaligned_Object (N : Node_Id) return Boolean is
-      T  : constant Entity_Id := Etype (N);
+      T : constant Entity_Id := Etype (N);
 
    begin
       --  If renamed object, apply test to underlying object
index 3da6f4920cb73dc2964e128203a13a43bb4e4da7..7ed44f591fc207867c9fecf75196536c26a802af 100644 (file)
@@ -2124,7 +2124,7 @@ package body Freeze is
    ----------------------------
 
    procedure Check_Strict_Alignment (E : Entity_Id) is
-      Comp  : Entity_Id;
+      Comp : Entity_Id;
 
    begin
       --  Bit-packed array types do not require strict alignment, even if they
index 32d9a2d532d5a6aea64f6ad5107e4f47fc5abbbe..c60234dc11d78b796f2f44fb41a7039200c1b130 100644 (file)
@@ -539,7 +539,7 @@ begin
    --  Initialize_Scalars, but others should be checked: as well???
 
    declare
-      Item  : Node_Id;
+      Item : Node_Id;
 
    begin
       Item := First (Context_Items (Cunit (Main_Unit)));
index ed917510805148cbe8e2217aaf932fcf7f8efe05..49d034de32268300cbffc82d71a96e5aa063e762 100644 (file)
@@ -2377,7 +2377,7 @@ package body Inline is
       ------------------------
 
       function Copy_Return_Object (Obj_Decl : Node_Id) return Node_Id is
-         Obj_Id  : constant Entity_Id := Defining_Entity (Obj_Decl);
+         Obj_Id : constant Entity_Id := Defining_Entity (Obj_Decl);
 
       begin
          --  The use of New_Copy_Tree ensures that global references are
@@ -3264,7 +3264,7 @@ package body Inline is
          ------------------
 
          function Process_Loop (N : Node_Id) return Traverse_Result is
-            Id  : Entity_Id;
+            Id : Entity_Id;
 
          begin
             if Nkind (N) = N_Loop_Statement
@@ -3676,7 +3676,7 @@ package body Inline is
       ----------------------------
 
       procedure Rewrite_Procedure_Call (N : Node_Id; Blk : Node_Id) is
-         HSS  : constant Node_Id := Handled_Statement_Sequence (Blk);
+         HSS : constant Node_Id := Handled_Statement_Sequence (Blk);
 
       begin
          Make_Loop_Labels_Unique (HSS);
index 0ff9ff5b275832854d767cfe68776e30387aa3bb..f7e8dd66e125e6b9ad92f837bb0ef197c20a7ab9 100644 (file)
@@ -89,7 +89,7 @@ package body Itypes is
        Related_Nod : Node_Id;
        Scope_Id    : Entity_Id := Current_Scope) return Entity_Id
    is
-      I_Typ        : Entity_Id;
+      I_Typ : Entity_Id;
 
    begin
       pragma Assert (Is_Access_Type (T));
index e8eb720f67e17e7346f22432c12228414a89c85f..cab72c0ef557c15edd80ab39de297103e7264af0 100644 (file)
@@ -958,7 +958,7 @@ package body Lib.Load is
    --  code will have to be generated for it.
 
    procedure Make_Instance_Unit (N : Node_Id; In_Main : Boolean) is
-      Sind  : constant Source_File_Index := Source_Index (Main_Unit);
+      Sind : constant Source_File_Index := Source_Index (Main_Unit);
 
    begin
       Units.Increment_Last;
index 5fde2fdc4a74663f121a5f73edf9c9816e8e9aa8..359e0069984c2349ed8df8ec53ca5459f9a13bca 100644 (file)
@@ -1677,7 +1677,7 @@ package body Lib.Xref is
       --  declared in the main unit.
 
       Handle_Prim_Ops : declare
-         Ent  : Entity_Id;
+         Ent : Entity_Id;
 
       begin
          for J in 1 .. Xrefs.Last loop
index 635397f26242e8bf2529cb4068263b177212a12e..6e289e42df5923c31cf0ab1e3ad8f46309a22eba 100644 (file)
@@ -949,7 +949,7 @@ is
            (Vet (Container, Position), "bad cursor in function Key");
 
          declare
-            N  : Node_Type renames Container.Content.Nodes (Position.Node);
+            N : Node_Type renames Container.Content.Nodes (Position.Node);
          begin
             return Key (N.Element);
          end;
index 1529d2b8be6402a6bd4d728bfd1e5c97ff7704a0..3b64511f52ef80d09edffe8dbc85258db1d2105a 100644 (file)
@@ -429,7 +429,7 @@ is
    ------------------
 
    procedure Delete_First (Container : in out Set) is
-      X    : constant Count_Type := Container.Content.First;
+      X : constant Count_Type := Container.Content.First;
    begin
       if X /= 0 then
          Tree_Operations.Delete_Node_Sans_Free (Container.Content, X);
@@ -442,7 +442,7 @@ is
    -----------------
 
    procedure Delete_Last (Container : in out Set) is
-      X    : constant Count_Type := Container.Content.Last;
+      X : constant Count_Type := Container.Content.Last;
    begin
       if X /= 0 then
          Tree_Operations.Delete_Node_Sans_Free (Container.Content, X);
@@ -1741,7 +1741,7 @@ is
       --------------
 
       function New_Node return Count_Type is
-         N  : Node_Type renames NN (Node);
+         N : Node_Type renames NN (Node);
       begin
          N.Element := Item;
          N.Color   := Red;
index eeca5704fc27e7618c2a33ce8cd684de40204562..2ffc923bf97997eb985687fd3f4963433a66a149 100644 (file)
@@ -439,7 +439,7 @@ package body Ada.Containers.Hash_Tables.Generic_Bounded_Operations is
      (Stream : not null access Root_Stream_Type'Class;
       HT     : out Hash_Table_Type'Class)
    is
-      N  : Count_Type'Base;
+      N : Count_Type'Base;
 
    begin
       Clear (HT);
index e21820e16b79e18b9bf08bb583ef9e8c47667fbc..a5fe43124133d591d06c24628be003980e7469b2 100644 (file)
@@ -1316,7 +1316,7 @@ package body Ada.Containers.Restricted_Doubly_Linked_Lists is
       pragma Assert (Vet (Position), "bad cursor in Update_Element");
 
       declare
-         N  : Node_Type renames Container.Nodes (Position.Node);
+         N : Node_Type renames Container.Nodes (Position.Node);
 
       begin
          Process (N.Element);
index d0d6d30c6decefcbd3a8c54405cc8efbfbf94437..3cf77126b765259d5c779da358cca0a693bbca6d 100644 (file)
@@ -1110,7 +1110,7 @@ package body Ada.Exceptions is
 
       else
          declare
-            New_Msg  : constant String := Prefix & Exception_Name (X);
+            New_Msg : constant String := Prefix & Exception_Name (X);
 
          begin
             --  No message present, just provide our own
index 56adedb744efa870fd8b6413ded20ae837ca5d7d..255738a229bdb612b8a6f8e8b4c49804c63382f5 100644 (file)
@@ -370,7 +370,7 @@ package body Ada.Strings.Fixed with SPARK_Mode is
       Before   : Positive;
       New_Item : String) return String
    is
-      Front  : constant Integer := Before - Source'First;
+      Front : constant Integer := Before - Source'First;
 
    begin
       if Before - 1 not in Source'First - 1 .. Source'Last then
index 26de53f6acb665bc205d68014ea63d73be29fc9d..bd76caa3c0ca714d0735f63b2983dd286daf797e 100644 (file)
@@ -403,7 +403,7 @@ is
    -----------------
 
    function End_Of_Page (File : File_Type) return Boolean is
-      ch  : int;
+      ch : int;
 
    begin
       FIO.Check_Read_Status (AP (File));
@@ -598,7 +598,7 @@ is
      (File : File_Type;
       Item : out Character)
    is
-      ch          : int;
+      ch : int;
 
    begin
       FIO.Check_Read_Status (AP (File));
index 42464fdf49429bfd60018f622aa895b9da991ca9..2e3fbcca8bedfbeabd48a281114f62ba57a594b7 100644 (file)
@@ -213,7 +213,7 @@ package body Ada.Text_IO.Enumeration_Aux is
       Start : out Natural;
       Stop  : out Natural)
    is
-      C  : Character;
+      C : Character;
 
    --  Processing for Scan_Enum_Lit
 
index 5f2fd080fb09bdedadb89b981e2828fe4678fbc5..0ca5a03cf94e3f350b143d5ddc2fbf35f7025e10 100644 (file)
@@ -384,7 +384,7 @@ package body Ada.Text_IO.Generic_Aux is
       Buf  : out String;
       Ptr  : in out Natural)
    is
-      Loaded   : Boolean;
+      Loaded : Boolean;
 
    begin
       --  Skip initial blanks, and load possible sign
index ccecf3693fc48557305ec87f65b2016ffe4d001d..39203dbd1bc7b8683bf3d8b614607be1c46154fd 100644 (file)
@@ -274,7 +274,7 @@ package body Ada.Wide_Text_IO is
    -----------------
 
    function End_Of_File (File : File_Type) return Boolean is
-      ch  : int;
+      ch : int;
 
    begin
       FIO.Check_Read_Status (AP (File));
@@ -368,7 +368,7 @@ package body Ada.Wide_Text_IO is
    -----------------
 
    function End_Of_Page (File : File_Type) return Boolean is
-      ch  : int;
+      ch : int;
 
    begin
       FIO.Check_Read_Status (AP (File));
@@ -444,7 +444,7 @@ package body Ada.Wide_Text_IO is
      (File : File_Type;
       Item : out Wide_Character)
    is
-      C  : Character;
+      C : Character;
 
    begin
       FIO.Check_Read_Status (AP (File));
index 2507e4bf74f654796ea5f2f7ff0c1b72e2592178..5c102bcac7d2011158e5250b9beb409ca0b3e72c 100644 (file)
@@ -227,7 +227,7 @@ package body Ada.Wide_Text_IO.Enumeration_Aux is
       Start : out Natural;
       Stop  : out Natural)
    is
-      WC  : Wide_Character;
+      WC : Wide_Character;
 
    --  Processing for Scan_Enum_Lit
 
index caa4735467b725b281bd9e096052880788260cc1..0831c3a0aa46cf6b387c6db4c272e9ebf924c645 100644 (file)
@@ -410,7 +410,7 @@ package body Ada.Wide_Text_IO.Generic_Aux is
       Buf  : out String;
       Ptr  : in out Natural)
    is
-      Loaded   : Boolean;
+      Loaded : Boolean;
 
    begin
       --  Skip initial blanks and load possible sign
index 9b1c1f5d8104f18a399c9145d2948a68517c006a..b03ad8fcd995ce8c92af42f0d23fc9a07b801546 100644 (file)
@@ -229,7 +229,7 @@ package body Ada.Wide_Wide_Text_IO.Enumeration_Aux is
       Start : out Natural;
       Stop  : out Natural)
    is
-      WC  : Wide_Wide_Character;
+      WC : Wide_Wide_Character;
 
    --  Processing for Scan_Enum_Lit
 
index 3b63fc2a2b9198fdbaa65150e8611969b3d40c1b..db0017ee052573f241d25fc208d4830cbc175731 100644 (file)
@@ -274,7 +274,7 @@ package body Ada.Wide_Wide_Text_IO is
    -----------------
 
    function End_Of_File (File : File_Type) return Boolean is
-      ch  : int;
+      ch : int;
 
    begin
       FIO.Check_Read_Status (AP (File));
@@ -368,7 +368,7 @@ package body Ada.Wide_Wide_Text_IO is
    -----------------
 
    function End_Of_Page (File : File_Type) return Boolean is
-      ch  : int;
+      ch : int;
 
    begin
       FIO.Check_Read_Status (AP (File));
@@ -444,7 +444,7 @@ package body Ada.Wide_Wide_Text_IO is
      (File : File_Type;
       Item : out Wide_Wide_Character)
    is
-      C  : Character;
+      C : Character;
 
    begin
       FIO.Check_Read_Status (AP (File));
index a5caeb742dff0abb2783c1f916f371ddce93edf8..42e4daf4db6b6ee794b92880d943daec423479fe 100644 (file)
@@ -410,7 +410,7 @@ package body Ada.Wide_Wide_Text_IO.Generic_Aux is
       Buf  : out String;
       Ptr  : in out Natural)
    is
-      Loaded   : Boolean;
+      Loaded : Boolean;
 
    begin
       --  Skip initial blanks and load possible sign
index ca6ee93f0c004e343c8e7d8fbd66c219aa9aa393..e583c2775e84520af4d9739e1b9c7f69ac1edfdb 100644 (file)
@@ -465,8 +465,8 @@ package body GNAT.Command_Line is
 
       if Do_Expansion then
          declare
-            Arg   : constant String :=
-                      Argument (Parser, Parser.Current_Argument - 1);
+            Arg : constant String :=
+                    Argument (Parser, Parser.Current_Argument - 1);
          begin
             for Index in Arg'Range loop
                if Arg (Index) in '*' | '?' | '[' then
@@ -1257,7 +1257,7 @@ package body GNAT.Command_Line is
       Expanded : String;
       Section  : String := "")
    is
-      Def    : Alias_Definition;
+      Def : Alias_Definition;
 
    begin
       if Config = null then
index 5cb212b1b4c304e260b32a1e576d6f21fe0b699b..ecab282f14b6d09b2f9ef73a305d820df9c53d7e 100644 (file)
@@ -777,7 +777,7 @@ package body GNAT.Debug_Pools is
       function Is_Valid_Or_Handled
         (Storage : System.Address;
          Valid   : Boolean) return Boolean is
-         Int_Storage  : constant Integer_Address := To_Integer (Storage);
+         Int_Storage : constant Integer_Address := To_Integer (Storage);
 
       begin
          --  The pool only returns addresses aligned on Storage_Alignment so
index 0a1e505b86699ad678db92e77b1f6bed63c8c2ce..e43ef4f352df5c2943d2cac7b8f4602f01d0a408 100644 (file)
@@ -193,7 +193,7 @@ package body GNAT.Expect is
       Str       : String;
       Filter_On : Filter_Type)
    is
-      Current_Filter  : Filter_List;
+      Current_Filter : Filter_List;
 
    begin
       if Pid.Filters_Lock = 0 then
index b58d60159b4d478fc36258eba0de697afa7f5406..3fdb29730a5458207633c4dae2e6e402fe77417c 100644 (file)
@@ -244,7 +244,7 @@ package body System.File_IO is
 
          if File.Shared_Status = Yes then
             declare
-               P   : AFCB_Ptr;
+               P : AFCB_Ptr;
 
             begin
                P := Open_Files;
index def450a9999fbc92ecb5b31888e522dd533a6dd9..965ef1578cad73d5e29ed908c3bd11af8ba4ed88 100644 (file)
@@ -134,7 +134,7 @@ package body System.Memory is
       Size : size_t)
       return System.Address
    is
-      Result      : System.Address;
+      Result : System.Address;
    begin
       if Size = size_t'Last then
          raise Storage_Error with "object too large";
index bbba7bfe26d8de3d83af5d0c756d364793961207..3c526e8386081300a139f067ad25b42725d59819 100644 (file)
@@ -367,7 +367,7 @@ package body System.Mmap is
       Length  : File_Size := 0;
       Mutable : Boolean := False) return Mapped_Region
    is
-      Region  : Mapped_Region := Invalid_Mapped_Region;
+      Region : Mapped_Region := Invalid_Mapped_Region;
    begin
       Read (File, Region, Offset, Length, Mutable);
       return Region;
index ce43726b646e556d7508d20c73b13719c0433568..854bbb290e4b52d30c745e5ff250714f717314b8 100644 (file)
@@ -1472,7 +1472,7 @@ package body System.Object_Reader is
         (Obj : in out XCOFF32_Object_File;
          Sym : Object_Symbol) return String_Ptr_Len
       is
-         Symbol  : Symbol_Entry;
+         Symbol : Symbol_Entry;
 
       begin
          Seek (Obj.Symtab_Stream, Sym.Off);
@@ -1820,7 +1820,7 @@ package body System.Object_Reader is
      (S : in out Mapped_Stream;
       Off : Offset) return String
    is
-      Buf     : Buffer;
+      Buf : Buffer;
 
    begin
       Seek (S, Off);
index 1f1367a55a1101492dc1e4867ac7e78bf933bb05..1468628562155bfec7c70d9d0fb10875a6cc9acf 100644 (file)
@@ -1233,7 +1233,7 @@ package body System.Perfect_Hash_Generators is
    ------------
 
    procedure Insert (Value : String) is
-      Len  : constant Natural := Value'Length;
+      Len : constant Natural := Value'Length;
 
    begin
       if Verbose then
index 92cb4b312fc02c9ee0796e0cd91599d73689415b..4f758f96d3ede492075ca5a7bea45e5c9e9abfdb 100644 (file)
@@ -664,7 +664,7 @@ package body System.Regpat is
          Operand : Pointer;
          Greedy  : Boolean := True)
       is
-         Old    : Pointer;
+         Old : Pointer;
       begin
          Old := Insert_Operator_Before (Op, Operand, Greedy, Opsize => 7);
          Emit_Natural (Old + Next_Pointer_Bytes, Min);
@@ -2108,7 +2108,7 @@ package body System.Regpat is
 
          if Do_Print then
             declare
-               Point   : constant String := Pointer'Image (Index);
+               Point : constant String := Pointer'Image (Index);
             begin
                Put ([1 .. 4 - Point'Length => ' ']
                     & Point & ":"
index 094b51da75204d2549ec8689e849d8b3f0cc3dad..c383878602c546bd3a11d1a24550f35ccfc52044 100644 (file)
@@ -440,7 +440,7 @@ package body System.Shared_Storage is
 
       if SFE = null then
          declare
-            S  : aliased constant String := Dir.all & Var;
+            S : aliased constant String := Dir.all & Var;
 
          begin
             SFE := new Shared_Var_File_Entry;
@@ -521,7 +521,7 @@ package body System.Shared_Storage is
 
       if SFE = null then
          declare
-            S  : aliased constant String := Dir.all & Var;
+            S : aliased constant String := Dir.all & Var;
 
          begin
             SFE := new Shared_Var_File_Entry;
index 1794f8b5acc605d79a0c3f1fd138472ce33c5fc9..c4a78a2ac874908f5055dfaba06740019b6d5eb4 100644 (file)
@@ -186,7 +186,7 @@ package body System.Value_D is
 
             elsif S > 0 then
                declare
-                  LS  : Integer := S;
+                  LS : Integer := S;
 
                begin
                   Y := Safe_Expont (B, LS, 10 ** Integer'Max (0, Scale));
index 1b9e35f5757d0a4b919ce98d557e2b872113dc99..e252a285364621fa00fbd905ed0534bc49c01dfd 100644 (file)
@@ -255,7 +255,7 @@ package body System.Value_F is
 
       elsif ScaleB > 0 then
          declare
-            LS  : Integer := ScaleB;
+            LS : Integer := ScaleB;
 
          begin
             Y := Safe_Expont (B, LS, Den);
index 5d5f082dafed8916f6b95c70a83da319761ddb62..cc10ba7aa1e859b2e2733c2a27e957103cf94d2e 100644 (file)
@@ -56,7 +56,7 @@ package body Ch11 is
    --  Error_Recovery : Cannot raise Error_Resync
 
    function P_Handled_Sequence_Of_Statements return Node_Id is
-      Handled_Stmt_Seq_Node  : Node_Id;
+      Handled_Stmt_Seq_Node : Node_Id;
    begin
       Handled_Stmt_Seq_Node :=
         New_Node (N_Handled_Sequence_Of_Statements, Token_Ptr);
index bd9e561effff113e530292fb8e78bc1af44ba614..0895be10655953efc5b4907ef0fdbb2406a58395 100644 (file)
@@ -1194,7 +1194,7 @@ package body Ch4 is
      (Prefix_Node : Node_Id)
       return        Node_Id
    is
-      Attr_Node  : Node_Id;
+      Attr_Node : Node_Id;
 
    begin
       Attr_Node := New_Node (N_Attribute_Reference, Token_Ptr);
index 91bdb3d7e0fce2575552aaeb75d91489178944e0..1b3cf94af5cc1556ca9e2d721509700f9cae7d92 100644 (file)
@@ -1144,7 +1144,7 @@ package body Ch6 is
       --------------
 
       function Real_Dot return Boolean is
-         Scan_State  : Saved_Scan_State;
+         Scan_State : Saved_Scan_State;
 
       begin
          if Token /= Tok_Dot then
index 0a5a65db53306e565dbc5886a2ab03b6ac3a69c6..7d4ea622e22f619e273933ea714b9807ca882bd7 100644 (file)
@@ -283,7 +283,7 @@ package body Ch9 is
    --  Error recovery:  cannot raise Error_Resync
 
    function P_Task_Definition return Node_Id is
-      Def_Node  : Node_Id;
+      Def_Node : Node_Id;
 
    begin
       Def_Node := New_Node (N_Task_Definition, Token_Ptr);
index 6db13890a7e79e4e4e0bd01555f4f58f14369c88..aba863dfeb2337cc1d6987d4505f861fb6eaaa3f 100644 (file)
@@ -922,8 +922,8 @@ package body Par_SCO is
    ---------------------
 
    procedure Record_Instance (Id : Instance_Id; Inst_Sloc : Source_Ptr) is
-      Inst_Src  : constant Source_File_Index :=
-                    Get_Source_File_Index (Inst_Sloc);
+      Inst_Src : constant Source_File_Index :=
+                   Get_Source_File_Index (Inst_Sloc);
    begin
       SCO_Instance_Table.Append
         ((Inst_Dep_Num       => Dependency_Num (Unit (Inst_Src)),
index 4cd399b38488cd69d76aebb10b52377d6d1eefc6..845da1247403a5d4e71e93bc1cedddb2501a78f7 100644 (file)
@@ -288,7 +288,7 @@ package body Repinfo.Input is
       ----------------------
 
       function Decode_Integer (Lo, Hi : Text_Ptr) return Uint is
-         Len  : constant Nat := Int (Hi) - Int (Lo) + 1;
+         Len : constant Nat := Int (Hi) - Int (Lo) + 1;
 
       begin
          --  Decode up to 9 characters manually, otherwise call into Uint
index f6de07d07ba9e7da4b7221d358eaabb46410b609..71395ec68300321726c195b60f175d5a631d2e24 100644 (file)
@@ -526,8 +526,8 @@ package body Sem_Cat is
    ----------------------------
 
    function In_Package_Declaration return Boolean is
-      Unit_Kind   : constant Node_Kind :=
-                      Nkind (Unit (Cunit (Current_Sem_Unit)));
+      Unit_Kind  : constant Node_Kind :=
+                     Nkind (Unit (Cunit (Current_Sem_Unit)));
 
    begin
       --  There are no restrictions on the body of an RCI or RT unit
index d32b2a099211edc493226773306225f78269ba98..9dbb87100a8addb9f1efb5d8c30bdb651e624c7c 100644 (file)
@@ -2279,7 +2279,7 @@ package body Sem_Ch10 is
       ----------------------------
 
       procedure Re_Install_Use_Clauses is
-         U  : Node_Id;
+         U : Node_Id;
       begin
          for J in reverse 1 .. Num_Scopes loop
             U := Use_Clauses (J);
index f4b35f83f3f683fd8467a32b65e1b8628dd4ea79..5eeaf3d252f08c44fccbabed11d344baec1e20e8 100644 (file)
@@ -2394,7 +2394,7 @@ package body Sem_Ch12 is
       T   : Entity_Id;
       Def : Node_Id)
    is
-      Loc   : constant Source_Ptr := Sloc (Def);
+      Loc : constant Source_Ptr := Sloc (Def);
 
    begin
       --  Rewrite as a type declaration of a derived type. This ensures that
@@ -10348,7 +10348,7 @@ package body Sem_Ch12 is
          Formal_Ent  : Entity_Id;
          Actual_Ent  : Entity_Id)
       is
-         Act_Pkg   : Entity_Id;
+         Act_Pkg : Entity_Id;
 
       begin
          Set_Instance_Of (Formal_Ent, Actual_Ent);
index 1577b9b2eb7e6fa0c7e33ec28260d9c60a2f3450..52f3df0b1f7694cf291f12f8bb831f5116b351b5 100644 (file)
@@ -593,7 +593,7 @@ package body Sem_Ch13 is
          Comp   := First_Component_Or_Discriminant (R);
          while Present (Comp) loop
             declare
-               CC   : constant Node_Id := Component_Clause (Comp);
+               CC : constant Node_Id := Component_Clause (Comp);
 
             begin
                --  Collect only component clauses whose last bit is less than
index f6f6ec5cc29df4dd82e76cececfbac683d327893..42547e3b2741b42b8c2b2bcd4bebb508f6f5de1a 100644 (file)
@@ -8263,7 +8263,7 @@ package body Sem_Ch4 is
               and then Is_Entity_Name (Name (Parent (Par)))
             then
                declare
-                  Proc   : Entity_Id;
+                  Proc : Entity_Id;
 
                begin
                   --  We should look for an interpretation with the proper
index e69e627c995f604ca8012f0f75820ffa7b775f09..2a6ca78e9194690d0b0a1aad6f622645a7b79db2 100644 (file)
@@ -4727,7 +4727,7 @@ package body Sem_Eval is
    ------------------
 
    function Expr_Value_E (N : Node_Id) return Entity_Id is
-      Ent  : constant Entity_Id := Entity (N);
+      Ent : constant Entity_Id := Entity (N);
    begin
       if Ekind (Ent) = E_Enumeration_Literal then
          return Ent;
index 2cabef63dca2bf274127a56d1bb81dd18df74b11..f9169eeedd7de415e11ec6cc71035d6e64332241 100644 (file)
@@ -32677,7 +32677,7 @@ package body Sem_Prag is
    --------------------------------------------
 
    procedure Defer_Compile_Time_Warning_Error_To_BE (N : Node_Id) is
-      Arg1  : constant Node_Id := First (Pragma_Argument_Associations (N));
+      Arg1 : constant Node_Id := First (Pragma_Argument_Associations (N));
    begin
       Compile_Time_Warnings_Errors.Append
         (New_Val => CTWE_Entry'(Eloc  => Sloc (Arg1),
index d4f9265475b43c67240af94864a6aa179b7cad7f..4f66b7157789e6a59453bb6ba1fefa347d1453e4 100644 (file)
@@ -9774,7 +9774,7 @@ package body Sem_Res is
       ----------------------------
 
       procedure Resolve_Set_Membership is
-         Alt  : Node_Id;
+         Alt : Node_Id;
 
       begin
          --  If the left operand is overloaded, find type compatible with not
index 0687502dd2d9f7384c747163d278b28aadcb7fc5..3534e83c6a98ae9a783bf01c7a2ca65367e0adba 100644 (file)
@@ -1659,7 +1659,7 @@ package body Sem_Util is
       Typ            : Entity_Id;
       Suggest_Static : Boolean := False)
    is
-      Gen            : Entity_Id;
+      Gen : Entity_Id;
 
    begin
       --  Avoid cascaded errors
@@ -10729,7 +10729,7 @@ package body Sem_Util is
    -------------------------------------
 
    function Get_Actual_Subtype_If_Available (N : Node_Id) return Entity_Id is
-      Typ  : constant Entity_Id := Etype (N);
+      Typ : constant Entity_Id := Etype (N);
 
    begin
       --  If what we have is an identifier that references a subprogram
@@ -21951,7 +21951,7 @@ package body Sem_Util is
       ------------------------------------
 
       function Prefix_Has_Volatile_Components (P : Node_Id) return Boolean is
-         Typ  : constant Entity_Id := Etype (P);
+         Typ : constant Entity_Id := Etype (P);
 
       begin
          if Is_Access_Type (Typ) then
index 599f2ae4b6ba49a7fc2a4dfb9122f91b0a36b6cd..4df735c2ccf25e66ada1c6d8b7364e790927d98b 100644 (file)
@@ -329,7 +329,7 @@ package body Sinput is
    begin
       for X in 1 .. Source_File.Last loop
          declare
-            S  : Source_File_Record renames Source_File.Table (X);
+            S : Source_File_Record renames Source_File.Table (X);
          begin
             if S.Instance = No_Instance_Id then
                Free_Source_Buffer (S.Source_Text);
index 343d296a2365127ab8f6d3315e54e689f636a9c1..a34e8410be87fe56405620786a8ca80713c238aa 100644 (file)
@@ -1285,7 +1285,7 @@ package body Switch.C is
 
                else
                   declare
-                     OK  : Boolean;
+                     OK : Boolean;
 
                   begin
                      Set_Validity_Check_Options
@@ -1408,7 +1408,7 @@ package body Switch.C is
                   Store_Switch := False;
 
                   declare
-                     OK  : Boolean;
+                     OK : Boolean;
 
                   begin
                      Set_Style_Check_Options