exp_util.adb: Minor code reorganization (use N_Short_Circuit)
authorRobert Dewar <dewar@adacore.com>
Fri, 10 Jul 2009 09:43:01 +0000 (09:43 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Fri, 10 Jul 2009 09:43:01 +0000 (11:43 +0200)
commitac7120ce8aef83a746376463906782476b407e9b
treebf8ec6369279befb0c1ca83ba47a811a30dadbd1
parent514d0fc530d487c2f3819f59e5f2ca508f419a5d
exp_util.adb: Minor code reorganization (use N_Short_Circuit)

2009-07-10  Robert Dewar  <dewar@adacore.com>

* exp_util.adb: Minor code reorganization (use N_Short_Circuit)

* exp_ch4.adb: Add ??? comment for conditional expressions on limited
types.

* checks.adb (In_Declarative_Region_Of_Subprogram_Body): New procedure,
replaces Safe_To_Capture_In_Parameter_Value, and properly handles the
case of conditional expressions that may not be elaborated.

* sem_util.adb (Safe_To_Capture_Value): Properly handle case of
conditional expression where we may not execute then then or else
branches.

From-SVN: r149468
gcc/ada/ChangeLog
gcc/ada/checks.adb
gcc/ada/exp_ch4.adb
gcc/ada/exp_util.adb
gcc/ada/sem_util.adb