[Ada] Fix expansion of operations on nonbinary modular types
commit798b97c4a32d678d46ed0e813037429c0bca054e
authorpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Oct 2018 15:05:59 +0000 (9 15:05 +0000)
committerpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Oct 2018 15:05:59 +0000 (9 15:05 +0000)
tree3ea0782e0c02d213421752d9f21a785be0e78232
parente85e34ecf7ec1abd2a603021b6b8b2fb133f3892
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@264973 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/exp_ch4.adb