]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Expansion of discrete choices
authorpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 24 May 2018 13:04:39 +0000 (13:04 +0000)
committerpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 24 May 2018 13:04:39 +0000 (13:04 +0000)
commit46277fff231f6b74710a2a83baeac6e6510ff734
tree94986fe440f62a302f1b044bcd008b203214dcfa
parentb9424a22bb3b088e59e67175906f31563a57a0ab
[Ada] Expansion of discrete choices

This patch does some minor bookkeeping to avoid a potential double expansion
of discrete choices where at least one of them is a subtype with predicates.
No change in behavior, no need for a test.

2018-05-24  Hristian Kirtchev  <kirtchev@adacore.com>

gcc/ada/

* exp_util.adb (Expand_Static_Predicates_In_Choices): Indicate that the
construct with discrete choices no longer contains a subtype with
predicates since the expansion already handled this case.

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