ada: Reorder components in Ada.Containers.Restricted_Doubly_Linked_Lists
commit1ad8da08d62f5e3293a8b2506b1397009c483630
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 23 Mar 2023 13:35:57 +0000 (23 14:35 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Fri, 26 May 2023 07:29:17 +0000 (26 09:29 +0200)
tree5d7d5fa4613b5a853e989c2d955f1b24d1bfc54d
parent593e08bd1ed37b588332fc6953dd94c1dbf5db51
ada: Reorder components in Ada.Containers.Restricted_Doubly_Linked_Lists

An instantiation of the package compiled with -gnatw.q yields:
  warning: in instantiation at a-crdlli.ads:317 [-gnatw.q]
  warning: record layout may cause performance issues [-gnatw.q]
  warning: in instantiation at a-crdlli.ads:317 [-gnatw.q]
  warning:
       component "Nodes" whose length depends on a discriminant [-gnatw.q]
  warning: in instantiation at a-crdlli.ads:317 [-gnatw.q]
  warning: comes too early and was moved down [-gnatw.q]

gcc/ada/

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