[Ada] Fix incorrect Do_Range_Check on type conversion
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 12 Aug 2019 08:58:46 +0000 (08:58 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Mon, 12 Aug 2019 08:58:46 +0000 (08:58 +0000)
commit68c8d72a1aa31d750ddeb6a0eb3f472f1498a154
tree9e9ebcb62a42d01acce70febd27a9afaa661e19b
parent52c9b7face987062527c612e0a65f084e43c85fd
[Ada] Fix incorrect Do_Range_Check on type conversion

This gets rid of another leak of the Do_Range_Check flag to the back-end
which is specific to expression functions.  No functional changes.

2019-08-12  Eric Botcazou  <ebotcazou@adacore.com>

gcc/ada/

* checks.adb (Activate_Range_Check): Remove redundant argument.
(Generate_Range_Check): Likewise.
(Apply_Float_Conversion_Check): Reset the Do_Range_Check flag on
entry and remove redundant condition.

From-SVN: r274279
gcc/ada/ChangeLog
gcc/ada/checks.adb