aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/exp_attr.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2009-05-06 17:15:25 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2009-05-06 17:15:25 +0200
commit1f11033528b5b35ecc84eb4afa53c64509eb542c (patch)
tree4e4050eefd76a022915565778c7256ae331239ab /gcc/ada/exp_attr.adb
parente0bf7d650ca008463f43269a57cc2cf602bca20b (diff)
downloadgcc-1f11033528b5b35ecc84eb4afa53c64509eb542c.zip
gcc-1f11033528b5b35ecc84eb4afa53c64509eb542c.tar.gz
gcc-1f11033528b5b35ecc84eb4afa53c64509eb542c.tar.bz2
[multiple changes]
2009-05-06 Robert Dewar <dewar@adacore.com> * sem_attr.adb: Add processing for Standard'Compiler_Version 2009-05-06 Arnaud Charlet <charlet@adacore.com> * exp_ch5.adb, exp_util.adb, exp_attr.adb, sem_util.adb, sem_res.adb, targparm.adb, targparm.ads, exp_ch4.adb, exp_ch6.adb, exp_disp.adb, opt.ads, exp_aggr.adb, exp_intr.adb, sem_disp.adb, exp_ch3.adb (Tagged_Type_Expansion): New flag. Replace use of VM_Target related to tagged types expansion by Tagged_Type_Expansion, since tagged type expansion is not necessarily linked to VM targets. From-SVN: r147182
Diffstat (limited to 'gcc/ada/exp_attr.adb')
-rw-r--r--gcc/ada/exp_attr.adb8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/ada/exp_attr.adb b/gcc/ada/exp_attr.adb
index 58e0639..bdc3c53 100644
--- a/gcc/ada/exp_attr.adb
+++ b/gcc/ada/exp_attr.adb
@@ -1031,7 +1031,7 @@ package body Exp_Attr is
elsif Is_Class_Wide_Type (Ptyp)
and then Is_Interface (Ptyp)
- and then VM_Target = No_VM
+ and then Tagged_Type_Expansion
and then not (Nkind (Pref) in N_Has_Entity
and then Is_Subprogram (Entity (Pref)))
then
@@ -3118,7 +3118,7 @@ package body Exp_Attr is
-- accessibility check on virtual machines, so we omit it.
if Ada_Version >= Ada_05
- and then VM_Target = No_VM
+ and then Tagged_Type_Expansion
then
Insert_Action (N,
Make_Implicit_If_Statement (N,
@@ -4355,7 +4355,7 @@ package body Exp_Attr is
-- For VMs we leave the type attribute unexpanded because
-- there's not a dispatching table to reference.
- if VM_Target = No_VM then
+ if Tagged_Type_Expansion then
Rewrite (N,
Unchecked_Convert_To (RTE (RE_Tag),
New_Reference_To
@@ -4380,7 +4380,7 @@ package body Exp_Attr is
-- Not needed for VM targets, since all handled by the VM
- if VM_Target = No_VM then
+ if Tagged_Type_Expansion then
Rewrite (N,
Make_Explicit_Dereference (Loc,
Unchecked_Convert_To (RTE (RE_Tag_Ptr),