]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Reorder components in Ada.Containers.Bounded_Doubly_Linked_Lists
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 23 Mar 2023 14:55:15 +0000 (15:55 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Fri, 26 May 2023 07:29:18 +0000 (09:29 +0200)
gcc/ada/

* libgnat/a-cbdlli.ads (List): Move Nodes component to the end.

gcc/ada/libgnat/a-cbdlli.ads

index 961a00726c4157865c2f8fe9ef07cc8f1badd76c..b8810536458896a19880d3a3a42b29ade64aab5b 100644 (file)
@@ -276,12 +276,12 @@ private
    type Node_Array is array (Count_Type range <>) of Node_Type;
 
    type List (Capacity : Count_Type) is tagged record
-      Nodes  : Node_Array (1 .. Capacity);
       Free   : Count_Type'Base := -1;
       First  : Count_Type := 0;
       Last   : Count_Type := 0;
       Length : Count_Type := 0;
       TC     : aliased Tamper_Counts;
+      Nodes  : Node_Array (1 .. Capacity);
    end record with Put_Image => Put_Image;
 
    procedure Put_Image