exp_ch7.ads, [...] (Expand_Cleanup_Actions): Set Sloc of inserted cleanup code approp...
authorEd Schonberg <schonberg@adacore.com>
Wed, 6 Jun 2007 10:26:05 +0000 (12:26 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Wed, 6 Jun 2007 10:26:05 +0000 (12:26 +0200)
commitdbe13a374e58cda45a1a06df8e2a689bcc24e1da
treea6aef403ba2740ff9427d8dec69a70ef999786d4
parent7888a6aecc26ae7f7d406e893e0620dfccb1837b
exp_ch7.ads, [...] (Expand_Cleanup_Actions): Set Sloc of inserted cleanup code appropriately for GDB use.

2007-04-20  Ed Schonberg  <schonberg@adacore.com>
    Thomas Quinot  <quinot@adacore.com>

* exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
inserted cleanup code appropriately for GDB use.
(Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
exception handler for Deep_Adjust or Deep_Finalize.
(Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
Raise_From_Controlled_Operation is available, use a call to that
subprogram instead of a plain "raise Program_Error" node to raise
Program_Error if an exception is propagated from an Adjust or Finalize
operation.
(Insert_Actions_In_Scope_Around): If the statement to be wrapped
appears in the optional statement list of a triggering alternative, the
scope actions can be inserted directly there, and not in the list that
includes the asynchronous select itself.

From-SVN: r125400
gcc/ada/exp_ch7.adb
gcc/ada/exp_ch7.ads