Commit 3b6d290a by Arnaud Charlet

[multiple changes]

2010-06-22  Vincent Celier  <celier@adacore.com>

	* prj-nmsc.adb (Process_Naming_Scheme): Initialize table Lib_Data_Table.

2010-06-22  Robert Dewar  <dewar@adacore.com>

	* par-ch4.adb (P_Name): Recognize 'Mod attribute in Ada 95 mode
	* sem_attr.adb (Attribute_05): Add Name_Mod so that 'Mod recognized in
	Ada 95 mode as an implementation defined attribute.

From-SVN: r161166
parent 8d2547f2
2010-06-22 Vincent Celier <celier@adacore.com> 2010-06-22 Vincent Celier <celier@adacore.com>
* prj-nmsc.adb (Process_Naming_Scheme): Initialize table Lib_Data_Table.
2010-06-22 Robert Dewar <dewar@adacore.com>
* par-ch4.adb (P_Name): Recognize 'Mod attribute in Ada 95 mode
* sem_attr.adb (Attribute_05): Add Name_Mod so that 'Mod recognized in
Ada 95 mode as an implementation defined attribute.
2010-06-22 Vincent Celier <celier@adacore.com>
* bindusg.adb (Display): Update line for -R * bindusg.adb (Display): Update line for -R
* switch-b.adb (Scan_Binder_Switches): Allow generation of the binder * switch-b.adb (Scan_Binder_Switches): Allow generation of the binder
generated files when -R is used. generated files when -R is used.
......
...@@ -437,7 +437,7 @@ package body Ch4 is ...@@ -437,7 +437,7 @@ package body Ch4 is
elsif Token = Tok_Access then elsif Token = Tok_Access then
Attr_Name := Name_Access; Attr_Name := Name_Access;
elsif Token = Tok_Mod and then Ada_Version = Ada_05 then elsif Token = Tok_Mod and then Ada_Version >= Ada_95 then
Attr_Name := Name_Mod; Attr_Name := Name_Mod;
elsif Apostrophe_Should_Be_Semicolon then elsif Apostrophe_Should_Be_Semicolon then
......
...@@ -165,7 +165,7 @@ package body Prj.Nmsc is ...@@ -165,7 +165,7 @@ package body Prj.Nmsc is
package Lib_Data_Table is new GNAT.Table package Lib_Data_Table is new GNAT.Table
(Table_Component_Type => Lib_Data, (Table_Component_Type => Lib_Data,
Table_Index_Type => Positive, Table_Index_Type => Natural,
Table_Low_Bound => 1, Table_Low_Bound => 1,
Table_Initial => 10, Table_Initial => 10,
Table_Increment => 100); Table_Increment => 100);
...@@ -7567,6 +7567,7 @@ package body Prj.Nmsc is ...@@ -7567,6 +7567,7 @@ package body Prj.Nmsc is
-- Start of processing for Process_Naming_Scheme -- Start of processing for Process_Naming_Scheme
begin begin
Lib_Data_Table.Init;
Initialize (Data, Tree => Tree, Flags => Flags); Initialize (Data, Tree => Tree, Flags => Flags);
Check_All_Projects (Root_Project, Data, Imported_First => True); Check_All_Projects (Root_Project, Data, Imported_First => True);
Free (Data); Free (Data);
......
...@@ -136,6 +136,7 @@ package body Sem_Attr is ...@@ -136,6 +136,7 @@ package body Sem_Attr is
Attribute_05 : constant Attribute_Class_Array := Attribute_Class_Array'( Attribute_05 : constant Attribute_Class_Array := Attribute_Class_Array'(
Attribute_Machine_Rounding | Attribute_Machine_Rounding |
Attribute_Mod |
Attribute_Priority | Attribute_Priority |
Attribute_Stream_Size | Attribute_Stream_Size |
Attribute_Wide_Wide_Width => True, Attribute_Wide_Wide_Width => True,
......
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