diff options
author | Ed Schonberg <schonberg@adacore.com> | 2018-05-25 09:05:21 +0000 |
---|---|---|
committer | Pierre-Marie de Rodat <pmderodat@gcc.gnu.org> | 2018-05-25 09:05:21 +0000 |
commit | 17dd35f448a689e51e8cd17138c6e942a343f894 (patch) | |
tree | 64ae599cbb238ebc57934e818b72461bf4734d29 /gcc/tree-loop-distribution.c | |
parent | bf5899e71ea7ca1cc3ae9007c2d5e06ee4108d2a (diff) | |
download | gcc-17dd35f448a689e51e8cd17138c6e942a343f894.zip gcc-17dd35f448a689e51e8cd17138c6e942a343f894.tar.gz gcc-17dd35f448a689e51e8cd17138c6e942a343f894.tar.bz2 |
[Ada] Spurious error on fixed-point operation whose operands are expressions
This patch fixes a spurious error in a fixed-point operand of a multiplying
operator M when the operand is an adding operation and the context imposes
a different fixed-point type to the result of M.
2018-05-25 Ed Schonberg <schonberg@adacore.com>
gcc/ada/
* sem_res.adb (Set_Mixed_Mode_Operand): If the operand is an expression
of a fixed point type and the parent is a multiplying operation,
resolve the operand with its own type because the context will impose a
resulting type on the result of the multiplication by means of
approriate conversion.
gcc/testsuite/
* gnat.dg/fixedpnt4.adb: New testcase.
From-SVN: r260741
Diffstat (limited to 'gcc/tree-loop-distribution.c')
0 files changed, 0 insertions, 0 deletions