aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/xref_lib.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2009-07-27 15:39:44 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2009-07-27 15:39:44 +0200
commit0e47ff5cdde89f3e89610ace38659e0a8fc37ad1 (patch)
tree70ae878d3c8f06266dfec8f1f1ef0595588a0748 /gcc/ada/xref_lib.adb
parent648abd762939ddd5e44d965f19b222d45062d425 (diff)
downloadgcc-0e47ff5cdde89f3e89610ace38659e0a8fc37ad1.zip
gcc-0e47ff5cdde89f3e89610ace38659e0a8fc37ad1.tar.gz
gcc-0e47ff5cdde89f3e89610ace38659e0a8fc37ad1.tar.bz2
[multiple changes]
2009-07-27 Robert Dewar <dewar@adacore.com> * g-sse.ads: Minor reformatting 2009-07-27 Arnaud Charlet <charlet@adacore.com> * xref_lib.adb (Add_Xref_File_Internal, Find_ALI_Files): Add support for alternate ali extension. * xr_tabls.adb (ALI_File_Name, Get_File, Set_Unvisited): Take into account Osint.ALI_Suffix. * osint.ads (ALI_Suffix): Make visible. * gnatfind.adb (Gnatfind): Add support for --ext= switch. * gnat_ugn.texi: Document new gnatfind --ext= switch. 2009-07-27 Ed Schonberg <schonberg@adacore.com> * sem.adb (Walk_Library_Items): If main unit is an instance body, do its spec first. 2009-07-27 Javier Miranda <miranda@adacore.com> * exp_disp.adb (Expand_Dispatching_Call): Generate the SCIL node after the dispatching call has is expanded. From-SVN: r150115
Diffstat (limited to 'gcc/ada/xref_lib.adb')
-rw-r--r--gcc/ada/xref_lib.adb6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/ada/xref_lib.adb b/gcc/ada/xref_lib.adb
index 93529132..475f15e 100644
--- a/gcc/ada/xref_lib.adb
+++ b/gcc/ada/xref_lib.adb
@@ -308,7 +308,7 @@ package body Xref_Lib is
-- Case where we have an ALI file, accept it even though this is
-- not official usage, since the intention is obvious
- if Tail (File, 4) = ".ali" then
+ if Tail (File, 4) = "." & Osint.ALI_Suffix.all then
File_Ref := Add_To_Xref_File
(File, Visited => False, Emit_Warning => True);
@@ -466,7 +466,9 @@ package body Xref_Lib is
return;
end if;
- elsif Last > 4 and then Dir_Ent (Last - 3 .. Last) = ".ali" then
+ elsif Last > 4
+ and then Dir_Ent (Last - 3 .. Last) = "." & Osint.ALI_Suffix.all
+ then
File_Ref :=
Add_To_Xref_File (Dir_Ent (1 .. Last), Visited => False);
end if;