Commit ebea257e by Hristian Kirtchev Committed by Pierre-Marie de Rodat

[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.

From-SVN: r260646
parent d72099eb
2018-05-24 Hristian Kirtchev <kirtchev@adacore.com>
* 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.
2018-05-24 Hristian Kirtchev <kirtchev@adacore.com>
* freeze.adb (Wrap_Imported_Subprogram): Generate an unchecked
conversion to the return type to avoid a side effect where an imported
relocated function generates a new anonymous access type, whose
......
......@@ -4995,6 +4995,8 @@ package body Exp_Util is
Choice := Next_C;
end loop;
Set_Has_SP_Choice (N, False);
end Expand_Static_Predicates_In_Choices;
------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment