summaryrefslogtreecommitdiff
path: root/gcc/ada/xref_lib.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-27 13:39:44 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-27 13:39:44 +0000
commit48fde0bb5ee29392d1f5faccf208c095f7170992 (patch)
tree70ae878d3c8f06266dfec8f1f1ef0595588a0748 /gcc/ada/xref_lib.adb
parentc2c9961e7ec344035a59fb59753cb6448c15eed6 (diff)
downloadgcc-48fde0bb5ee29392d1f5faccf208c095f7170992.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150115 138bc75d-0d04-0410-961f-82ee72b054a4
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 935291328fe..475f15e3816 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;