diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2010-10-19 12:23:10 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2010-10-19 12:23:10 +0200 |
commit | 462027293874eb55bf0da3468f5635bc9f550ed3 (patch) | |
tree | 6dd5b3cd3d0d61fd317c6e454f8441d066577898 /gcc/ada/exp_ch4.adb | |
parent | 6c946a9fc31118ae37f00dbb168e17dec1ac9a7b (diff) | |
download | gcc-462027293874eb55bf0da3468f5635bc9f550ed3.zip gcc-462027293874eb55bf0da3468f5635bc9f550ed3.tar.gz gcc-462027293874eb55bf0da3468f5635bc9f550ed3.tar.bz2 |
[multiple changes]
2010-10-19 Tristan Gingold <gingold@adacore.com>
* init.c: On Alpha/VMS, only adjust PC for HPARITH.
2010-10-19 Tristan Gingold <gingold@adacore.com>
* sem_attr.adb (Eval_Attribute): Handle Attribute_Ref, which can be
evaluated on VMS.
2010-10-19 Ed Schonberg <schonberg@adacore.com>
* sem_ch12.adb (Check_Generic_Child_Unit): Handle properly the case of
an instantiation of a renaming of the implicit generic child that
appears within an instance of its parent.
2010-10-19 Thomas Quinot <quinot@adacore.com>
* exp_ch9.adb: Minor reformatting.
* einfo.adb, einfo.ads, atree.adb, atree.ads, exp_dist.adb, atree.h:
(Referenced_Object): Remove unused entity attribute.
(Direct_Primitive_Operations): Move to Elist10, this is set for all
tagged types, including synchronous ones, so can't use field15 which is
used as Storage_Size_Variable for task types and Entry_Bodies_Array for
protected types.
(Add_RACW_Primitive_Declarations_And_Bodies): Remove bogus guard
against Concurrent_Types (we must handle the case of a RACW designating
a class-wide private synchronous type).
Use Direct_Primitive_Operations, not Primitive_Operations, since we
really want the former.
2010-10-19 Bob Duff <duff@adacore.com>
* sem_ch8.adb (Pop_Scope): Change "return;" to "raise Program_Error;".
2010-10-19 Javier Miranda <miranda@adacore.com>
* exp_ch4.adb (Expand_Set_Membership.Make_Cond): Add missing support
for N_Range nodes.
From-SVN: r165689
Diffstat (limited to 'gcc/ada/exp_ch4.adb')
-rw-r--r-- | gcc/ada/exp_ch4.adb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/ada/exp_ch4.adb b/gcc/ada/exp_ch4.adb index d501cd5..efa0e74 100644 --- a/gcc/ada/exp_ch4.adb +++ b/gcc/ada/exp_ch4.adb @@ -3351,7 +3351,7 @@ package body Exp_Ch4 is -- number-of-elements * component_type'Max_Size_In_Storage_Elements - -- which avoids this problem. All this is a big bogus, but it does + -- which avoids this problem. All this is a bit bogus, but it does -- mean we catch common cases of trying to allocate arrays that -- are too large, and which in the absence of a check results in -- undetected chaos ??? @@ -4348,8 +4348,9 @@ package body Exp_Ch4 is R : constant Node_Id := Relocate_Node (Alt); begin - if Is_Entity_Name (Alt) - and then Is_Type (Entity (Alt)) + if (Is_Entity_Name (Alt) + and then Is_Type (Entity (Alt))) + or else Nkind (Alt) = N_Range then Cond := Make_In (Sloc (Alt), |