From: Bob Duff Date: Mon, 16 Dec 2019 17:27:17 +0000 (-0500) Subject: [Ada] snames.ads-tmpl: add comment X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=978ca2f5454b3fe88a8046c73a5067564c4f313f;p=gcc.git [Ada] snames.ads-tmpl: add comment 2020-06-02 Bob Duff gcc/ada/ * snames.ads-tmpl: Add comments explaining that enumeration types have to be kept in synch with subtypes of Name_Id. --- diff --git a/gcc/ada/snames.ads-tmpl b/gcc/ada/snames.ads-tmpl index 112e2091c6e..be1999de896 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 --