[Ada] Avoid spurious errors on dimensionality checking in GNATprove
authorYannick Moy <moy@adacore.com>
Thu, 11 Jul 2019 08:03:24 +0000 (08:03 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Thu, 11 Jul 2019 08:03:24 +0000 (08:03 +0000)
commit8b727104817f1b0c2a03013ed397e99f8673405c
tree379d8b6a9c0283f4c1cf4dada41c41399f3b9bc4
parentd99ef225ac0722ab011cd39386fed4e346311edb
[Ada] Avoid spurious errors on dimensionality checking in GNATprove

In the special GNATprove mode of the frontend, automatic inlining is
performed, which may lead to spurious errors on dimensionality checking.
Avoid performing this checking on inlined code, which has already been
checked for dimensionality errors.

There is no impact on compilation.

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

gcc/ada/

* sem_res.adb (Resolve_Call): Do not perform dimensionality
checking on inlined bodies.

From-SVN: r273405
gcc/ada/ChangeLog
gcc/ada/sem_res.adb