summaryrefslogtreecommitdiff
path: root/gcc/ada/a-cbmutr.ads
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-02 15:00:35 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-02 15:00:35 +0000
commitb38c243a8512e78989b7fe0c4bb1fb4ca53d784c (patch)
tree1b7415ab9e85093c20b13f4f8eb683950dce5ac4 /gcc/ada/a-cbmutr.ads
parentb987f1dbef95c2c653df8f41a11df1ef3a650fb6 (diff)
downloadgcc-b38c243a8512e78989b7fe0c4bb1fb4ca53d784c.tar.gz
2011-12-02 Hristian Kirtchev <kirtchev@adacore.com>
* exp_dbug.adb: Comment reformatting. (Get_External_Name): Use Reset_Buffers to reset the contents of Name_Buffer and Homonym_Numbers. (Qualify_All_Entity_Names): Reset the contents of Name_Buffer and Homonym_Numbers before creating a new qualified name for a particular entity. (Reset_Buffers): New routine. 2011-12-02 Matthew Heaney <heaney@adacore.com> * a-cbmutr.ads (No_Node): Moved declaration from body to spec * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Iterator): Derives from Root_Iterator. (Child_Iterator): Derives from Root_Iterator. (Finalize): Implemented as an override operation for Root_Iterator. (First): Return value depends on Subtree component. (Last): Component was renamed from Parent to Subtree. (Next): Checks parameter value, and uses simplified loop. (Iterate): Forwards to Iterate_Subtree. (Iterate_Children): Component was renamed from Parent to Subtree. (Iterate_Subtree): Checks parameter value 2011-12-02 Robert Dewar <dewar@adacore.com> * usage.adb: Add lines for -gnatw.n and -gnatw.N (atomic sync info msgs). 2011-12-02 Steve Baird <baird@adacore.com> * sem_ch3.adb (Check_Completion): An Ada 2012 generic formal type doesn't require a completion. 2011-12-02 Eric Botcazou <ebotcazou@adacore.com> * sem_util.adb (Set_Debug_Info_Needed): Also set the flag on the packed array type if it is to be set on the array type used to represent it. 2011-12-02 Robert Dewar <dewar@adacore.com> * gnat_rm.texi: Eliminate confusing use of type name. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181919 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/a-cbmutr.ads')
-rw-r--r--gcc/ada/a-cbmutr.ads6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/ada/a-cbmutr.ads b/gcc/ada/a-cbmutr.ads
index 797b6ea6214..73580d992cf 100644
--- a/gcc/ada/a-cbmutr.ads
+++ b/gcc/ada/a-cbmutr.ads
@@ -301,6 +301,8 @@ package Ada.Containers.Bounded_Multiway_Trees is
private
use Ada.Streams;
+ No_Node : constant Count_Type'Base := -1;
+
type Children_Type is record
First : Count_Type'Base;
Last : Count_Type'Base;
@@ -319,7 +321,7 @@ private
type Tree (Capacity : Count_Type) is tagged record
Nodes : Tree_Node_Array (0 .. Capacity) := (others => <>);
Elements : Element_Array (1 .. Capacity) := (others => <>);
- Free : Count_Type'Base := -1;
+ Free : Count_Type'Base := No_Node;
Busy : Integer := 0;
Lock : Integer := 0;
Count : Count_Type := 0;
@@ -342,7 +344,7 @@ private
type Cursor is record
Container : Tree_Access;
- Node : Count_Type'Base := -1;
+ Node : Count_Type'Base := No_Node;
end record;
procedure Read