summaryrefslogtreecommitdiff
path: root/gcc/ada/sem_dist.ads
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2008-05-20 12:50:52 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2008-05-20 12:50:52 +0000
commit4360b13baff1bf0ce4f6fbe84ddaa4b789e64f2d (patch)
tree2d97f29ba15bb1b120dae1b2612fc1ef333715f9 /gcc/ada/sem_dist.ads
parentf62077309896860fb2ee5d1bdf62f7dc02a4a00a (diff)
downloadgcc-4360b13baff1bf0ce4f6fbe84ddaa4b789e64f2d.tar.gz
2008-05-20 Thomas Quinot <quinot@adacore.com>
* sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New subprogram. * sem_type.adb (Add_One_Interp): Ignore any interpretation that is a primitive operation of an RACW stub type (these primitives are only executed through dispatching, never through static calls). (Collect_Interps): When only one interpretation has been found, set N's Entity and Etype to that interpretation, otherwise Entity and Etype may still refer to an interpretation that was ignored by Add_One_Interp, in which case would end up with being marked as not overloaded but with an Entity attribute not pointing to its (unique) correct interpretation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@135642 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/sem_dist.ads')
-rw-r--r--gcc/ada/sem_dist.ads3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/ada/sem_dist.ads b/gcc/ada/sem_dist.ads
index 9f9b95d3e69..38a164a418f 100644
--- a/gcc/ada/sem_dist.ads
+++ b/gcc/ada/sem_dist.ads
@@ -100,4 +100,7 @@ package Sem_Dist is
function Package_Specification_Of_Scope (E : Entity_Id) return Node_Id;
-- Return the N_Package_Specification corresponding to a scope E
+ function Is_RACW_Stub_Type_Operation (Op : Entity_Id) return Boolean;
+ -- True when Op is a primitive operation of an RACW stub type
+
end Sem_Dist;