]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[multiple changes]
authorArnaud Charlet <charlet@gcc.gnu.org>
Tue, 13 Jan 2004 11:51:34 +0000 (12:51 +0100)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 13 Jan 2004 11:51:34 +0000 (12:51 +0100)
2004-01-13  Ed Schonberg  <schonberg@gnat.com>

* exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
components that are initialized with aggregates.

2004-01-13  Vincent Celier  <celier@gnat.com>

* gnatlink.adb (Process_Binder_File): To find directory of shared
libgcc, if "gcc-lib" is not a subdirectory, look for the last
subdirectory "lib" in the path of the shared libgnat or libgnarl.

* make.adb (Gnatmake): If GCC version is at least 3, link with
-shared-libgcc, when there is at least one shared library project.

* opt.ads (GCC_Version): New integer constant.

* adaint.c (get_gcc_version): New function.

2004-01-13  Robert Dewar  <dewar@gnat.com>

* sem_dist.adb, sem_res.adb, sem_util.adb,
sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting

2004-01-13  Thomas Quinot  <quinot@act-europe.fr>

* s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
declarations.

From-SVN: r75802

22 files changed:
gcc/ada/3zsocthi.adb
gcc/ada/5itaprop.adb
gcc/ada/ChangeLog
gcc/ada/adaint.c
gcc/ada/cstand.adb
gcc/ada/einfo.adb
gcc/ada/exp_ch3.adb
gcc/ada/exp_ch4.adb
gcc/ada/exp_ch9.adb
gcc/ada/exp_dist.adb
gcc/ada/g-regpat.adb
gcc/ada/g-spitbo.adb
gcc/ada/gnatlink.adb
gcc/ada/make.adb
gcc/ada/opt.ads
gcc/ada/s-interr.adb
gcc/ada/s-stache.adb
gcc/ada/s-taenca.adb
gcc/ada/sem_dist.adb
gcc/ada/sem_res.adb
gcc/ada/sem_util.adb
gcc/ada/sprint.adb

index 6d28e629b81ec51e25539dd255a2bcea29b7b94a..28e22418847ce5db9f1839c682e99754dc55a877 100644 (file)
@@ -64,7 +64,7 @@ package body GNAT.Sockets.Thin is
    Thread_Blocking_IO : Boolean := True;
 
    Unknown_System_Error : constant C.Strings.chars_ptr :=
-     C.Strings.New_String ("Unknown system error");
+                            C.Strings.New_String ("Unknown system error");
 
    --  The following types and variables are required to create a Hostent
    --  record "by hand".
index 9fae2de863c85d8e300ebf412300ac6de3bf0ce8..54a6b488939e1b5b7f40475005f1d12e0047e17d 100644 (file)
@@ -201,7 +201,7 @@ package body System.Task_Primitives.Operations is
    procedure Abort_Handler (signo : Signal) is
       pragma Unreferenced (signo);
 
-      Self_Id : Task_ID := Self;
+      Self_Id : constant Task_ID := Self;
       Result  : Interfaces.C.int;
       Old_Set : aliased sigset_t;
 
index ec010c6430dfa8c5709023122b0a7314de9ecf12..4d8f668c94a3e8931c2f22db7d3f3ae8d654db9e 100644 (file)
@@ -1,3 +1,33 @@
+2004-01-13  Ed Schonberg  <schonberg@gnat.com>
+
+       * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
+       components that are initialized with aggregates.
+
+2004-01-13  Vincent Celier  <celier@gnat.com>
+
+       * gnatlink.adb (Process_Binder_File): To find directory of shared
+       libgcc, if "gcc-lib" is not a subdirectory, look for the last
+       subdirectory "lib" in the path of the shared libgnat or libgnarl.
+
+       * make.adb (Gnatmake): If GCC version is at least 3, link with
+       -shared-libgcc, when there is at least one shared library project.
+
+       * opt.ads (GCC_Version): New integer constant.
+
+       * adaint.c (get_gcc_version): New function.
+
+2004-01-13  Robert Dewar  <dewar@gnat.com>
+
+       * sem_dist.adb, sem_res.adb, sem_util.adb,
+       sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
+       exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
+
+2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
+
+       * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
+       g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
+       declarations.
+
 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
 
        * misc.c: Remove trailing spaces.
index b7130d8fbb12a57fa81c2b011466d03d71f47939..6c3f71a6dfc5692a3f22a1dd42538fc9c792ee46 100644 (file)
@@ -6,7 +6,7 @@
  *                                                                          *
  *                          C Implementation File                           *
  *                                                                          *
- *          Copyright (C) 1992-2003, Free Software Foundation, Inc.         *
+ *          Copyright (C) 1992-2004, Free Software Foundation, Inc.         *
  *                                                                          *
  * GNAT is free software;  you can  redistribute it  and/or modify it under *
  * terms of the  GNU General Public License as published  by the Free Soft- *
@@ -2487,3 +2487,11 @@ __gnat_lseek (int fd, long offset, int whence)
 {
   return (int) lseek (fd, offset, whence);
 }
+
+/* This function returns the version of GCC being used.  Here it's GCC 3.  */
+int
+get_gcc_version (void)
+{
+  return 3;
+}
+
index 061597236ae41d742ba2fc064549cad356b3f0ac..5d812e732ab502983a8fe93f6ca5858e1dc6ab00 100644 (file)
@@ -559,6 +559,7 @@ package body CStand is
       --  Create type definition node for type String
 
       Tdef_Node := New_Node (N_Unconstrained_Array_Definition, Stloc);
+
       declare
          CompDef_Node : Node_Id;
       begin
@@ -567,6 +568,7 @@ package body CStand is
          Set_Subtype_Indication (CompDef_Node, Identifier_For (S_Character));
          Set_Component_Definition (Tdef_Node, CompDef_Node);
       end;
+
       Set_Subtype_Marks      (Tdef_Node, New_List);
       Append (Identifier_For (S_Positive), Subtype_Marks (Tdef_Node));
       Set_Type_Definition (Parent (Standard_String), Tdef_Node);
index 12651a3f6603696f209f963652cfa460a0054ff1..e9a0ddce3a5083915d2b70a37758645b9b35647a 100644 (file)
@@ -6,14 +6,14 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1992-2003 Free Software Foundation, Inc.          --
+--          Copyright (C) 1992-2004 Free Software Foundation, Inc.          --
 --                                                                          --
 -- GNAT is free software;  you can  redistribute it  and/or modify it under --
 -- terms of the  GNU General Public License as published  by the Free Soft- --
 -- ware  Foundation;  either version 2,  or (at your option) any later ver- --
 -- sion.  GNAT is distributed in the hope that it will be useful, but WITH- --
 -- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
--- or FITNESS FOR A CPARTICULAR PURPOSE.  See the GNU General Public License --
+-- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License --
 -- for  more details.  You should have  received  a copy of the GNU General --
 -- Public License  distributed with GNAT;  see file COPYING.  If not, write --
 -- to  the Free Software Foundation,  59 Temple Place - Suite 330,  Boston, --
index 634a2ba983e435801b09bba10e35d8b8f2801fbb..42d158624433a5a6a0a11d1473972158c4fb7334 100644 (file)
@@ -1527,7 +1527,7 @@ package body Exp_Ch3 is
          --  aggregate that will be expanded inline
 
          if Kind = N_Qualified_Expression then
-            Kind := Nkind (Parent (N));
+            Kind := Nkind (Expression (N));
          end if;
 
          if Controlled_Type (Typ)
index cc78eef25ce4f7dccb6f82db95180aecabeec89f..1f2640d2206a7d30b4de0acd4d084762d38d7b90 100644 (file)
@@ -654,7 +654,8 @@ package body Exp_Ch4 is
 
       Comp : RE_Id;
 
-      Stg_Unit_Is_Byte : constant Boolean := System_Storage_Unit = Byte'Size;
+      Byte_Addressable : constant Boolean := System_Storage_Unit = Byte'Size;
+      --  True for byte addressable target
 
       function Length_Less_Than_4 (Opnd : Node_Id) return Boolean;
       --  Returns True if the length of the given operand is known to be
@@ -707,7 +708,7 @@ package body Exp_Ch4 is
       --  addressing of array components.
 
       if not Is_Bit_Packed_Array (Typ1)
-        and then Stg_Unit_Is_Byte
+        and then Byte_Addressable
         and then not Java_VM
       then
          --  The call we generate is:
index 2db7c83914525694b3bb9a12b740fa38048f0dc3..9f02d518a977f460f6a4d909cc070049638fea3d 100644 (file)
@@ -2612,10 +2612,10 @@ package body Exp_Ch9 is
                            (Parent (Efam)))), Loc))),
 
                     Component_Definition =>
-                       Make_Component_Definition (Loc,
-                          Aliased_Present    => False,
-                          Subtype_Indication =>
-                             New_Reference_To (Standard_Character, Loc))));
+                      Make_Component_Definition (Loc,
+                        Aliased_Present    => False,
+                        Subtype_Indication =>
+                          New_Reference_To (Standard_Character, Loc))));
 
             Insert_After (Current_Node, Efam_Decl);
             Current_Node := Efam_Decl;
@@ -2629,10 +2629,12 @@ package body Exp_Ch9 is
                 Component_Definition =>
                   Make_Component_Definition (Loc,
                     Aliased_Present    => False,
+
                     Subtype_Indication =>
                       Make_Subtype_Indication (Loc,
                         Subtype_Mark =>
                           New_Occurrence_Of (Efam_Type, Loc),
+
                         Constraint  =>
                           Make_Index_Or_Discriminant_Constraint (Loc,
                             Constraints => New_List (
@@ -7283,11 +7285,13 @@ package body Exp_Ch9 is
            Make_Component_Declaration (Loc,
              Defining_Identifier =>
                Make_Defining_Identifier (Loc, Name_uTask_Info),
+
              Component_Definition =>
                Make_Component_Definition (Loc,
                  Aliased_Present    => False,
                  Subtype_Indication =>
                    New_Reference_To (RTE (RE_Task_Info_Type), Loc)),
+
              Expression => New_Copy (
                Expression (First (
                  Pragma_Argument_Associations (
index c8451ac027188e09df2d2aac821066bb9733c3bb..4204cac71f9461b68a9f5b7aa9d2a57bf3ea968f 100644 (file)
@@ -55,17 +55,19 @@ package body Exp_Dist is
    --  The following model has been used to implement distributed objects:
    --  given a designated type D and a RACW type R, then a record of the
    --  form:
+
    --    type Stub is tagged record
    --       [...declaration similar to s-parint.ads RACW_Stub_Type...]
    --    end record;
+
    --  is built. This type has two properties:
-   --
+
    --    1) Since it has the same structure than RACW_Stub_Type, it can be
    --       converted to and from this type to make it suitable for
    --       System.Partition_Interface.Get_Unique_Remote_Pointer in order
    --       to avoid memory leaks when the same remote object arrive on the
    --       same partition by following different pathes
-   --
+
    --    2) It also has the same dispatching table as the designated type D,
    --       and thus can be used as an object designated by a value of type
    --       R on any partition other than the one on which the object has
index 35df55d70bde6eaaaab779422305ded6983618c0..8857edccbfcd30f668fe5d01bd9e04787f60de32 100644 (file)
@@ -2997,9 +2997,9 @@ package body GNAT.Regpat is
       function Match_Whilem (IP : Pointer) return Boolean is
          pragma Unreferenced (IP);
 
-         Cc : Current_Curly_Access := Current_Curly;
-         N  : constant Natural     := Cc.Cur + 1;
-         Ln : Natural              := 0;
+         Cc : constant Current_Curly_Access := Current_Curly;
+         N  : constant Natural              := Cc.Cur + 1;
+         Ln : Natural                       := 0;
 
          Lastloc : constant Natural := Cc.Lastloc;
          --  Detection of 0-len.
index d7598bd72b22156df8b9f55a811bc7df31eaf4b3..64613e12687826d71f34461a0beb7a26c5e9be0a 100644 (file)
@@ -169,7 +169,7 @@ package body GNAT.Spitbol is
 
    procedure Reverse_String (Str : in out VString) is
       Len    : constant Natural := Length (Str);
-      Chars  : String_Access := Get_String (Str);
+      Chars  : constant String_Access := Get_String (Str);
       Temp   : Character;
 
    begin
index c1b11ba597ca2b30d7d37377dc0a32464a2be96f..08ad0d8da08b67980212004c49a56bff42b7de76 100644 (file)
@@ -678,7 +678,7 @@ procedure Gnatlink is
       --  terminator.
 
       function Index (S, Pattern : String) return Natural;
-      --  Return the first occurrence of Pattern in S, or 0 if none.
+      --  Return the last occurrence of Pattern in S, or 0 if none.
 
       function Is_Option_Present (Opt : in String) return Boolean;
       --  Return true if the option Opt is already present in
@@ -727,8 +727,9 @@ procedure Gnatlink is
 
       function Index (S, Pattern : String) return Natural is
          Len : constant Natural := Pattern'Length;
+
       begin
-         for J in S'First .. S'Last - Len + 1 loop
+         for J in reverse S'First .. S'Last - Len + 1 loop
             if Pattern = S (J .. J + Len - 1) then
                return J;
             end if;
@@ -1061,7 +1062,42 @@ procedure Gnatlink is
                                  --  Also add path to find libgcc_s.so, if
                                  --  relevant.
 
-                                 GCC_Index := Index (File_Path.all, "gcc-lib");
+                                 --  To find the location of the shared version
+                                 --  of libgcc, we look for "gcc-lib" in the
+                                 --  path of the library. However, this
+                                 --  subdirectory is no longer present in
+                                 --  in recent version of GCC. So, we look for
+                                 --  the last subdirectory "lib" in the path.
+
+                                 GCC_Index :=
+                                   Index (File_Path.all, "gcc-lib");
+
+                                 if GCC_Index /= 0 then
+                                    --  The shared version of libgcc is
+                                    --  located in the parent directory.
+
+                                    GCC_Index := GCC_Index - 1;
+
+                                 else
+                                    GCC_Index :=
+                                      Index (File_Path.all, "/lib/");
+
+                                    if GCC_Index = 0 then
+                                       GCC_Index :=
+                                         Index (File_Path.all,
+                                                Directory_Separator &
+                                                "lib" &
+                                                Directory_Separator);
+                                    end if;
+
+                                    --  We have found a subdirectory "lib",
+                                    --  this is where the shared version of
+                                    --  libgcc should be located.
+
+                                    if GCC_Index /= 0 then
+                                       GCC_Index := GCC_Index + 3;
+                                    end if;
+                                 end if;
 
                                  --  Look for an eventual run_path_option in
                                  --  the linker switches.
@@ -1124,7 +1160,7 @@ procedure Gnatlink is
                                                  (1 .. File_Path'Length
                                                        - File_Name'Length)
                                              & Path_Separator
-                                             & File_Path (1 .. GCC_Index - 1));
+                                             & File_Path (1 .. GCC_Index));
 
                                     else
                                        Linker_Options.Table
@@ -1137,7 +1173,7 @@ procedure Gnatlink is
                                                  (1 .. File_Path'Length
                                                        - File_Name'Length)
                                              & Path_Separator
-                                             & File_Path (1 .. GCC_Index - 1));
+                                             & File_Path (1 .. GCC_Index));
                                     end if;
                                  end if;
                               end if;
index ed7c188bc53f704cfcdd3ec8969d4897f7ec3790..f716fe74b900cb0216d84c066027e1780a31e3bf 100644 (file)
@@ -393,6 +393,14 @@ package body Make is
    Bind_Shared_Known : Boolean := False;
    --  Set to True after the first time Bind_Shared is computed
 
+   Shared_Libgcc : aliased String := "-shared-libgcc";
+
+   No_Shared_Libgcc_Switch : aliased Argument_List := (1 .. 0 => null);
+   Shared_Libgcc_Switch    : aliased Argument_List :=
+                               (1 => Shared_Libgcc'Access);
+   Link_With_Shared_Libgcc : Argument_List_Access :=
+                               No_Shared_Libgcc_Switch'Access;
+
    procedure Make_Failed (S1 : String; S2 : String := ""; S3 : String := "");
    --  Delete all temp files created by Gnatmake and call Osint.Fail,
    --  with the parameter S1, S2 and S3 (see osint.ads).
@@ -3383,6 +3391,7 @@ package body Make is
       Make.Initialize;
 
       Bind_Shared := No_Shared_Switch'Access;
+      Link_With_Shared_Libgcc := No_Shared_Libgcc_Switch'Access;
       Bind_Shared_Known := False;
 
       Failed_Links.Set_Last (0);
@@ -4769,6 +4778,12 @@ package body Make is
                           Projects.Table (Proj).Library_Kind /= Static
                         then
                            Bind_Shared := Shared_Switch'Access;
+
+                           if GCC_Version >= 3 then
+                              Link_With_Shared_Libgcc :=
+                                Shared_Libgcc_Switch'Access;
+                           end if;
+
                            exit;
                         end if;
                      end loop;
@@ -5276,7 +5291,9 @@ package body Make is
                   --  And invoke the linker
 
                   begin
-                     Link (Main_ALI_File, Args (Args'First .. Last_Arg));
+                     Link (Main_ALI_File,
+                           Link_With_Shared_Libgcc.all &
+                           Args (Args'First .. Last_Arg));
                      Successful_Links.Increment_Last;
                      Successful_Links.Table (Successful_Links.Last) :=
                        Main_ALI_File;
index 6c6fb3e083147a6d4f641c8ba97a934c6e1bf3ee..4dc56be381d3e6eb858fd780c7569fd8c24637c6 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 1992-2003, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2004, Free Software Foundation, Inc.         --
 --                                                                          --
 -- GNAT is free software;  you can  redistribute it  and/or modify it under --
 -- terms of the  GNU General Public License as published  by the Free Soft- --
@@ -444,6 +444,15 @@ package Opt is
    --  GNAT
    --  Set True to generate full source listing with embedded errors
 
+   function get_gcc_version return Int;
+   pragma Import (C, get_gcc_version, "get_gcc_version");
+
+   GCC_Version : constant Nat := get_gcc_version;
+   --  GNATMAKE
+   --  Indicates which version of gcc is in use (2 = 2.8.1, 3 = 3.x).
+   --  Used in particular to decide if gcc switch -shared-libgcc should be
+   --  used (it cannot be used for 2.8.1).
+
    Global_Discard_Names : Boolean := False;
    --  GNAT, GNATBIND
    --  Set true if a pragma Discard_Names applies to the current unit
index f62bfc551be10a9ec0a57df88473f62994d68715..41c98ccfb1617baa7e2e676fad3b9976f25ae5ef 100644 (file)
@@ -1249,7 +1249,7 @@ package body System.Interrupts is
    task body Server_Task is
       Intwait_Mask    : aliased IMNG.Interrupt_Mask;
       Ret_Interrupt   : Interrupt_ID;
-      Self_ID         : Task_ID := Self;
+      Self_ID         : constant Task_ID := Self;
       Tmp_Handler     : Parameterless_Handler;
       Tmp_ID          : Task_ID;
       Tmp_Entry_Index : Task_Entry_Index;
index aa403c3f9882ececadf74d2bcf206fe8842351b3..a784ed154cb363671ab26ca1a937291eeefc765d 100644 (file)
@@ -214,7 +214,7 @@ package body System.Stack_Checking is
 
       Full_Check :
       declare
-         My_Stack : Stack_Access := Set_Stack_Info (Cache'Access);
+         My_Stack : constant Stack_Access := Set_Stack_Info (Cache'Access);
          --  At this point Stack.all might already be invalid, so
          --  it is essential to use our local copy of Stack!
 
index cdc9f6f0cd5b3904ee0a18ec4ce89a421c685d04..db99abcbe3ecb7b4092d37f4e9f4e9a729110440 100644 (file)
@@ -262,7 +262,7 @@ package body System.Tasking.Entry_Calls is
 
                if Ceiling_Violation then
                   declare
-                     Current_Task      : Task_ID := STPO.Self;
+                     Current_Task      : constant Task_ID := STPO.Self;
                      Old_Base_Priority : System.Any_Priority;
 
                   begin
index c6a9862daf6da2ca95b5f478a25c834b90f2bae5..efaf5a1924105644050690872a8c57f079879c73 100644 (file)
@@ -441,8 +441,7 @@ package body Sem_Dist is
                         Make_Component_Definition (Loc,
                           Aliased_Present    => False,
                           Subtype_Indication =>
-                            New_Reference_To
-                              (Standard_Integer, Loc))),
+                            New_Reference_To (Standard_Integer, Loc))),
 
                     Make_Component_Declaration (Loc,
                       Defining_Identifier =>
@@ -452,8 +451,7 @@ package body Sem_Dist is
                         Make_Component_Definition (Loc,
                           Aliased_Present    => False,
                           Subtype_Indication =>
-                            New_Reference_To
-                              (RTE (RE_Unsigned_64), Loc))),
+                            New_Reference_To (RTE (RE_Unsigned_64), Loc))),
 
                     Make_Component_Declaration (Loc,
                       Defining_Identifier =>
@@ -463,8 +461,7 @@ package body Sem_Dist is
                         Make_Component_Definition (Loc,
                           Aliased_Present    => False,
                           Subtype_Indication =>
-                            New_Reference_To
-                              (Standard_Natural, Loc))),
+                            New_Reference_To (Standard_Natural, Loc))),
 
                     Make_Component_Declaration (Loc,
                       Defining_Identifier =>
@@ -474,8 +471,7 @@ package body Sem_Dist is
                         Make_Component_Definition (Loc,
                           Aliased_Present    => False,
                           Subtype_Indication =>
-                            New_Reference_To
-                              (Standard_Boolean, Loc)))))));
+                            New_Reference_To (Standard_Boolean, Loc)))))));
 
       Insert_After (N, New_Type_Decl);
       Set_Equivalent_Type (User_Type, Fat_Type);
index 0fb3fdf8c2b952854a8c78993b91c5fe4d77425c..5960a4d0cf83c213befcdc9fb9290b1ba0d1affb 100644 (file)
@@ -408,9 +408,10 @@ package body Sem_Res is
               and then Scope (Disc) = Current_Scope
               and then not
                 (Nkind (Parent (P)) = N_Subtype_Indication
-                 and then
-                  (Nkind (Parent (Parent (P))) = N_Component_Definition
-                   or else Nkind (Parent (Parent (P))) = N_Subtype_Declaration)
+                   and then
+                    (Nkind (Parent (Parent (P))) = N_Component_Definition
+                       or else
+                     Nkind (Parent (Parent (P))) = N_Subtype_Declaration)
                   and then Paren_Count (N) = 0)
             then
                Error_Msg_N
@@ -419,8 +420,9 @@ package body Sem_Res is
             end if;
 
             --   Detect a common beginner error:
+
             --   type R (D : Positive := 100) is record
-            --     Name: String (1 .. D);
+            --     Name : String (1 .. D);
             --   end record;
 
             --  The default value causes an object of type R to be
index 0c52cc30c304b29fe8cd33dffea0c164ee347d3f..687d5a5816dc851cb9e68e6a16aca28cf39872e0 100644 (file)
@@ -3221,7 +3221,7 @@ package body Sem_Util is
       function Has_Dependent_Constraint (Comp : Entity_Id) return Boolean is
          Comp_Decl  : constant Node_Id := Parent (Comp);
          Subt_Indic : constant Node_Id :=
-           Subtype_Indication (Component_Definition (Comp_Decl));
+                        Subtype_Indication (Component_Definition (Comp_Decl));
          Constr     : Node_Id;
          Assn       : Node_Id;
 
index a5031aae8a8707c7cd1a042f0f49a7dc308fcd58..10cad35ed78fe4e303c9af86a02810b68251b04b 100644 (file)
@@ -951,9 +951,11 @@ package body Sprint is
 
          when N_Component_Definition =>
             Set_Debug_Sloc;
+
             if Aliased_Present (Node) then
                Write_Str_With_Col_Check ("aliased ");
             end if;
+
             Sprint_Node (Subtype_Indication (Node));
 
          when N_Component_Declaration =>