[COMMITTED] ada: Reorder components in Ada.Containers.Bounded_Doubly_Linked_Lists

Marc Poulhiès poulhies@adacore.com
Fri May 26 07:36:27 GMT 2023


From: Eric Botcazou <ebotcazou@adacore.com>

gcc/ada/

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

Tested on x86_64-pc-linux-gnu, committed on master.

---
 gcc/ada/libgnat/a-cbdlli.ads | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/ada/libgnat/a-cbdlli.ads b/gcc/ada/libgnat/a-cbdlli.ads
index 961a00726c4..b8810536458 100644
--- a/gcc/ada/libgnat/a-cbdlli.ads
+++ b/gcc/ada/libgnat/a-cbdlli.ads
@@ -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
-- 
2.40.0



More information about the Gcc-patches mailing list