From 978ca2f5454b3fe88a8046c73a5067564c4f313f Mon Sep 17 00:00:00 2001 From: Bob Duff Date: Mon, 16 Dec 2019 12:27:17 -0500 Subject: [PATCH] [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. --- gcc/ada/snames.ads-tmpl | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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 -- -- 2.30.2