diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-11-17 14:58:17 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-11-17 14:58:17 +0000 |
commit | ea61a7eac2bd83ab4f8831935cc59f90ea601eb3 (patch) | |
tree | d4fd4202c674dfd74d652a50e82fd804b0e87ffc /gcc/ada/prj-proc.adb | |
parent | e58f120a098cf37e5b025eaf2152de3363e0b0f6 (diff) | |
download | gcc-ea61a7eac2bd83ab4f8831935cc59f90ea601eb3.tar.gz |
2003-11-17 Jerome Guitton <guitton@act-europe.fr>
* 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
already called in System.Threads.
* 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
environment task, as it has been moved to System.Threads.Initialization.
2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
* adaint.c (__gnatlib_install_locks): Only reference
__gnat_install_locks on VMS, since other platforms can avoid using
--enable-threads=gnat
2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
* decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
TYPE_PACKED_ARRAY_TYPE_P.
(validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
Part of PR ada/12806
* utils.c (float_type_for_precision): Renamed from float_type_for_size.
Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
2003-11-17 Vincent Celier <celier@gnat.com>
* gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
to False.
Do not set exit status to Failure when Warning is True.
(Gnatchop): Make errors "no compilation units found" and
"no source files written" warnings only.
* make.adb (Gnatmake): When using a project file, set
Look_In_Primary_Dir to False.
(Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
and Local_Configuration_Pragmas in the project where they are declared
not an extending project which might have inherited them.
* osint.adb (Locate_File): If Name is already an absolute path, do not
look for a directory.
* par-ch10.adb (P_Compilation_Unit): If source contains no token, and
-gnats (Check_Syntax) is used, issue only a warning, not an error.
* prj.adb (Register_Default_Naming_Scheme): Add new component Project
in objects of type Variable_Value.
* prj.ads: (Variable_Value): New component Project
* prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
is in a project extended by Project.
* prj-proc.adb (Add_Attributes): New parameter Project. Set component
Project of Variable_Values to this new parameter value.
(Expression): Set component Project of Variable_Values.
(Process_Declarative_Items): Call Add_Attributes with parameter Project.
Set the component Project in array elements.
2003-11-17 Sergey Rybin <rybin@act-europe.fr>
* errout.adb: (Initialize): Add initialization for error nodes.
* sem_ch12.adb (Initialize): Add missing initializations for
Exchanged_Views and Hidden_Entities.
2003-11-17 Ed Schonberg <schonberg@gnat.com>
* sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
already instantiated tree for use in subsequent inlining.
(Analyze_Associations, Instantiate_Formal_Subprogram,
Instantiate_Object): improve error message for mismatch in
instantiations.
* sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
instantiations of subprograms declared in instances.
2003-11-17 Javier Miranda <miranda@gnat.com>
* sem_ch4.adb (Analyze_Allocator): Previous modification must be
executed only under the Extensions_Allowed flag.
2003-11-17 Robert Dewar <dewar@gnat.com>
* a-exexda.adb (Address_Image): Fix documentation to indicate leading
zeroes suppressed.
(Address_Image): Fix bug of returning 0x instead of 0x0
Minor reformatting (function specs).
* einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
(missed case of 33-63)
* freeze.adb, sem_ch13.adb: Properly check size of packed bit array
* s-thread.adb: Add comments for pragma Restriction
* exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
2003-11-17 Ed Falis <falis@gnat.com>
* s-thread.adb: Added No_Tasking restriction for this implementation.
2003-11-17 Emmanuel Briot <briot@act-europe.fr>
* xref_lib.adb (Parse_Identifier_Info): Add handling of generic
instanciation references in the parent type description.
2003-11-17 GNAT Script <nobody@gnat.com>
* Make-lang.in: Makefile automatically updated
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73672 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/prj-proc.adb')
-rw-r--r-- | gcc/ada/prj-proc.adb | 48 |
1 files changed, 26 insertions, 22 deletions
diff --git a/gcc/ada/prj-proc.adb b/gcc/ada/prj-proc.adb index 21585af36cd..e75057a883d 100644 --- a/gcc/ada/prj-proc.adb +++ b/gcc/ada/prj-proc.adb @@ -56,8 +56,9 @@ package body Prj.Proc is -- arguments are not null string. procedure Add_Attributes - (Decl : in out Declarations; - First : Attribute_Node_Id); + (Project : Project_Id; + Decl : in out Declarations; + First : Attribute_Node_Id); -- Add all attributes, starting with First, with their default -- values to the package or project with declarations Decl. @@ -66,21 +67,18 @@ package body Prj.Proc is From_Project_Node : Project_Node_Id; Pkg : Package_Id; First_Term : Project_Node_Id; - Kind : Variable_Kind) - return Variable_Value; + Kind : Variable_Kind) return Variable_Value; -- From N_Expression project node From_Project_Node, compute the value -- of an expression and return it as a Variable_Value. function Imported_Or_Extended_Project_From (Project : Project_Id; - With_Name : Name_Id) - return Project_Id; + With_Name : Name_Id) return Project_Id; -- Find an imported or extended project of Project whose name is With_Name function Package_From (Project : Project_Id; - With_Name : Name_Id) - return Package_Id; + With_Name : Name_Id) return Package_Id; -- Find the package of Project whose name is With_Name procedure Process_Declarative_Items @@ -143,8 +141,9 @@ package body Prj.Proc is -------------------- procedure Add_Attributes - (Decl : in out Declarations; - First : Attribute_Node_Id) + (Project : Project_Id; + Decl : in out Declarations; + First : Attribute_Node_Id) is The_Attribute : Attribute_Node_Id := First; Attribute_Data : Attribute_Record; @@ -171,7 +170,8 @@ package body Prj.Proc is when Single => New_Attribute := - (Kind => Single, + (Project => Project, + Kind => Single, Location => No_Location, Default => True, Value => Empty_String); @@ -180,7 +180,8 @@ package body Prj.Proc is when List => New_Attribute := - (Kind => List, + (Project => Project, + Kind => List, Location => No_Location, Default => True, Values => Nil_String); @@ -225,8 +226,7 @@ package body Prj.Proc is From_Project_Node : Project_Node_Id; Pkg : Package_Id; First_Term : Project_Node_Id; - Kind : Variable_Kind) - return Variable_Value + Kind : Variable_Kind) return Variable_Value is The_Term : Project_Node_Id := First_Term; -- The term in the expression list @@ -241,6 +241,7 @@ package body Prj.Proc is -- Reference to the last string elements in Result, when Kind is List. begin + Result.Project := Project; Result.Location := Location_Of (First_Term); -- Process each term of the expression, starting with First_Term @@ -536,14 +537,16 @@ package body Prj.Proc is Expression_Kind_Of (The_Current_Term) = List then The_Variable := - (Kind => List, + (Project => Project, + Kind => List, Location => No_Location, Default => True, Values => Nil_String); else The_Variable := - (Kind => Single, + (Project => Project, + Kind => Single, Location => No_Location, Default => True, Value => Empty_String); @@ -739,8 +742,7 @@ package body Prj.Proc is function Imported_Or_Extended_Project_From (Project : Project_Id; - With_Name : Name_Id) - return Project_Id + With_Name : Name_Id) return Project_Id is Data : constant Project_Data := Projects.Table (Project); List : Project_List := Data.Imported_Projects; @@ -779,8 +781,7 @@ package body Prj.Proc is function Package_From (Project : Project_Id; - With_Name : Name_Id) - return Package_Id + With_Name : Name_Id) return Package_Id is Data : constant Project_Data := Projects.Table (Project); Result : Package_Id := Data.Decl.Packages; @@ -1035,7 +1036,8 @@ package body Prj.Proc is -- Set the default values of the attributes Add_Attributes - (Packages.Table (New_Pkg).Decl, + (Project, + Packages.Table (New_Pkg).Decl, Package_Attributes.Table (Package_Id_Of (Current_Item)).First_Attribute); @@ -1260,6 +1262,8 @@ package body Prj.Proc is Array_Elements.Table (New_Element) := Array_Elements.Table (Orig_Element); + Array_Elements.Table (New_Element).Value.Project := + Project; -- Adjust the Next link @@ -1856,7 +1860,7 @@ package body Prj.Proc is Processed_Data.Extended_By := Extended_By; Processed_Data.Naming := Standard_Naming_Data; - Add_Attributes (Processed_Data.Decl, Attribute_First); + Add_Attributes (Project, Processed_Data.Decl, Attribute_First); With_Clause := First_With_Clause_Of (From_Project_Node); while With_Clause /= Empty_Node loop |