aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sem_util.ads
diff options
context:
space:
mode:
authorBob Duff <duff@adacore.com>2023-03-02 10:12:29 -0500
committerMarc Poulhiès <poulhies@adacore.com>2023-05-25 09:44:15 +0200
commitf26005d533d5ecd25cb95f2bb542cd77a51ea418 (patch)
tree8c3f7444e74c935c2ec5e3f4cae3bd1c040e87be /gcc/ada/sem_util.ads
parent5ca595d97bb99839604ea9a60dce0abc336ed1e5 (diff)
ada: Add Entry_Cancel_Parameter to E_Label
...and other (minor) changes. gcc/ada/ * gen_il-gen-gen_entities.adb (E_Label): Add Entry_Cancel_Parameter. This is necessary because Analyze_Implicit_Label_Declaration set the Ekind to E_Label. Without this change, this field would fail the vanishing-fields check in Atree (which is currently commented out). * einfo.ads (Entry_Cancel_Parameter): Document for E_Label. * sem_eval.adb (Why_Not_Static): Protect against previous errors (no need to explain why something is not static if it's already illegal for other reasons). * sem_util.ads (Enter_Name): Fix misleading comment.
Diffstat (limited to 'gcc/ada/sem_util.ads')
-rw-r--r--gcc/ada/sem_util.ads6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/ada/sem_util.ads b/gcc/ada/sem_util.ads
index 4028d370823..4962c62fa7d 100644
--- a/gcc/ada/sem_util.ads
+++ b/gcc/ada/sem_util.ads
@@ -809,8 +809,10 @@ package Sem_Util is
procedure Enter_Name (Def_Id : Entity_Id);
-- Insert new name in symbol table of current scope with check for
-- duplications (error message is issued if a conflict is found).
- -- Note: Enter_Name is not used for overloadable entities, instead these
- -- are entered using Sem_Ch6.Enter_Overloaded_Entity.
+ -- Note: Enter_Name is not used for most overloadable entities, instead
+ -- they are entered using Sem_Ch6.Enter_Overloaded_Entity. However,
+ -- this is used for SOME overloadable entities, such as enumeration
+ -- literals and certain operator symbols.
function Entity_Of (N : Node_Id) return Entity_Id;
-- Obtain the entity of arbitrary node N. If N is a renaming, return the