]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Fix Next_Actual when used on calls "inlined for proof"
authorpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 17 Jul 2018 08:06:04 +0000 (08:06 +0000)
committerpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 17 Jul 2018 08:06:04 +0000 (08:06 +0000)
commit74d3be849146958a513100d607e48f2439565ca3
treea68dd8dd6acbea5a39db1a660cf6a4183f4b0545
parent861040a761c187cd06f0c6f0236d3b1adec58ef4
[Ada] Fix Next_Actual when used on calls "inlined for proof"

The GNATprove backend needs to apply antialiasing checks to subprogram
calls that have been rewritten into null statements while "inlining for
proof". This requires the First_Actual/Next_Actual to use the Original_Node
and not the N_Null_Statement that rewriting leaves as a parent.

Only effective in GNATprove mode, so no frontend test provided.

2018-07-17  Piotr Trojanek  <trojanek@adacore.com>

gcc/ada/

* sem_util.adb (Next_Actual): If the parent is a N_Null_Statement,
which happens for inlined calls, then fetch the next actual from the
original AST.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@262773 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/sem_util.adb