]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Minor comment fixes
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 5 Jan 2026 06:56:07 +0000 (07:56 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Mon, 25 May 2026 08:28:04 +0000 (10:28 +0200)
This comprises a couple of typos and a small rewriting.

gcc/ada/ChangeLog:

* exp_ch3.adb (Expand_N_Object_Declaration): Minor comment fixes.

gcc/ada/exp_ch3.adb

index 521dbf11ca35038793cd0896c8313968e8e4609a..db0a32e46812ad9a2aaf0947abf1f430254d8f6c 100644 (file)
@@ -9313,7 +9313,7 @@ package body Exp_Ch3 is
          end if;
 
       --  If this is the return object of a function returning on the secondary
-      --  stack, convert the declaration to a renaming of the dereference of ah
+      --  stack, convert the declaration to a renaming of the dereference of an
       --  allocator for the secondary stack.
 
       --    Result : T [:= <expression>];
@@ -9404,7 +9404,7 @@ package body Exp_Ch3 is
          end;
 
       --  If this is the return object of a function returning a by-reference
-      --  type, convert the declaration to a renaming of the dereference of ah
+      --  type, convert the declaration to a renaming of the dereference of an
       --  allocator for the return stack.
 
       --    Result : T [:= <expression>];
@@ -9477,10 +9477,10 @@ package body Exp_Ch3 is
          end;
       end if;
 
-      --  Final transformation - turn the object declaration into a renaming
-      --  if appropriate. If this is the completion of a deferred constant
-      --  declaration, then this transformation generates what would be
-      --  illegal code if written by hand, but that's OK.
+      --  Final transformation: turn the object declaration into a renaming if
+      --  needed. If this is the completion of a deferred constant declaration,
+      --  this transformation generates what would be illegal code if written
+      --  by hand, but that's OK.
 
       if Rewrite_As_Renaming then
          Rewrite_Object_Declaration_As_Renaming (N, Expr_Q);