[Ada] General purpose doubly linked list for compiler and tool use

Programming / Compilers / GCC - pmderodat [138bc75d-0d04-0410-961f-82ee72b054a4] - 21 August 2018 14:45 EDT

This patch adds unit GNAT.Lists which currently contains the implementation of a general purpose doubly linked list intended for use by the compiler and the tools around it.

2018-08-21 Hristian Kirtchev

gcc/ada/

- impunit.adb: Add g-lists to the set of non-implementation units.
- libgnat/g-lists.adb, libgnat/g-lists.ads: New unit.
- Makefile.rtl: Add g-lists to the set of non-tasking units.
- gcc-interface/Make-lang.in: Add g-lists to the set of files used by gnat1.

gcc/testsuite/

- gnat.dg/linkedlist.adb: New testcase.

e8603de1284 [Ada] General purpose doubly linked list for compiler and tool use
gcc/ada/ChangeLog | 9 +
gcc/ada/Makefile.rtl | 1 +
gcc/ada/gcc-interface/Make-lang.in | 1 +
gcc/ada/impunit.adb | 1 +
gcc/ada/libgnat/g-lists.adb | 635 ++++++++++++++++++
gcc/ada/libgnat/g-lists.ads | 245 +++++++
gcc/testsuite/ChangeLog | 4 +
gcc/testsuite/gnat.dg/linkedlist.adb | 1184 ++++++++++++++++++++++++++++++++++
8 files changed, 2080 insertions(+)

Upstream: gcc.gnu.org


  • Share