Commit 4120ada7 by Robert Dewar Committed by Arnaud Charlet

gnatlink.adb, [...]: Minor reformatting.

2010-09-10  Robert Dewar  <dewar@adacore.com>

	* gnatlink.adb, prj-ext.adb, prj-util.adb, s-tporft.adb,
	sem_ch3.adb: Minor reformatting.

From-SVN: r164156
parent 46f52a47
2010-09-10 Robert Dewar <dewar@adacore.com>
* gnatlink.adb, prj-ext.adb, prj-util.adb, s-tporft.adb,
sem_ch3.adb: Minor reformatting.
2010-09-10 Ed Schonberg <schonberg@adacore.com> 2010-09-10 Ed Schonberg <schonberg@adacore.com>
* sem_ch3.adb (Derive_Subprograms): An interface primitive operation * sem_ch3.adb (Derive_Subprograms): An interface primitive operation
......
...@@ -41,10 +41,10 @@ with Table; ...@@ -41,10 +41,10 @@ with Table;
with Targparm; use Targparm; with Targparm; use Targparm;
with Types; with Types;
with Ada.Command_Line; use Ada.Command_Line; with Ada.Command_Line; use Ada.Command_Line;
with Ada.Exceptions; use Ada.Exceptions; with Ada.Exceptions; use Ada.Exceptions;
with System.OS_Lib; use System.OS_Lib; with System.OS_Lib; use System.OS_Lib;
with System.CRTL; with System.CRTL;
with Interfaces.C_Streams; use Interfaces.C_Streams; with Interfaces.C_Streams; use Interfaces.C_Streams;
...@@ -200,11 +200,11 @@ procedure Gnatlink is ...@@ -200,11 +200,11 @@ procedure Gnatlink is
-- Return just the file name part without the extension (if present) -- Return just the file name part without the extension (if present)
procedure Check_Existing_Executable (File_Name : String); procedure Check_Existing_Executable (File_Name : String);
-- Delete any existing executable to avoid accidentally updating -- Delete any existing executable to avoid accidentally updating the target
-- the target of a symbolic link, but produce a Fatail_Error if -- of a symbolic link, but produce a Fatail_Error if File_Name matches any
-- File_Name matches any of the source file names. This avoids -- of the source file names. This avoids overwriting of extensionless
-- overwriting of extensionless source files by accident on systems -- source files by accident on systems where executables do not have
-- where executables do not have extensions. -- extensions.
procedure Delete (Name : String); procedure Delete (Name : String);
-- Wrapper to unlink as status is ignored by this application -- Wrapper to unlink as status is ignored by this application
...@@ -273,6 +273,7 @@ procedure Gnatlink is ...@@ -273,6 +273,7 @@ procedure Gnatlink is
Ename : String := File_Name; Ename : String := File_Name;
Efile : File_Name_Type; Efile : File_Name_Type;
Sfile : File_Name_Type; Sfile : File_Name_Type;
begin begin
Canonical_Case_File_Name (Ename); Canonical_Case_File_Name (Ename);
Name_Len := 0; Name_Len := 0;
......
...@@ -250,8 +250,8 @@ package body Prj.Ext is ...@@ -250,8 +250,8 @@ package body Prj.Ext is
Prefix := new String'(Executable_Prefix_Path); Prefix := new String'(Executable_Prefix_Path);
if Prefix.all /= "" then if Prefix.all /= "" then
if Tree.Target_Name /= null and then if Tree.Target_Name /= null
Tree.Target_Name.all /= "" and then Tree.Target_Name.all /= ""
then then
Add_Str_To_Name_Buffer Add_Str_To_Name_Buffer
(Path_Separator & Prefix.all & (Path_Separator & Prefix.all &
......
...@@ -188,11 +188,12 @@ package body Prj.Util is ...@@ -188,11 +188,12 @@ package body Prj.Util is
return Result; return Result;
elsif Builder_Package /= No_Package then elsif Builder_Package /= No_Package then
-- We still want to take into account cases where the suffix is
-- specified in the project itself, as opposed to the config file. -- If the suffix is specified in the project itself, as
-- Unfortunately, when the project was processed, they are both -- opposed to the config file, it needs to be taken into account.
-- stored in Project.Config, so we need to get it from the project -- Unfortunately, when the project was processed, in both cases
-- again -- the suffix is stored in Project.Config, so get it from the
-- project again.
Suffix_From_Project := Suffix_From_Project :=
Prj.Util.Value_Of Prj.Util.Value_Of
......
...@@ -93,13 +93,11 @@ begin ...@@ -93,13 +93,11 @@ begin
System.Soft_Links.Create_TSD (Self_Id.Common.Compiler_Data); System.Soft_Links.Create_TSD (Self_Id.Common.Compiler_Data);
-- ??? -- ???
-- The following call is commented out to avoid dependence on -- The following call is commented out to avoid dependence on the
-- the System.Tasking.Initialization package. -- System.Tasking.Initialization package. It seems that if we want
-- It seems that if we want Ada.Task_Attributes to work correctly -- Ada.Task_Attributes to work correctly for C threads we will need to
-- for C threads we will need to raise the visibility of this soft -- raise the visibility of this soft link to System.Soft_Links. We are
-- link to System.Soft_Links. -- putting that off until this new functionality is otherwise stable.
-- We are putting that off until this new functionality is otherwise
-- stable.
-- System.Tasking.Initialization.Initialize_Attributes_Link.all (T); -- System.Tasking.Initialization.Initialize_Attributes_Link.all (T);
......
...@@ -12962,20 +12962,19 @@ package body Sem_Ch3 is ...@@ -12962,20 +12962,19 @@ package body Sem_Ch3 is
then then
null; null;
-- Case 2: Inherit entities associated with interfaces that -- Case 2: Inherit entities associated with interfaces that were
-- were not covered by the parent type. We exclude here null -- not covered by the parent type. We exclude here null interface
-- interface primitives because they do not need special -- primitives because they do not need special management.
-- management.
-- We also exclude interface operations that are renamings. -- We also exclude interface operations that are renamings. If the
-- If the subprogram is an explicit renaming of an interface -- subprogram is an explicit renaming of an interface primitive,
-- primitive, it is a regular primitive operation, and the -- it is a regular primitive operation, and the presence of its
-- presence of its alias is not relevant: it has to be derived -- alias is not relevant: it has to be derived like any other
-- like any other primitive. -- primitive.
elsif Present (Alias (Subp)) elsif Present (Alias (Subp))
and then and then Nkind (Unit_Declaration_Node (Subp)) /=
Nkind (Unit_Declaration_Node (Subp)) N_Subprogram_Renaming_Declaration
/= N_Subprogram_Renaming_Declaration
and then Is_Interface (Find_Dispatching_Type (Alias_Subp)) and then Is_Interface (Find_Dispatching_Type (Alias_Subp))
and then not and then not
(Nkind (Parent (Alias_Subp)) = N_Procedure_Specification (Nkind (Parent (Alias_Subp)) = N_Procedure_Specification
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment