aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/make.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2009-06-24 11:41:39 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2009-06-24 11:41:39 +0200
commit95cd3246e62ebeafa33bd25cec72f04912e2e5cc (patch)
treeb139b0d558f241992058a451e7afb4d494e288f9 /gcc/ada/make.adb
parent5a66a7661d4f7686ea0e4dea661926f7fee21653 (diff)
downloadgcc-95cd3246e62ebeafa33bd25cec72f04912e2e5cc.zip
gcc-95cd3246e62ebeafa33bd25cec72f04912e2e5cc.tar.gz
gcc-95cd3246e62ebeafa33bd25cec72f04912e2e5cc.tar.bz2
[multiple changes]
2009-06-24 Vincent Celier <celier@adacore.com> * prj-nmsc.adb (Check): A project declared abstract is legal if no attribute Source_Dirs, Source_Files, Source_List_File or Languages is declared. 2009-06-24 Robert Dewar <dewar@adacore.com> * clean.adb, gnatcmd.adb, make.adb, mlib-prj.adb, prj-env.adb: Minor reformatting 2009-06-24 Ed Falis <falis@adacore.com> * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-vxwext.ads, s-vxwext-kernel.adb, s-vxwext-kernel.ads, s-vxwext-rtp.adb, s-tasinf-vxworks.ads, gcc-interface/Makefile.in: Add processor affinity support for VxWorks SMP. * gcc-interface/Make-lang.in: Update dependencies From-SVN: r148902
Diffstat (limited to 'gcc/ada/make.adb')
-rw-r--r--gcc/ada/make.adb42
1 files changed, 17 insertions, 25 deletions
diff --git a/gcc/ada/make.adb b/gcc/ada/make.adb
index 4eb20f3..a2d4f6c 100644
--- a/gcc/ada/make.adb
+++ b/gcc/ada/make.adb
@@ -1471,10 +1471,10 @@ package body Make is
if UID /= Prj.No_Unit_Index then
if (UID.File_Names (Impl) = null
- or else UID.File_Names (Impl).File /= Sfile)
+ or else UID.File_Names (Impl).File /= Sfile)
and then
(UID.File_Names (Spec) = null
- or else UID.File_Names (Spec).File /= Sfile)
+ or else UID.File_Names (Spec).File /= Sfile)
then
Verbose_Msg (Uname, "sources do not include ", Name_Id (Sfile));
return True;
@@ -1951,11 +1951,9 @@ package body Make is
exit;
elsif Udata.File_Names (Spec) /= null
- and then Udata.File_Names (Spec).File =
- Source_File
+ and then Udata.File_Names (Spec).File = Source_File
then
- ALI_Project :=
- Udata.File_Names (Spec).Project;
+ ALI_Project := Udata.File_Names (Spec).Project;
exit;
end if;
@@ -3611,8 +3609,7 @@ package body Make is
if Uid /= Prj.No_Unit_Index then
if Uid.File_Names (Impl) /= null
and then
- Uid.File_Names (Impl).Path.Name /=
- Slash
+ Uid.File_Names (Impl).Path.Name /= Slash
then
Sfile := Uid.File_Names (Impl).File;
Source_Index :=
@@ -3620,11 +3617,9 @@ package body Make is
elsif Uid.File_Names (Spec) /= null
and then
- Uid.File_Names
- (Spec).Path.Name /= Slash
+ Uid.File_Names (Spec).Path.Name /= Slash
then
- Sfile :=
- Uid.File_Names (Spec).File;
+ Sfile := Uid.File_Names (Spec).File;
Source_Index :=
Uid.File_Names (Spec).Index;
end if;
@@ -4428,10 +4423,9 @@ package body Make is
-- If we have something to put in the mapping then do it
-- now. However, if the project is extended, we don't put
- -- anything in the mapping file, because we do not know
- -- where the ALI file is: it might be in the extended
- -- project obj dir as well as in the extending project
- -- obj dir.
+ -- anything in the mapping file, because we don't know where
+ -- the ALI file is: it might be in the extended project obj
+ -- dir as well as in the extending project obj dir.
if ALI_Name /= No_File
and then ALI_Project.Extended_By = No_Project
@@ -4465,13 +4459,12 @@ package body Make is
declare
ALI_Path_Name : constant String :=
- Name_Buffer (1 .. Name_Len);
+ Name_Buffer (1 .. Name_Len);
begin
if Is_Regular_File
- (ALI_Path_Name (1 .. ALI_Path_Name'Last - 1))
+ (ALI_Path_Name (1 .. ALI_Path_Name'Last - 1))
then
-
-- First line is the unit name
Get_Name_String (ALI_Unit);
@@ -4494,7 +4487,7 @@ package body Make is
(Mapping_FD,
Name_Buffer (1)'Address,
Name_Len);
- OK := Bytes = Name_Len;
+ OK := (Bytes = Name_Len);
exit when not OK;
@@ -4505,11 +4498,11 @@ package body Make is
(Mapping_FD,
ALI_Path_Name (1)'Address,
ALI_Path_Name'Length);
- OK := Bytes = ALI_Path_Name'Length;
+ OK := (Bytes = ALI_Path_Name'Length);
- -- If OK is False, it means we were unable
- -- to write a line. No point in continuing
- -- with the other units.
+ -- If OK is False, it means we were unable to
+ -- write a line. No point in continuing with the
+ -- other units.
exit when not OK;
end if;
@@ -7001,7 +6994,6 @@ package body Make is
-- For all the sources in the project files,
Unit := Units_Htable.Get_First (Project_Tree.Units_HT);
-
while Unit /= null loop
Sfile := No_File;
Index := 0;