diff options
author | Ed Schonberg <schonberg@adacore.com> | 2013-04-23 09:58:23 +0000 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2013-04-23 11:58:23 +0200 |
commit | 0fbcb11c6251ed09ef715f9552e27321059cef35 (patch) | |
tree | 6a1ea022beb7e6eb04a80af7cd17a8d04eec02c7 /gcc/ada/sem_aux.ads | |
parent | 20a65dcba9a95dd40a8794324e833d5ff9f07544 (diff) | |
download | gcc-0fbcb11c6251ed09ef715f9552e27321059cef35.zip gcc-0fbcb11c6251ed09ef715f9552e27321059cef35.tar.gz gcc-0fbcb11c6251ed09ef715f9552e27321059cef35.tar.bz2 |
sem_aux.adb [...] (Effectively_has_Constrained_Partial_View): Rename subprogram as Object_Type_Has_Constrained_Partial_View...
2013-04-23 Ed Schonberg <schonberg@adacore.com>
* sem_aux.adb sem_aux.ads (Effectively_has_Constrained_Partial_View):
Rename subprogram as Object_Type_Has_Constrained_Partial_View, better
description of purpose.
* checks.adb (Apply_Discriminant_Check): Use above renaming.
* sem_ch4.adb (Analyze_Allocator): Check Has_Constrained_Partial_View
of the base type, rather than using the Object_Type predicate.
* sem_attr.adb (Analyze_Attribute, case 'Access): Use above renaming.
* sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): ditto.
* exp_attr.adb (Expand_N_Attribute_Reference, case 'Constrained): Ditto.
* exp_ch4.adb (Expand_N_Allocator): Ditto.
From-SVN: r198188
Diffstat (limited to 'gcc/ada/sem_aux.ads')
-rw-r--r-- | gcc/ada/sem_aux.ads | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/gcc/ada/sem_aux.ads b/gcc/ada/sem_aux.ads index fafd70f..e7086cc 100644 --- a/gcc/ada/sem_aux.ads +++ b/gcc/ada/sem_aux.ads @@ -6,7 +6,7 @@ -- -- -- S p e c -- -- -- --- Copyright (C) 1992-2012, Free Software Foundation, Inc. -- +-- Copyright (C) 1992-2013, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -105,14 +105,6 @@ package Sem_Aux is -- constants from the point of view of constant folding. Empty is also -- returned for variables with no initialization expression. - function Effectively_Has_Constrained_Partial_View - (Typ : Entity_Id; - Scop : Entity_Id) return Boolean; - -- Return True if Typ has attribute Has_Constrained_Partial_View set to - -- True; in addition, within a generic body, return True if a subtype is - -- a descendant of an untagged generic formal private or derived type, and - -- the subtype is not an unconstrained array subtype (RM 3.3(23.10/3)). - function Enclosing_Dynamic_Scope (Ent : Entity_Id) return Entity_Id; -- For any entity, Ent, returns the closest dynamic scope in which the -- entity is declared or Standard_Standard for library-level entities. @@ -259,6 +251,12 @@ package Sem_Aux is function In_Generic_Body (Id : Entity_Id) return Boolean; -- Determine whether entity Id appears inside a generic body + function Initialization_Suppressed (Typ : Entity_Id) return Boolean; + pragma Inline (Initialization_Suppressed); + -- Returns True if initialization should be suppressed for the given type + -- or subtype. This is true if Suppress_Initialization is set either for + -- the subtype itself, or for the corresponding base type. + function Is_By_Copy_Type (Ent : Entity_Id) return Boolean; -- Ent is any entity. Returns True if Ent is a type entity where the type -- is required to be passed by copy, as defined in (RM 6.2(3)). @@ -329,11 +327,14 @@ package Sem_Aux is function Number_Discriminants (Typ : Entity_Id) return Pos; -- Typ is a type with discriminants, yields number of discriminants in type - function Initialization_Suppressed (Typ : Entity_Id) return Boolean; - pragma Inline (Initialization_Suppressed); - -- Returns True if initialization should be suppressed for the given type - -- or subtype. This is true if Suppress_Initialization is set either for - -- the subtype itself, or for the corresponding base type. + function Object_Type_Has_Constrained_Partial_View + (Typ : Entity_Id; + Scop : Entity_Id) return Boolean; + -- Return True if type of object has attribute Has_Constrained_Partial_View + -- set to True; in addition, within a generic body, return True if subtype + -- of the object is a descendant of an untagged generic formal private or + -- derived type, and the subtype is not an unconstrained array subtype + -- (RM 3.3(23.10/3)). function Ultimate_Alias (Prim : Entity_Id) return Entity_Id; pragma Inline (Ultimate_Alias); |