aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gnatlink.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@adacore.com>2015-10-16 11:01:53 +0000
committerArnaud Charlet <charlet@gcc.gnu.org>2015-10-16 13:01:53 +0200
commit535a86378ea5182125321ceede077e3781973f0a (patch)
tree84ccc871dc5fdb6b16df1277042294ec753ecebe /gcc/ada/gnatlink.adb
parent07fbef62d559b9b7e9c4563e6c4d17206b91363f (diff)
downloadgcc-535a86378ea5182125321ceede077e3781973f0a.zip
gcc-535a86378ea5182125321ceede077e3781973f0a.tar.gz
gcc-535a86378ea5182125321ceede077e3781973f0a.tar.bz2
exp_ch5.adb, [...]: Code clean up: remove special handling for .NET and JVM.
2015-10-16 Arnaud Charlet <charlet@adacore.com> * exp_ch5.adb, sem_ch3.adb, frontend.adb, exp_ch7.adb, exp_ch7.ads, sem_ch5.adb, sem_type.adb, exp_util.adb, exp_util.ads, comperr.adb, exp_attr.adb, sinfo.ads, exp_ch9.adb, make.adb, usage.adb, lib-writ.adb, sem_ch9.adb, bindgen.adb, debug.adb, einfo.adb, einfo.ads, types.ads, checks.adb, sem_prag.adb, s-tasini.adb, rtsfind.ads, freeze.adb, sem_util.adb, sem_util.ads, exp_dbug.adb, gnatlink.adb, gnat1drv.adb, targparm.adb, targparm.ads, exp_ch4.adb, exp_ch11.adb, repinfo.adb, s-soflin.adb, s-soflin.ads, exp_ch6.adb, exp_ch13.adb, sem_mech.adb, sem_ch6.adb, par-prag.adb, exp_disp.adb, sem_ch8.adb, exp_disp.ads, snames.adb-tmpl, exp_aggr.adb, sem_eval.adb, exp_intr.adb, sem_ch13.adb, snames.ads-tmpl, sem_disp.adb, exp_ch3.adb: Code clean up: remove special handling for .NET and JVM. From-SVN: r228874
Diffstat (limited to 'gcc/ada/gnatlink.adb')
-rw-r--r--gcc/ada/gnatlink.adb25
1 files changed, 4 insertions, 21 deletions
diff --git a/gcc/ada/gnatlink.adb b/gcc/ada/gnatlink.adb
index 190aadf..c90397d 100644
--- a/gcc/ada/gnatlink.adb
+++ b/gcc/ada/gnatlink.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 1996-2014, Free Software Foundation, Inc. --
+-- Copyright (C) 1996-2015, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -1601,12 +1601,6 @@ begin
Osint.Add_Default_Search_Dirs;
Targparm.Get_Target_Parameters;
- case VM_Target is
- when JVM_Target => Gcc := new String'("jvm-gnatcompile");
- when CLI_Target => Gcc := new String'("dotnet-gnatcompile");
- when No_VM => null;
- end case;
-
-- Compile the bind file with the following switches:
-- -gnatA stops reading gnat.adc, since we don't know what
@@ -1651,15 +1645,7 @@ begin
end if;
if Linker_Path = null then
- if VM_Target = CLI_Target then
- Linker_Path := System.OS_Lib.Locate_Exec_On_Path ("dotnet-ld");
-
- if Linker_Path = null then
- Exit_With_Error ("Couldn't locate dotnet-ld");
- end if;
- else
- Linker_Path := Gcc_Path;
- end if;
+ Linker_Path := Gcc_Path;
end if;
Write_Header;
@@ -1986,7 +1972,7 @@ begin
J := J + 1;
end loop;
- if Linker_Path = Gcc_Path and then VM_Target = No_VM then
+ if Linker_Path = Gcc_Path then
-- For systems where the default is to link statically with
-- libgcc, if gcc is not called with -shared-libgcc, call it
@@ -2091,10 +2077,7 @@ begin
Delete (Binder_Ali_File.all & ASCII.NUL);
Delete (Binder_Spec_Src_File.all & ASCII.NUL);
Delete (Binder_Body_Src_File.all & ASCII.NUL);
-
- if VM_Target = No_VM then
- Delete (Binder_Obj_File.all & ASCII.NUL);
- end if;
+ Delete (Binder_Obj_File.all & ASCII.NUL);
end if;
Exit_Program (E_Success);