r193228 - in /trunk/gcc/ada: ChangeLog exp_attr...

charlet@gcc.gnu.org charlet@gcc.gnu.org
Tue Nov 6 10:22:00 GMT 2012


Author: charlet
Date: Tue Nov  6 10:22:42 2012
New Revision: 193228

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193228
Log:
2012-11-06  Gary Dismukes  <dismukes@adacore.com>

	* exp_attr.adb (Expand_N_Attribute_Reference): Apply a predicate
	check when evaluating the attribute Valid, and issue a warning
	about infinite recursion when the check occurs within the
	predicate function of the prefix's subtype.
	* exp_ch4.adb (Expand_N_In): Remove test for Is_Discrete_Type
	when we're checking that there's no predicate check function as a
	condition for substituting a Valid check for a scalar membership
	test (substitution should be suppressed for any kind of scalar
	subtype with a predicate check). Also, don't emit a predicate
	check when the right operand is a range.


Modified:
    trunk/gcc/ada/ChangeLog
    trunk/gcc/ada/exp_attr.adb
    trunk/gcc/ada/exp_ch4.adb



More information about the Gcc-cvs mailing list