diff options
author | Yannick Moy <moy@adacore.com> | 2018-05-21 14:51:19 +0000 |
---|---|---|
committer | Pierre-Marie de Rodat <pmderodat@gcc.gnu.org> | 2018-05-21 14:51:19 +0000 |
commit | 031936bc50832e0159efbac1157790d07a7bafae (patch) | |
tree | d4f5043214101efece2071ae78b996acf7a25966 /gcc/ada/sem_eval.adb | |
parent | 7255f3c31130b87e515afec8bf315206b1fb0fa1 (diff) | |
download | gcc-031936bc50832e0159efbac1157790d07a7bafae.zip gcc-031936bc50832e0159efbac1157790d07a7bafae.tar.gz gcc-031936bc50832e0159efbac1157790d07a7bafae.tar.bz2 |
[Ada] Use type conversion when inlining may trigger a run-time check
In the frontend inlining used in GNATprove, inlining of a return statement
was using an unchecked type conversion, which could cause a necessary
run-time check on the conversion to be skipped. Now fixed.
There is no impact on compilation.
2018-05-21 Yannick Moy <moy@adacore.com>
gcc/ada/
* inline.adb (Expand_Inlined_Call.Process_Formals): Use a type
conversion instead of an unchecked type conversion when inlining a
return statement, unless type qualification is required (for character
and string literal) or no check can result from the conversion (for
access types).
* opt.ads: Update comment.
From-SVN: r260458
Diffstat (limited to 'gcc/ada/sem_eval.adb')
0 files changed, 0 insertions, 0 deletions