aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/prj-attr.ads
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2008-08-05 11:14:48 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2008-08-05 11:14:48 +0200
commit0df218a9a7fd4756b2ac9f49f27740cf4c92894d (patch)
treecc13f338881f4b355c6a43a0c3d594d7a2e9ccb1 /gcc/ada/prj-attr.ads
parent9cc014f915575184a59397c619626f221cc9d706 (diff)
downloadgcc-0df218a9a7fd4756b2ac9f49f27740cf4c92894d.zip
gcc-0df218a9a7fd4756b2ac9f49f27740cf4c92894d.tar.gz
gcc-0df218a9a7fd4756b2ac9f49f27740cf4c92894d.tar.bz2
make.adb (Switches_Of): Check for Switches (others), before checking for Default_Switches ("Ada").
2008-08-05 Vincent Celier <celier@adacore.com> * make.adb (Switches_Of): Check for Switches (others), before checking for Default_Switches ("Ada"). (Gnatmake): Use Builder'Switches (others) in preference to Builder'Default_Switches ("Ada") if there are several mains. * prj-attr-pm.adb: (Add_Attribute): Add component Others_Allowed in Attribute_Record aggregate. * prj-attr.adb: Add markers to indicates that attributes Switches allow others as index (Others_Allowed_For): New Boolean function, returning True for attributes with the mark. (Initialize): Recognize optional letter 'O' as the marker for associative array attributes where others is allowed as the index. * prj-attr.ads: (Others_Allowed_For): New Boolean function (Attribute_Record): New Boolean component Others_Allowed * prj-dect.adb: (Parse_Attribute_Declaration): For associative array attribute where others is allowed as the index, allow others as an index. * prj-nmsc.adb: (Process_Binder): Skip associative array attributes with index others (Process_Compiler): Ditto * prj-util.adb: (Value_Of (Index, In_Array)): Make no attempt to put in lower case when index is All_Other_Names. * prj.ads: (All_Other_Names): New constant From-SVN: r138683
Diffstat (limited to 'gcc/ada/prj-attr.ads')
-rw-r--r--gcc/ada/prj-attr.ads5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/ada/prj-attr.ads b/gcc/ada/prj-attr.ads
index 473ea53..59d00a3 100644
--- a/gcc/ada/prj-attr.ads
+++ b/gcc/ada/prj-attr.ads
@@ -169,6 +169,10 @@ package Prj.Attr is
-- Returns Empty_Attribute if After is either Empty_Attribute or is the
-- last of the list.
+ function Others_Allowed_For (Attribute : Attribute_Node_Id) return Boolean;
+ -- Returns True if the index for an associative array attributes may be
+ -- others.
+
--------------
-- Packages --
--------------
@@ -282,6 +286,7 @@ private
Optional_Index : Boolean;
Attr_Kind : Attribute_Kind;
Read_Only : Boolean;
+ Others_Allowed : Boolean;
Next : Attr_Node_Id;
end record;
-- Data for an attribute