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:32:05 +0100 |
commit | 87c40733898283f0d1e48bcbf8055c2718064e77 (patch) | |
tree | 3c88b4760154d372b905cb8270f0bd02ca9ea31e /gcc/tree-ssa-loop-unswitch.c | |
parent | 92cad21017f981a3f9f73934ca18d5f76a492421 (diff) | |
download | gcc-87c40733898283f0d1e48bcbf8055c2718064e77.zip gcc-87c40733898283f0d1e48bcbf8055c2718064e77.tar.gz gcc-87c40733898283f0d1e48bcbf8055c2718064e77.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/tree-ssa-loop-unswitch.c')
0 files changed, 0 insertions, 0 deletions