]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Streamline runtime support of finalization collections
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 13 Dec 2024 18:17:00 +0000 (19:17 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Mon, 6 Jan 2025 09:14:49 +0000 (10:14 +0100)
commitad8242d616da64a03680a1d304910cdb0f3ceb18
tree8e935f3a39ca73dad485da819c44c409bfdda6f4
parent0d736433f9261fb9705f860a2e41cc407ecd972c
ada: Streamline runtime support of finalization collections

Finalization collections are declared as (limited) controlled types so that
they can be naturally attached to a finalization master, but the same result
can be achieved by means of (limited) finalizable types, which need not be
tagged and thus avoid dragging the runtime support of tagged types.

gcc/ada/ChangeLog:

* libgnat/s-finpri.ads: Remove clause for Ada.Finalization.
(Finalization_Collection): Change to limited private type with the
Finalizable aspect.
(Initialize): Remove "overriding" keyword.
(Finalize): Likewise.
* libgnat/s-finpri.adb (Initialize): Likewise.
(Finalize): Likewise.
gcc/ada/libgnat/s-finpri.adb
gcc/ada/libgnat/s-finpri.ads