[Ada] Convert operands of generated code to Standard.Unsigned for modular ops.
authorEd Schonberg <schonberg@adacore.com>
Thu, 31 May 2018 10:44:45 +0000 (10:44 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Thu, 31 May 2018 10:44:45 +0000 (10:44 +0000)
commitdfd2da005e1023bbcbcc0390bbb360c1b8a43f77
treeed510ce3a00298bd51cfb3e69316b966008dbdea
parent5b87c1fe09edc8ce6a105af9d27ae9353656d6f0
[Ada] Convert operands of generated code to Standard.Unsigned for modular ops.

2018-05-31  Ed Schonberg  <schonberg@adacore.com>

gcc/ada/

* exp_ch4.adb (Expand_Modular_Addition, Expand_Modular_Subtraction):
Convert all operands of the generated code to Standard.Unsigned, to
prevent spurious visibility errors. This is needed when the generated
expansion involves a modular index type of an array type, and the index
type is not immediately visible.

From-SVN: r260993
gcc/ada/ChangeLog
gcc/ada/exp_ch4.adb