diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2014-08-04 11:52:02 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2014-08-04 11:52:02 +0200 |
commit | af6478c843c106281461ed5fd93377e61716181d (patch) | |
tree | 63e29bd63d423dfadd88c517110f7a00b8a02086 /gcc/ada/prj.ads | |
parent | e943fe8a6ae5d1b5f1f82825145cbd4e7c764405 (diff) | |
download | gcc-af6478c843c106281461ed5fd93377e61716181d.zip gcc-af6478c843c106281461ed5fd93377e61716181d.tar.gz gcc-af6478c843c106281461ed5fd93377e61716181d.tar.bz2 |
[multiple changes]
2014-08-04 Arnaud Charlet <charlet@adacore.com>
* exp_util.adb (Check_Float_Op_Overflow): No-op in codepeer
mode for now, to revert to previous behavior.
* checks.adb: Revert previous change, no longer needed.
2014-08-04 Robert Dewar <dewar@adacore.com>
* gnat1drv.adb (Adjust_Global_Switches): Don't set
Check_Float_Overflow if Machine_Oveflows_On_Target is True.
* sem_prag.adb (Analyze_Pragma, case Check_Float_Overflow): Don't
set Check_Float_Overflow if Machine_Oveflows_On_Target is True.
* switch-c.adb (Scan_Front_End_Switches): Don't set
Check_Float_Overflow if Machine_Oveflows_On_Target is True.
2014-08-04 Vincent Celier <celier@adacore.com>
* prj-attr.adb: Add new default indications for
attributes Object_Dir, Exec_Dir, Source_Dirs and Target.
(Attribute_Default_Of): New function (Initialize): Set the
default for those attributes that have one specified.
* prj-attr.ads (Attribute_Data): New component Default.
* prj-proc.adb (Expression): Take into account the new defaults
for attributes Object_Dir, Exec_Dir and Source_Dirs.
* prj-strt.adb (Attribute_Reference): Set the default for
the attribute.
* prj-tree.ads, prj-tree.adb (Default_Of): New function.
(Set_Default_Of): New procedure.
* prj.adb (The_Dot_String): New global Name_Id variable,
initialized in procedure Initialize.
(Dot_String): New function
(Initialize): Initialize The_Dot_String.
(Reset): Create the string list Shared.Dot_String_List.
* prj.ads (Attribute_Default_Value): New enumeration type.
(Project_Qualifier): Change enumeration value Dry to Abstract_Project.
(Dot_String): New function.
(Shared_Project_Tree_Data): New string list component Dot_String_List.
* projects.texi: Document new defaults for attribute Object_Dir,
Exec_Dir and Source_Dirs.
From-SVN: r213548
Diffstat (limited to 'gcc/ada/prj.ads')
-rw-r--r-- | gcc/ada/prj.ads | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/gcc/ada/prj.ads b/gcc/ada/prj.ads index 329cc6d..b44bfa4 100644 --- a/gcc/ada/prj.ads +++ b/gcc/ada/prj.ads @@ -72,6 +72,25 @@ package Prj is type Yes_No_Unknown is (Yes, No, Unknown); -- Tri-state to decide if -lgnarl is needed when linking + type Attribute_Default_Value is + (Read_Only_Value, + -- for read only attributes (Name, Project_Dir) + + Empty_Value, + -- empty string or empty string list + + Dot_Value, + -- "." or (".") + + Object_Dir_Value, + -- 'Object_Dir + + Target_Value + -- 'Target (special rules) + ); + -- Describe the default values of attributes that are referenced but not + -- declared. + pragma Warnings (Off); type Project_Qualifier is (Unspecified, @@ -83,7 +102,7 @@ package Prj is Library, Configuration, - Dry, + Abstract_Project, Aggregate, Aggregate_Library); pragma Warnings (On); @@ -91,7 +110,7 @@ package Prj is -- file: -- Standard: standard project ... -- Library: library project is ... - -- Dry: abstract project is + -- Abstract_Project: abstract project is -- Aggregate: aggregate project is -- Aggregate_Library: aggregate library project is ... -- Configuration: configuration project is ... @@ -123,6 +142,9 @@ package Prj is function Empty_String return Name_Id; -- Return the id for an empty string "" + function Dot_String return Name_Id; + -- Return the id for "." + type Path_Information is record Name : Path_Name_Type := No_Path; Display_Name : Path_Name_Type := No_Path; @@ -1570,6 +1592,7 @@ package Prj is Arrays : Array_Table.Instance; Packages : Package_Table.Instance; Private_Part : Private_Project_Tree_Data; + Dot_String_List : String_List_Id := Nil_String; end record; type Shared_Project_Tree_Data_Access is access all Shared_Project_Tree_Data; -- The data that is shared among multiple trees, when these trees are |