[Ada] Fix expansion of operations on nonbinary modular types
authorEd Schonberg <schonberg@adacore.com>
Tue, 9 Oct 2018 15:05:59 +0000 (15:05 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Tue, 9 Oct 2018 15:05:59 +0000 (15:05 +0000)
commit184d0451c491493927816b41dc0b9eebd63601eb
tree3ea0782e0c02d213421752d9f21a785be0e78232
parent9e25affdbd810a3a40cc078d2a6415dd4b3baf7b
[Ada] Fix expansion of operations on nonbinary modular types

2018-10-09  Ed Schonberg  <schonberg@adacore.com>

gcc/ada/

* exp_ch4.adb (Expand_Modular_Op): When expanding an operation
on nonbinary modular types, convert the opersnds to an integer
type that is large enough to hold the modulus of the type, which
may be larger than Integer'Last.

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