diff options
author | Ed Schonberg <schonberg@adacore.com> | 2020-12-10 22:26:57 +0100 |
---|---|---|
committer | Eric Botcazou <ebotcazou@adacore.com> | 2020-12-10 22:30:30 +0100 |
commit | 779bf1823ced0814803d2be7f7ded0317e70140c (patch) | |
tree | d391a3cc0d828f52135f79badbd91c4d6641057a /gcc/gimple-loop-versioning.cc | |
parent | 3cf63c94df4712569e0ab996155013a3a043bed3 (diff) | |
download | gcc-779bf1823ced0814803d2be7f7ded0317e70140c.zip gcc-779bf1823ced0814803d2be7f7ded0317e70140c.tar.gz gcc-779bf1823ced0814803d2be7f7ded0317e70140c.tar.bz2 |
Fix PR ada/98230
It's a rather curious malfunction of the 'Mod attribute applied to the
variable of a loop whose upper bound is dynamic.
gcc/ada/ChangeLog:
PR ada/98230
* exp_attr.adb (Expand_N_Attribute_Reference, case Mod): Use base
type of argument to obtain static bound and required size.
gcc/testsuite/ChangeLog:
* gnat.dg/modular6.adb: New test.
Diffstat (limited to 'gcc/gimple-loop-versioning.cc')
0 files changed, 0 insertions, 0 deletions