aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gnatbind.adb
diff options
context:
space:
mode:
authorThomas Quinot <quinot@adacore.com>2010-06-22 09:36:25 +0000
committerArnaud Charlet <charlet@gcc.gnu.org>2010-06-22 11:36:25 +0200
commit125778158bac64ccea58a2156c743fa607545429 (patch)
tree9f819b958fa5cdcdd7d140ae5149fc01169432de /gcc/ada/gnatbind.adb
parenta3da92f99d722d52c0117015f26c5c8640b12511 (diff)
downloadgcc-125778158bac64ccea58a2156c743fa607545429.zip
gcc-125778158bac64ccea58a2156c743fa607545429.tar.gz
gcc-125778158bac64ccea58a2156c743fa607545429.tar.bz2
sem_res.adb (Make_Call_Into_Operator): Use First_Subtype for better error reporting with generic types.
2010-06-22 Thomas Quinot <quinot@adacore.com> * sem_res.adb (Make_Call_Into_Operator): Use First_Subtype for better error reporting with generic types. 2010-06-22 Thomas Quinot <quinot@adacore.com> * bindgen.adb, bindusg.adb, gnatbind.adb, gnat_ugn.texi, opt.ads, osint-b.adb, osint-b.ads, output.adb, output.ads, switch-b.adb, vms_data.ads: Add a new command line switch -A to gnatbind to output the list of all ALI files for the partition. From-SVN: r161153
Diffstat (limited to 'gcc/ada/gnatbind.adb')
-rw-r--r--gcc/ada/gnatbind.adb28
1 files changed, 27 insertions, 1 deletions
diff --git a/gcc/ada/gnatbind.adb b/gcc/ada/gnatbind.adb
index bdd9702..c09f795 100644
--- a/gcc/ada/gnatbind.adb
+++ b/gcc/ada/gnatbind.adb
@@ -738,7 +738,7 @@ begin
Free (Text);
end if;
- -- Acquire all information in ALI files that have been read in
+ -- Load ALIs for all dependent units
for Index in ALIs.First .. ALIs.Last loop
Read_Withed_ALIs (Index);
@@ -750,6 +750,32 @@ begin
raise Unrecoverable_Error;
end if;
+ -- Output list of ALI files in closure
+
+ if Output_ALI_List then
+ declare
+ FD : File_Descriptor;
+ begin
+ if ALI_List_Filename /= null then
+ Set_List_File (ALI_List_Filename.all);
+ end if;
+
+ for Index in ALIs.First .. ALIs.Last loop
+ declare
+ Full_Afile : constant File_Name_Type :=
+ Find_File (ALIs.Table (Index).Afile, Library);
+ begin
+ Write_Name (Full_Afile);
+ Write_Eol;
+ end;
+ end loop;
+
+ if ALI_List_Filename /= null then
+ Close_List_File;
+ end if;
+ end;
+ end if;
+
-- Build source file table from the ALI files we have read in
Set_Source_Table;