diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-07-30 15:13:23 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-07-30 15:13:23 +0000 |
commit | 2fac8a3a943075849110a859da7a85b2ab732dd6 (patch) | |
tree | e9d7f87f40d20e633debaafad695d3cb50b3a33b /gcc/ada/makeutl.adb | |
parent | f5efa5aaee38a29674642e46de7aec6354412c72 (diff) | |
download | gcc-2fac8a3a943075849110a859da7a85b2ab732dd6.tar.gz |
2014-07-30 Robert Dewar <dewar@adacore.com>
* gnat_ugn.texi: Minor spelling correction.
* makeutl.adb: Minor code reorganization.
* exp_ch4.adb, exp_aggr.adb, exp_ch3.adb: Minor reformatting.
2014-07-30 Robert Dewar <dewar@adacore.com>
* einfo.ads (Has_Unchecked_Union): Document that this is used
to check for illegal Valid_Scalars attribute references.
* exp_attr.adb (Build_Record_VS_Func): New function
(Expand_N_Attribute_Reference, case Valid_Scalars): Call this
function.
* gnat_rm.texi: Document 'Valid_Scalars cannot be applied to
Unchecked_Union Add note on 'Valid_Scalars generating a lot
of code.
* sem_attr.adb (Analyze_Attribute, case Valid_Scalars): Give
error on attempt to apply Valid_Scalars to Unchecked_Union type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213298 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/makeutl.adb')
-rw-r--r-- | gcc/ada/makeutl.adb | 46 |
1 files changed, 21 insertions, 25 deletions
diff --git a/gcc/ada/makeutl.adb b/gcc/ada/makeutl.adb index 76111062b5f..b192ef858f9 100644 --- a/gcc/ada/makeutl.adb +++ b/gcc/ada/makeutl.adb @@ -2912,26 +2912,26 @@ package body Makeutl is is procedure Do_Insert - (Project : Project_Id; - Tree : Project_Tree_Ref; - Context : Project_Context); + (Project : Project_Id; + Tree : Project_Tree_Ref; + Context : Project_Context); + -- Local procedures must be commented ??? --------------- -- Do_Insert -- --------------- procedure Do_Insert - (Project : Project_Id; - Tree : Project_Tree_Ref; - Context : Project_Context) + (Project : Project_Id; + Tree : Project_Tree_Ref; + Context : Project_Context) is Unit_Based : constant Boolean := Unique_Compile or else not Builder_Data (Tree).Closure_Needed; - -- When Unit_Based is True, put in the queue all compilable - -- sources including the unit based (Ada) one. When Unit_Based is - -- False, put the Ada sources only when they are in a library - -- project. + -- When Unit_Based is True, we enqueue all compilable sources + -- including the unit based (Ada) one. When Unit_Based is False, + -- put the Ada sources only when they are in a library project. Iter : Source_Iterator; Source : Prj.Source_Id; @@ -2942,9 +2942,7 @@ package body Makeutl is -- Nothing to do when "-u" was specified and some files were -- specified on the command line - if Unique_Compile - and then Mains.Number_Of_Mains (Tree) > 0 - then + if Unique_Compile and then Mains.Number_Of_Mains (Tree) > 0 then return; end if; @@ -2955,16 +2953,13 @@ package body Makeutl is if Is_Allowed_Language (Source.Language.Name) and then Is_Compilable (Source) - and then - (All_Projects - or else Is_Extending (Project, Source.Project)) + and then (All_Projects + or else Is_Extending (Project, Source.Project)) and then not Source.Locally_Removed and then Source.Replaced_By = No_Source - and then - (not Source.Project.Externally_Built - or else - (Is_Extending (Project, Source.Project) - and then not Project.Externally_Built)) + and then (not Source.Project.Externally_Built + or else (Is_Extending (Project, Source.Project) + and then not Project.Externally_Built)) and then Source.Kind /= Sep and then Source.Path /= No_Path_Information then @@ -2988,19 +2983,20 @@ package body Makeutl is if Source.Unit /= No_Unit_Index and then (Source.Project.Library - or else Project.Qualifier = Aggregate_Library - or else Context.In_Aggregate_Lib) + or else Project.Qualifier = Aggregate_Library + or else Context.In_Aggregate_Lib) and then Source.Project.Standalone_Library /= No then -- Check if the unit is in the interface + OK := False; declare - List : String_List_Id := - Source.Project.Lib_Interface_ALIs; + List : String_List_Id; Element : String_Element; begin + List := Source.Project.Lib_Interface_ALIs; while List /= Nil_String loop Element := Project_Tree.Shared.String_Elements.Table |