[Ada] Prevent inconsistent state for inlining in GNATprove
authorYannick Moy <moy@adacore.com>
Tue, 9 Jul 2019 07:54:00 +0000 (07:54 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Tue, 9 Jul 2019 07:54:00 +0000 (07:54 +0000)
commit554a9844f74932d2c6e9a690d04bfd96b361055b
tree6312457ae3ef968364d1de177da993b606b6114c
parent5dd6327237996b7f4103e11c76aac01bf2420e19
[Ada] Prevent inconsistent state for inlining in GNATprove

In GNATprove mode, subprograms with a body to inline should have been
filtered in Analyze_Subprogram_Body_Helper to match the conditions for
inlining subprograms in GNATprove. Prevent a call to Set_Body_To_Inline
in GNATprove mode that did not go through this filtering.

There is no impact on compilation.

2019-07-09  Yannick Moy  <moy@adacore.com>

gcc/ada/

* freeze.adb (Build_Renamed_Body): Do not set body to inline in
GNATprove mode.

From-SVN: r273274
gcc/ada/ChangeLog
gcc/ada/freeze.adb