prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol file and the refer...
authorVincent Celier <celier@adacore.com>
Tue, 29 Mar 2005 16:19:00 +0000 (18:19 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 29 Mar 2005 16:19:00 +0000 (18:19 +0200)
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.

From-SVN: r97181

gcc/ada/prj-nmsc.adb

index 6c814a990fd50c936ce416a9c9fd8c48a2562587..fcdaf67c25168caf0ed5f23c90b67d08950055d1 100644 (file)
@@ -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;