diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-07-18 10:01:26 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-07-18 10:01:26 +0000 |
commit | fb668360a1b1fa0cc85b2aa7361099960dcf6ea8 (patch) | |
tree | 2a171b963b83e699b1397ae128743d670dbf52ba /gcc/ada/sinfo.ads | |
parent | c25d831a8a89eb43bb24577c49df233b49c44a44 (diff) | |
download | gcc-fb668360a1b1fa0cc85b2aa7361099960dcf6ea8.tar.gz |
2014-07-18 Robert Dewar <dewar@adacore.com>
* repinfo.ads: Add documentation on handling of back annotation
for dynamic case.
2014-07-18 Ed Schonberg <schonberg@adacore.com>
* sinfo.ads, sinfo.adb (Incomplete_View): New semantic attribute
of full type declaration, denotes previous declaration for
incomplete view of the type.
* sem_ch3.adb (Analyze_Full_Type_Declaration): Set Incomplete_View
of declaration if one is present.
(Replace_Type): When constructing the signature of an inherited
operation, handle properly the case where the operation has a
formal whose type is an incomplete view.
* sem_util.adb (Collect_Primitive_Operations): Handle properly
the case of an operation declared after an incomplete declaration
for a type T and before the full declaration of T.
2014-07-18 Pascal Obry <obry@adacore.com>
* i-cstrea.ads: Add documentation for set_wide_text_mode.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@212802 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/sinfo.ads')
-rw-r--r-- | gcc/ada/sinfo.ads | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/gcc/ada/sinfo.ads b/gcc/ada/sinfo.ads index 31ebb5949a3..d06bb4baad2 100644 --- a/gcc/ada/sinfo.ads +++ b/gcc/ada/sinfo.ads @@ -1450,6 +1450,13 @@ package Sinfo is -- range is given by the programmer, even if that range is identical to -- the range for Float. + -- Incomplete_View (Node2-Sem) + -- Present in full type declarations that are completions of incomplete + -- type declarations. Denotes the corresponding incomplete type + -- declaration. Used to simplify the retrieval of primitive operations + -- that may be declared between the partial and the full view of an + -- untagged type. + -- Inherited_Discriminant (Flag13-Sem) -- This flag is present in N_Component_Association nodes. It indicates -- that a given component association in an extension aggregate is the @@ -2488,6 +2495,7 @@ package Sinfo is -- N_Full_Type_Declaration -- Sloc points to TYPE -- Defining_Identifier (Node1) + -- Incomplete_View (Node2-Sem) -- Discriminant_Specifications (List4) (set to No_List if none) -- Type_Definition (Node3) -- Discr_Check_Funcs_Built (Flag11-Sem) @@ -9120,6 +9128,9 @@ package Sinfo is function Includes_Infinities (N : Node_Id) return Boolean; -- Flag11 + function Incomplete_View + (N : Node_Id) return Node_Id; -- Node2 + function Inherited_Discriminant (N : Node_Id) return Boolean; -- Flag13 @@ -10128,6 +10139,9 @@ package Sinfo is procedure Set_Includes_Infinities (N : Node_Id; Val : Boolean := True); -- Flag11 + procedure Set_Incomplete_View + (N : Node_Id; Val : Node_Id); -- Node2 + procedure Set_Inherited_Discriminant (N : Node_Id; Val : Boolean := True); -- Flag13 @@ -10801,7 +10815,7 @@ package Sinfo is N_Full_Type_Declaration => (1 => True, -- Defining_Identifier (Node1) - 2 => False, -- unused + 2 => False, -- Incomplete_View (Node2-Sem) 3 => True, -- Type_Definition (Node3) 4 => True, -- Discriminant_Specifications (List4) 5 => False), -- unused @@ -12543,6 +12557,7 @@ package Sinfo is pragma Inline (Includes_Infinities); pragma Inline (Import_Interface_Present); pragma Inline (In_Present); + pragma Inline (Incomplete_View); pragma Inline (Inherited_Discriminant); pragma Inline (Instance_Spec); pragma Inline (Intval); @@ -12873,6 +12888,7 @@ package Sinfo is pragma Inline (Set_Import_Interface_Present); pragma Inline (Set_In_Present); pragma Inline (Set_Includes_Infinities); + pragma Inline (Set_Incomplete_View); pragma Inline (Set_Inherited_Discriminant); pragma Inline (Set_Instance_Spec); pragma Inline (Set_Interface_List); |