aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Celier <celier@adacore.com>2008-08-20 16:28:36 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2008-08-20 16:28:36 +0200
commit1af8deae35470018009bc7fad2aa46b858a89d83 (patch)
treece10f7ecc9c9529afc0b15fe62c8fae5ea7cf82d
parent3f92549e4720cf55858daffd992e52669d4db8b9 (diff)
downloadgcc-1af8deae35470018009bc7fad2aa46b858a89d83.zip
gcc-1af8deae35470018009bc7fad2aa46b858a89d83.tar.gz
gcc-1af8deae35470018009bc7fad2aa46b858a89d83.tar.bz2
prj-nmsc.adb (Check_File): An excluded Ada source file may be a source of another project.
2008-08-20 Vincent Celier <celier@adacore.com> * prj-nmsc.adb (Check_File): An excluded Ada source file may be a source of another project. From-SVN: r139309
-rw-r--r--gcc/ada/prj-nmsc.adb4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/ada/prj-nmsc.adb b/gcc/ada/prj-nmsc.adb
index 6f18c81..cf0f472 100644
--- a/gcc/ada/prj-nmsc.adb
+++ b/gcc/ada/prj-nmsc.adb
@@ -8163,7 +8163,9 @@ package body Prj.Nmsc is
then
Source_To_Replace := Source;
- elsif Unit /= No_Name then
+ elsif Unit /= No_Name
+ and then not Src_Data.Locally_Removed
+ then
Error_Msg_Name_1 := Unit;
Error_Msg
(Project, In_Tree,