[gcc r16-1364] ada: Remove outdated comment about reused entity fields
Marc Poulhies
dkm@gcc.gnu.org
Tue Jun 10 07:34:29 GMT 2025
https://gcc.gnu.org/g:3d1703cb4c664d264f2e1420065b30fe2ac1e277
commit r16-1364-g3d1703cb4c664d264f2e1420065b30fe2ac1e277
Author: Piotr Trojanek <trojanek@adacore.com>
Date: Tue Mar 18 10:41:43 2025 +0100
ada: Remove outdated comment about reused entity fields
With the current representation of GNAT AST the entity fields are not reused.
gcc/ada/ChangeLog:
* einfo.ads (Overridden_Operation, Static_Initialization): Remove
comments about a reused entity field.
Diff:
---
gcc/ada/einfo.ads | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/gcc/ada/einfo.ads b/gcc/ada/einfo.ads
index 1cbac6d9a7d7..f1e18a385bad 100644
--- a/gcc/ada/einfo.ads
+++ b/gcc/ada/einfo.ads
@@ -3932,11 +3932,7 @@ package Einfo is
-- Overridden_Operation
-- Defined in subprograms. For overriding operations, points to the
--- user-defined parent subprogram that is being overridden. Note: this
--- attribute uses the same field as Static_Initialization. The latter
--- is only defined for internal initialization procedures, for which
--- Overridden_Operation is irrelevant. Thus this attribute must not be
--- set for init_procs.
+-- user-defined parent subprogram that is being overridden.
-- Package_Instantiation
-- Defined in packages and generic packages. When defined, this field
@@ -4490,9 +4486,7 @@ package Einfo is
-- initialized statically. The value of this attribute is a positional
-- aggregate whose components are compile-time static values. Used
-- when available in object declarations to eliminate the call to the
--- initialization procedure, and to minimize elaboration code. Note:
--- This attribute uses the same field as Overridden_Operation, which is
--- irrelevant in init_procs.
+-- initialization procedure, and to minimize elaboration code.
-- Static_Real_Or_String_Predicate
-- Defined in real types/subtypes with static predicates (with the two
More information about the Gcc-cvs
mailing list