public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-2072] [Ada] Simplify dependency on System
@ 2021-07-06 14:49 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2021-07-06 14:49 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:3751af1e7ba5173f35f0e0a5adc62e4455f7a963

commit r12-2072-g3751af1e7ba5173f35f0e0a5adc62e4455f7a963
Author: Piotr Trojanek <trojanek@adacore.com>
Date:   Mon May 10 18:55:37 2021 +0200

    [Ada] Simplify dependency on System
    
    gcc/ada/
    
            * lib-writ.adb (Ensure_System_Dependency): Simplify by reusing a
            constant name.

Diff:
---
 gcc/ada/lib-writ.adb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/gcc/ada/lib-writ.adb b/gcc/ada/lib-writ.adb
index 16993dd8f43..1b02b1cd558 100644
--- a/gcc/ada/lib-writ.adb
+++ b/gcc/ada/lib-writ.adb
@@ -158,9 +158,7 @@ package body Lib.Writ is
       --  on system as a result of Targparm scanning the system.ads file to
       --  determine the target dependent parameters for the compilation.
 
-      Name_Len := 6;
-      Name_Buffer (1 .. 6) := "system";
-      System_Uname := Name_To_Unit_Name (Name_Enter);
+      System_Uname := Name_To_Unit_Name (Name_System);
       System_Fname := File_Name (System_Source_File_Index);
 
       Units.Increment_Last;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-06 14:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-06 14:49 [gcc r12-2072] [Ada] Simplify dependency on System Pierre-Marie de Rodat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).