diff options
author | Yannick Moy <moy@adacore.com> | 2019-07-11 08:01:07 +0000 |
---|---|---|
committer | Pierre-Marie de Rodat <pmderodat@gcc.gnu.org> | 2019-07-11 08:01:07 +0000 |
commit | a34badbdf000e931dfa1a1291cf2739e2c75e68d (patch) | |
tree | d677009c2a8e3e15f1b14e9db02eed648b6cd4fe /gcc/ada/gcc-interface/Make-lang.in | |
parent | 435a6d9580fa1675537a4d2a3151802a15064d3d (diff) | |
download | gcc-a34badbdf000e931dfa1a1291cf2739e2c75e68d.zip gcc-a34badbdf000e931dfa1a1291cf2739e2c75e68d.tar.gz gcc-a34badbdf000e931dfa1a1291cf2739e2c75e68d.tar.bz2 |
[Ada] Avoid spurious warning on wrong order of operator call arguments
GNAT issues a warning under -gnatwa when actuals for a call are named
like the formals, but in a different order. This is inappropriate for
calls to operators in infix form, when e.g. Right <= Left is in general
the intended order. Special case calls to operators to avoid that
spurious warning.
2019-07-11 Yannick Moy <moy@adacore.com>
gcc/ada/
* sem_res.adb (Check_Argument_Order): Special case calls to
operators.
gcc/testsuite/
* gnat.dg/warn21.adb, gnat.dg/warn21.ads: New testcase.
From-SVN: r273378
Diffstat (limited to 'gcc/ada/gcc-interface/Make-lang.in')
0 files changed, 0 insertions, 0 deletions