aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/snames.ads-tmpl
diff options
context:
space:
mode:
authorBob Duff <duff@adacore.com>2019-12-16 12:27:17 -0500
committerPierre-Marie de Rodat <derodat@adacore.com>2020-06-02 04:58:12 -0400
commit978ca2f5454b3fe88a8046c73a5067564c4f313f (patch)
treeebde17a92c58cacb255617a7e65bfac9e7b93ae5 /gcc/ada/snames.ads-tmpl
parent056ea2ec8ee6501d0068948746c71796a9d38e14 (diff)
downloadgcc-978ca2f5454b3fe88a8046c73a5067564c4f313f.zip
gcc-978ca2f5454b3fe88a8046c73a5067564c4f313f.tar.gz
gcc-978ca2f5454b3fe88a8046c73a5067564c4f313f.tar.bz2
[Ada] snames.ads-tmpl: add comment
2020-06-02 Bob Duff <duff@adacore.com> gcc/ada/ * snames.ads-tmpl: Add comments explaining that enumeration types have to be kept in synch with subtypes of Name_Id.
Diffstat (limited to 'gcc/ada/snames.ads-tmpl')
-rw-r--r--gcc/ada/snames.ads-tmpl13
1 files changed, 9 insertions, 4 deletions
diff --git a/gcc/ada/snames.ads-tmpl b/gcc/ada/snames.ads-tmpl
index 112e209..be1999d 100644
--- a/gcc/ada/snames.ads-tmpl
+++ b/gcc/ada/snames.ads-tmpl
@@ -33,10 +33,15 @@ with Namet; use Namet;
package Snames is
--- This package contains definitions of standard names (i.e. entries in the
--- Names table) that are used throughout the GNAT compiler. It also contains
--- the definitions of some enumeration types whose definitions are tied to the
--- order of these preset names.
+ -- This package contains definitions of standard names (i.e. entries in
+ -- the Names table) that are used throughout the GNAT compiler. It also
+ -- contains the definitions of some enumeration types whose definitions
+ -- are tied to the order of these preset names.
+
+ -- NOTE WELL: If you add names of attributes, the enumeration type
+ -- Attribute_Id must be kept in synch (same names in same order, with
+ -- some exceptions). See the body of Get_Attribute_Id for details. The
+ -- same is true of other enumeration types declared in this package.
------------------
-- Preset Names --