aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJavier Miranda <miranda@adacore.com>2022-05-13 16:56:00 +0000
committerPierre-Marie de Rodat <derodat@adacore.com>2022-06-02 09:06:40 +0000
commite5a850a66439fb9949bdd73eddb3cf2ed6dcfbaf (patch)
tree8f20b2699ae3111f8057ea33f93572fc522511cc /gcc
parentb25912a4138026ccbb1efd7b680075a0953ac074 (diff)
downloadgcc-e5a850a66439fb9949bdd73eddb3cf2ed6dcfbaf.zip
gcc-e5a850a66439fb9949bdd73eddb3cf2ed6dcfbaf.tar.gz
gcc-e5a850a66439fb9949bdd73eddb3cf2ed6dcfbaf.tar.bz2
[Ada] Update documentation of GNAT.Dynamic_Tables
Document that dynamic tables are defined aliased for backward compatibility. gcc/ada/ * libgnat/g-dyntab.ads (Table_Type): Update documentation.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ada/libgnat/g-dyntab.ads11
1 files changed, 4 insertions, 7 deletions
diff --git a/gcc/ada/libgnat/g-dyntab.ads b/gcc/ada/libgnat/g-dyntab.ads
index 7cad735..1cf4877 100644
--- a/gcc/ada/libgnat/g-dyntab.ads
+++ b/gcc/ada/libgnat/g-dyntab.ads
@@ -82,10 +82,6 @@ package GNAT.Dynamic_Tables is
-- freely (expensive reallocation occurs only at major granularity
-- chunks controlled by the allocation parameters).
- -- Note: we do not make the table components aliased, since this would
- -- restrict the use of table for discriminated types. If it is necessary
- -- to take the access of a table element, use Unrestricted_Access.
-
-- WARNING: On HPPA, the virtual addressing approach used in this unit is
-- incompatible with the indexing instructions on the HPPA. So when using
-- this unit, compile your application with -mdisable-indexing.
@@ -120,9 +116,10 @@ package GNAT.Dynamic_Tables is
-- freely (expensive reallocation occurs only at major granularity
-- chunks controlled by the allocation parameters).
- -- Note: we do not make the table components aliased, since this would
- -- restrict the use of table for discriminated types. If it is necessary
- -- to take the access of a table element, use Unrestricted_Access.
+ -- Note: For backward compatibility we do not make the table components
+ -- aliased, since for Ada 95 this would have restricted the use of tables
+ -- for discriminated types. If it is necessary to take the access of a
+ -- table element, use Unrestricted_Access.
type Table_Type is
array (Valid_Table_Index_Type range <>) of Table_Component_Type;