[gcc r16-1318] ada: Remove misleading comment
Marc Poulhies
dkm@gcc.gnu.org
Mon Jun 9 06:39:26 GMT 2025
https://gcc.gnu.org/g:ff9781d1dc58f6a015c51bedc655ceaa3858b62d
commit r16-1318-gff9781d1dc58f6a015c51bedc655ceaa3858b62d
Author: Ronan Desplanques <desplanques@adacore.com>
Date: Tue Mar 4 14:24:32 2025 +0100
ada: Remove misleading comment
This patch removes a comment that misleadingly presented a condition as
being met only in rare situations, while it's in fact satisfied in very
basic cases such as simple object declarations.
gcc/ada/ChangeLog:
* sem_util.adb (Enter_Name): Remove comment.
Diff:
---
gcc/ada/sem_util.adb | 3 ---
1 file changed, 3 deletions(-)
diff --git a/gcc/ada/sem_util.adb b/gcc/ada/sem_util.adb
index 40e3da36c201..523aff33f95a 100644
--- a/gcc/ada/sem_util.adb
+++ b/gcc/ada/sem_util.adb
@@ -8089,9 +8089,6 @@ package body Sem_Util is
if Ekind (Def_Id) in E_Discriminant | E_Component then
null;
- -- If a type is already set, leave it alone (happens when a type
- -- declaration is reanalyzed following a call to the optimizer).
-
elsif Present (Etype (Def_Id)) then
null;
More information about the Gcc-cvs
mailing list