Commit 1b762d7b by Ed Schonberg Committed by Arnaud Charlet

2008-05-26 Ed Schonberg <schonberg@adacore.com>

	* inline.adb:
	(Cleanup_Scopes): For a protected operation, transfer finalization list
	to protected body subprogram, to force cleanup actions when needed.

From-SVN: r135900
parent 0359c57c
...@@ -847,11 +847,15 @@ package body Inline is ...@@ -847,11 +847,15 @@ package body Inline is
-- cleanup operations have been delayed, and the subprogram -- cleanup operations have been delayed, and the subprogram
-- has been rewritten in the expansion of the enclosing -- has been rewritten in the expansion of the enclosing
-- protected body. It is the corresponding subprogram that -- protected body. It is the corresponding subprogram that
-- may require the cleanup operations. -- may require the cleanup operations, so propagate the
-- information that triggers cleanup activity.
Set_Uses_Sec_Stack Set_Uses_Sec_Stack
(Protected_Body_Subprogram (Scop), (Protected_Body_Subprogram (Scop),
Uses_Sec_Stack (Scop)); Uses_Sec_Stack (Scop));
Set_Finalization_Chain_Entity
(Protected_Body_Subprogram (Scop),
Finalization_Chain_Entity (Scop));
Scop := Protected_Body_Subprogram (Scop); Scop := Protected_Body_Subprogram (Scop);
end if; end if;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment