]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Make a couple of comment tweaks
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 21 Dec 2023 11:01:06 +0000 (12:01 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 6 May 2024 09:11:28 +0000 (11:11 +0200)
This removes a reference to a mechanism that didn't make it into the final
implementation and completes the description of another.

gcc/ada/

* libgnat/s-finpri.ads (Finalize_Master): Remove obsolete reference
in the description.
(Finalize_Object): Document the effects of repeated calls.

gcc/ada/libgnat/s-finpri.ads

index de775caee9143b6ec7c8f30ff8996eaeb5b3cf1f..ab79ea2c664d410664821bd4a81d377b0c91f746 100644 (file)
@@ -92,13 +92,12 @@ package System.Finalization_Primitives with Preelaborate is
 
    procedure Finalize_Master (Master : in out Finalization_Scope_Master);
    --  Finalizes each of the controlled objects associated with Master, in the
-   --  reverse of the order in which they were attached, and releases the space
-   --  that was allocated on the secondary stack if Master.SS_Mark is not null.
-   --  Calls to this procedure with a Master that has already been finalized
-   --  have no effects.
+   --  reverse of the order in which they were attached. Calls to the procedure
+   --  with a Master that has already been finalized have no effects.
 
    procedure Finalize_Object (Node : in out Master_Node);
-   --  Finalizes the controlled object attached to Node
+   --  Finalizes the controlled object attached to Node. Calls to the procedure
+   --  with a Node that has already been finalized have no effects.
 
    procedure Suppress_Object_Finalize_At_End (Node : in out Master_Node);
    --  Changes the state of Node to effectively suppress a call to Node's