diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-10-31 18:01:41 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-10-31 18:01:41 +0000 |
commit | 46c128368b05bb29f6f41aa9a10064a507a42f5a (patch) | |
tree | c1143f47f2c6f0b71f0ab9ae8f05a82aa13f65c6 /gcc/ada/lib-load.adb | |
parent | d1cf00c6585d3de72209a429aa1a1974d894524d (diff) | |
download | ppe42-gcc-46c128368b05bb29f6f41aa9a10064a507a42f5a.tar.gz ppe42-gcc-46c128368b05bb29f6f41aa9a10064a507a42f5a.zip |
2006-10-31 Vincent Celier <celier@adacore.com>
* lib-load.adb (Load_Unit): Skip the test for a unit not found when
its file has already been loaded, according to the unit being loaded,
not to the current value of Multiple_Unit_Index.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118284 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/lib-load.adb')
-rw-r--r-- | gcc/ada/lib-load.adb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ada/lib-load.adb b/gcc/ada/lib-load.adb index 248c5fcf901..420b4de1930 100644 --- a/gcc/ada/lib-load.adb +++ b/gcc/ada/lib-load.adb @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- Copyright (C) 1992-2005, Free Software Foundation, Inc. -- +-- Copyright (C) 1992-2006, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -462,7 +462,7 @@ package body Lib.Load is -- We skip this test in multiple unit per file mode since in this -- case we can have multiple units from the same source file. - if Unum > Units.Last and then Multiple_Unit_Index = 0 then + if Unum > Units.Last and then Get_Unit_Index (Uname_Actual) = 0 then for J in Units.First .. Units.Last loop if Fname = Units.Table (J).Unit_File_Name then if Debug_Flag_L then @@ -610,7 +610,7 @@ package body Lib.Load is Load_Msg_Sloc); Error_Msg_Name_1 := Unit_File_Name (Unum); Error_Msg - ("incorrect spec in file { must be removed first!", + ("\incorrect spec in file { must be removed first!", Load_Msg_Sloc); return No_Unit; end if; |