aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/frontend.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2014-07-29 17:12:14 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2014-07-29 17:12:14 +0200
commit094cf3330c711e995e3cd1e2cf6b81fd88b6b7b1 (patch)
tree0680b62a28012eab69f36bdffeb5b8e66d9b4973 /gcc/ada/frontend.adb
parent38564f81946e0a79b7a3da3459eb4e40442d0ee6 (diff)
downloadgcc-094cf3330c711e995e3cd1e2cf6b81fd88b6b7b1.zip
gcc-094cf3330c711e995e3cd1e2cf6b81fd88b6b7b1.tar.gz
gcc-094cf3330c711e995e3cd1e2cf6b81fd88b6b7b1.tar.bz2
[multiple changes]
2014-07-29 Robert Dewar <dewar@adacore.com> * sem_prag.adb (ip, rv): Prevent from being optimized away. * gnatls.adb (gnatls): Set E_Fatal exit status if ali file not found. * s-imgllb.adb, s-imgllw.adb, s-imgwiu.adb, s-imgbiu.adb: Minor reformatting. 2014-07-29 Vincent Celier <celier@adacore.com> * prj-pp.adb: Minor comment update. * frontend.adb: If a target dependency info file has been read through switch -gnateT= add it to the dependencies of the source being compiled. From-SVN: r213211
Diffstat (limited to 'gcc/ada/frontend.adb')
-rw-r--r--gcc/ada/frontend.adb14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/ada/frontend.adb b/gcc/ada/frontend.adb
index 020fab4..dd58c86 100644
--- a/gcc/ada/frontend.adb
+++ b/gcc/ada/frontend.adb
@@ -314,6 +314,20 @@ begin
Opt.Suppress_Options := Scope_Suppress;
end;
+ -- If a target dependency info file has been read through switch -gnateT=,
+ -- add it to the dependencies.
+
+ if Target_Dependent_Info_Read_Name /= null then
+ declare
+ Index : Source_File_Index;
+ begin
+ Name_Len := 0;
+ Add_Str_To_Name_Buffer (Target_Dependent_Info_Read_Name.all);
+ Index := Load_Config_File (Name_Enter);
+ Prepcomp.Add_Dependency (Index);
+ end;
+ end if;
+
-- This is where we can capture the value of the compilation unit specific
-- restrictions that have been set by the config pragma files (or from
-- Targparm), for later restoration when processing e.g. subunits.