[Ada] Rewrite Iterate_Call_Parameters in more assertive style
authorPiotr Trojanek <trojanek@adacore.com>
Fri, 25 May 2018 09:03:54 +0000 (09:03 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Fri, 25 May 2018 09:03:54 +0000 (09:03 +0000)
commit9da8032d4b0b5ca8cf5397b617cbcef55f735e19
tree240686d89a7e0b0e6e77806b4a13dec91db8f41a
parent5865218e3bf9b40d90c210446fa06e04265ffda0
[Ada] Rewrite Iterate_Call_Parameters in more assertive style

The formal and actual parameters in a subprogram call must match each other.
This is now checked with assertion (so that we can detect possible mistakes),
while the production builds have less work to do. Semantics unchanged.

2018-05-25  Piotr Trojanek  <trojanek@adacore.com>

gcc/ada/

* sem_util.adb (Iterate_Call_Parameters): Rewrite with extra
assertions; replace function versions of Next_Formal/Next_Actual with
their procedural versions (which are more concise).

From-SVN: r260725
gcc/ada/ChangeLog
gcc/ada/sem_util.adb