aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/g-dyntab.ads
diff options
context:
space:
mode:
authorRobert Dewar <dewar@adacore.com>2008-04-08 08:48:30 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2008-04-08 08:48:30 +0200
commita1e2130ca1fa141e3dcb1ba4913a8f46d33ab9c1 (patch)
tree81431173c33a808bd2956a3c52874efc0dff6252 /gcc/ada/g-dyntab.ads
parent2d7756fa264b9975f7d779bc2e658a6741314e14 (diff)
downloadgcc-a1e2130ca1fa141e3dcb1ba4913a8f46d33ab9c1.zip
gcc-a1e2130ca1fa141e3dcb1ba4913a8f46d33ab9c1.tar.gz
gcc-a1e2130ca1fa141e3dcb1ba4913a8f46d33ab9c1.tar.bz2
back_end.adb: Remove Big_String_Ptr declarations (now in Types)
2008-04-08 Robert Dewar <dewar@adacore.com> * back_end.adb: Remove Big_String_Ptr declarations (now in Types) * errout.adb: Remove Big_String_Ptr declarations (now in Types) Change name Is_Style_Msg to Is_Style_Or_Info_Msg * fmap.adb: Remove Big_String declarations (now in Types) (No_Mapping_File): New Boolean global variable (Initialize): When mapping file cannot be read, set No_Mapping_File to False. (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the tables were empty before adding entries, open the mapping file with Truncate = True, instead of delete/re-create. * fname-sf.adb: Remove Big_String declarations (now in Types) * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb, s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for big pointer types * table.ads: Add for Table_Ptr'Storage_Size use 0 * types.ads: Add Big_String declarations Add Size_Clause of zero for big pointer types From-SVN: r134022
Diffstat (limited to 'gcc/ada/g-dyntab.ads')
-rw-r--r--gcc/ada/g-dyntab.ads18
1 files changed, 10 insertions, 8 deletions
diff --git a/gcc/ada/g-dyntab.ads b/gcc/ada/g-dyntab.ads
index 8c1e112..7768c88 100644
--- a/gcc/ada/g-dyntab.ads
+++ b/gcc/ada/g-dyntab.ads
@@ -6,7 +6,7 @@
-- --
-- S p e c --
-- --
--- Copyright (C) 2000-2006, AdaCore --
+-- Copyright (C) 2000-2008, AdaCore --
-- --
-- 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- --
@@ -91,17 +91,19 @@ package GNAT.Dynamic_Tables is
type Table_Type is
array (Table_Index_Type range <>) of Table_Component_Type;
-
subtype Big_Table_Type is
Table_Type (Table_Low_Bound .. Table_Index_Type'Last);
- -- We work with pointers to a bogus array type that is constrained
- -- with the maximum possible range bound. This means that the pointer
- -- is a thin pointer, which is more efficient. Since subscript checks
- -- in any case must be on the logical, rather than physical bounds,
- -- safety is not compromised by this approach.
+ -- We work with pointers to a bogus array type that is constrained with
+ -- the maximum possible range bound. This means that the pointer is a thin
+ -- pointer, which is more efficient. Since subscript checks in any case
+ -- must be on the logical, rather than physical bounds, safety is not
+ -- compromised by this approach. These types should not be used by the
+ -- client.
type Table_Ptr is access all Big_Table_Type;
- -- The table is actually represented as a pointer to allow reallocation
+ for Table_Ptr'Storage_Size use 0;
+ -- The table is actually represented as a pointer to allow reallocation.
+ -- This type should not be used by the client.
type Table_Private is private;
-- Table private data that is not exported in Instance