aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/elists.adb
diff options
context:
space:
mode:
authorRobert Dewar <dewar@adacore.com>2007-06-06 12:23:26 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2007-06-06 12:23:26 +0200
commit1c28fe3afee2a7dde65f9aa96560d0170af3aae7 (patch)
treecfb263da79acf0351b12e03edf6c58d335c721a2 /gcc/ada/elists.adb
parent0a36105d5657dd7126160c5bae2b9b68af63fcff (diff)
downloadgcc-1c28fe3afee2a7dde65f9aa96560d0170af3aae7.zip
gcc-1c28fe3afee2a7dde65f9aa96560d0170af3aae7.tar.gz
gcc-1c28fe3afee2a7dde65f9aa96560d0170af3aae7.tar.bz2
sinput.ads, [...] (Unlock): New procedure.
2007-04-20 Robert Dewar <dewar@adacore.com> * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb, sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads, elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure. Fix lower bound of tables. Add rep clauses. * nlists.adb: Ditto. (Prev_Node, Next_Node): Change index type to Int so that it properly covers the range First_Node_Id - 1 up. From-SVN: r125391
Diffstat (limited to 'gcc/ada/elists.adb')
-rw-r--r--gcc/ada/elists.adb16
1 files changed, 13 insertions, 3 deletions
diff --git a/gcc/ada/elists.adb b/gcc/ada/elists.adb
index 831f952..243b184 100644
--- a/gcc/ada/elists.adb
+++ b/gcc/ada/elists.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 1992-2006, Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2007, 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- --
@@ -90,7 +90,7 @@ package body Elists is
package Elists is new Table.Table (
Table_Component_Type => Elist_Header,
- Table_Index_Type => Elist_Id,
+ Table_Index_Type => Elist_Id'Base,
Table_Low_Bound => First_Elist_Id,
Table_Initial => Alloc.Elists_Initial,
Table_Increment => Alloc.Elists_Increment,
@@ -103,7 +103,7 @@ package body Elists is
package Elmts is new Table.Table (
Table_Component_Type => Elmt_Item,
- Table_Index_Type => Elmt_Id,
+ Table_Index_Type => Elmt_Id'Base,
Table_Low_Bound => First_Elmt_Id,
Table_Initial => Alloc.Elmts_Initial,
Table_Increment => Alloc.Elmts_Increment,
@@ -482,4 +482,14 @@ package body Elists is
Elmts.Tree_Write;
end Tree_Write;
+ ------------
+ -- Unlock --
+ ------------
+
+ procedure Unlock is
+ begin
+ Elists.Locked := False;
+ Elmts.Locked := False;
+ end Unlock;
+
end Elists;