[Ada] Expansion in _postconditions confusing CodePeer
authorJustin Squirek <squirek@adacore.com>
Wed, 23 Dec 2020 18:06:22 +0000 (13:06 -0500)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 3 May 2021 09:28:22 +0000 (05:28 -0400)
commit3ffe57d4b11ca8daab277d94c86db2b95feafa9d
tree73f9ae627dd71a8d35e3b7bbd2a0f797b5762a7b
parent5b48ea9dacdae9edae491d72b5db8864109a48a1
[Ada] Expansion in _postconditions confusing CodePeer

gcc/ada/

* contracts.adb (Build_Postconditions_Procedure): Remove
internally generated if statement used to control finalization
actions.
* exp_ch6.adb (Add_Return, Expand_Non_Function_Return,
Expand_Simple_Function_Return): Add if statement around
_postconditions to control finalization.
* exp_ch7.adb (Build_Finalizer): Likewise.
* sem_prag.adb (Find_Related_Declaration_Or_Body): Add case to
handle Context itself being a handled sequence of statements.
gcc/ada/contracts.adb
gcc/ada/exp_ch6.adb
gcc/ada/exp_ch7.adb
gcc/ada/sem_prag.adb