From: Piotr Trojanek Date: Mon, 10 May 2021 16:55:37 +0000 (+0200) Subject: [Ada] Simplify dependency on System X-Git-Tag: basepoints/gcc-13~6241 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3751af1e7ba5173f35f0e0a5adc62e4455f7a963;p=thirdparty%2Fgcc.git [Ada] Simplify dependency on System gcc/ada/ * lib-writ.adb (Ensure_System_Dependency): Simplify by reusing a constant name. --- diff --git a/gcc/ada/lib-writ.adb b/gcc/ada/lib-writ.adb index 16993dd8f431..1b02b1cd5580 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;