]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Simplify dependency on System
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 10 May 2021 16:55:37 +0000 (18:55 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 6 Jul 2021 14:46:57 +0000 (14:46 +0000)
gcc/ada/

* lib-writ.adb (Ensure_System_Dependency): Simplify by reusing a
constant name.

gcc/ada/lib-writ.adb

index 16993dd8f43182d2aef80c945f7f34e74cccbc34..1b02b1cd5580486ede01c227e159c964bf6f3d2c 100644 (file)
@@ -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;