Commit 3ea8f61e by Arnaud Charlet

[multiple changes]

2014-07-30  Vincent Celier  <celier@adacore.com>

	* makeutl.adb (Insert_Project_Sources): When the library project
	is an aggregate Stand-Alone Library, insert in the queue the
	Ada interface units, with Closure set to True;

2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>

	* sem_util.adb: Fix minor typo.
	* makeutl.adb: Minor reformatting.

From-SVN: r213294
parent 976d5a22
2014-07-30 Vincent Celier <celier@adacore.com>
* makeutl.adb (Insert_Project_Sources): When the library project
is an aggregate Stand-Alone Library, insert in the queue the
Ada interface units, with Closure set to True;
2014-07-30 Eric Botcazou <ebotcazou@adacore.com>
* sem_util.adb: Fix minor typo.
* makeutl.adb: Minor reformatting.
2014-07-30 Robert Dewar <dewar@adacore.com> 2014-07-30 Robert Dewar <dewar@adacore.com>
* exp_ch7.adb, checks.adb, makeutl.adb, makeutl.ads: Minor reformatting. * exp_ch7.adb, checks.adb, makeutl.adb, makeutl.ads: Minor reformatting.
......
...@@ -2969,22 +2969,40 @@ package body Makeutl is ...@@ -2969,22 +2969,40 @@ package body Makeutl is
then then
if (Unit_Based if (Unit_Based
or else Source.Unit = No_Unit_Index or else Source.Unit = No_Unit_Index
or else Source.Project.Library) or else Source.Project.Library
or else Project.Qualifier = Aggregate_Library)
and then not Is_Subunit (Source) and then not Is_Subunit (Source)
then then
OK := True; OK := True;
Closure := False; Closure := False;
if Source.Unit /= No_Unit_Index declare
SAL_Project : Project_Id := No_Project;
begin
if Project.Qualifier = Aggregate_Library
and then Project.Standalone_Library /= No
then
if Source.Unit /= No_Unit_Index then
SAL_Project := Project;
end if;
elsif Source.Unit /= No_Unit_Index
and then Source.Project.Library and then Source.Project.Library
and then Source.Project.Standalone_Library /= No and then Source.Project.Standalone_Library /= No
then then
SAL_Project := Source.Project;
end if;
if SAL_Project /= No_Project then
-- Check if the unit is in the interface -- Check if the unit is in the interface
OK := False; OK := False;
declare declare
List : String_List_Id := List : String_List_Id :=
Source.Project.Lib_Interface_ALIs; SAL_Project.Lib_Interface_ALIs;
Element : String_Element; Element : String_Element;
begin begin
...@@ -2993,7 +3011,8 @@ package body Makeutl is ...@@ -2993,7 +3011,8 @@ package body Makeutl is
Project_Tree.Shared.String_Elements.Table Project_Tree.Shared.String_Elements.Table
(List); (List);
if Element.Value = Name_Id (Source.Dep_Name) if Element.Value =
Name_Id (Source.Dep_Name)
then then
OK := True; OK := True;
Closure := True; Closure := True;
...@@ -3004,6 +3023,7 @@ package body Makeutl is ...@@ -3004,6 +3023,7 @@ package body Makeutl is
end loop; end loop;
end; end;
end if; end if;
end;
if OK then if OK then
Queue.Insert Queue.Insert
......
...@@ -16001,7 +16001,7 @@ package body Sem_Util is ...@@ -16001,7 +16001,7 @@ package body Sem_Util is
elsif Is_Scalar_Type (T) then elsif Is_Scalar_Type (T) then
-- If the subrange bounds are materialized by dedicated constant -- If the subrange bounds are materialized by dedicated constant
-- objects, also include them to the debug info to make sure the -- objects, also include them in the debug info to make sure the
-- debugger can properly use them. -- debugger can properly use them.
if Present (Scalar_Range (T)) if Present (Scalar_Range (T))
......
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