[Ada] remove unnecessary restriction in stand alone project file
Arnaud Charlet
charlet@adacore.com
Tue Mar 29 16:06:00 GMT 2005
Tested on i686-linux, committed on HEAD
The limitation that the library symbol file and the library reference
symbol file could not be the same is removed, because it is not a problem
if these two files are the same.
The test for this is, on VMS, to build a Stand-Alone Library with the
same file for both Library_Symbol_File and
Library_Reference_Symbol_File.
2005-03-29 Vincent Celier <celier@adacore.com>
* prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
file and the reference symbol file to be the same file.
-------------- next part --------------
Index: prj-nmsc.adb
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ada/prj-nmsc.adb,v
retrieving revision 1.33
diff -u -p -r1.33 prj-nmsc.adb
--- prj-nmsc.adb 18 Mar 2005 11:49:47 -0000 1.33
+++ prj-nmsc.adb 29 Mar 2005 15:37:35 -0000
@@ -2466,32 +2466,6 @@ package body Prj.Nmsc is
Lib_Ref_Symbol_File.Location);
end if;
- -- Check that the reference symbol file and the symbol file
- -- are not the same file.
-
- if Data.Symbol_Data.Symbol_File /= No_Name then
- declare
- Symbol : String :=
- Get_Name_String
- (Data.Symbol_Data.Symbol_File);
-
- Reference : String :=
- Get_Name_String
- (Data.Symbol_Data.Reference);
-
- begin
- Canonical_Case_File_Name (Symbol);
- Canonical_Case_File_Name (Reference);
-
- if Symbol = Reference then
- Error_Msg
- (Project, In_Tree,
- "reference symbol file and symbol file " &
- "cannot be the same file",
- Lib_Ref_Symbol_File.Location);
- end if;
- end;
- end if;
end if;
end if;
end if;
More information about the Gcc-patches
mailing list