aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/make.adb
AgeCommit message (Collapse)AuthorFilesLines
2009-10-27[multiple changes]Arnaud Charlet1-1/+1
2009-10-27 Arnaud Charlet <charlet@adacore.com> * exp_aggr.adb: Fix comment. 2009-10-27 Emmanuel Briot <briot@adacore.com> * prj-err.adb (Error_Msg): take into account continuation lines when computing whether we have a warning. 2009-10-27 Vasiliy Fofanov <fofanov@adacore.com> * make.adb, s-os_lib.adb, s-os_lib.ads (Create_Temp_Output_File): New routine that is designed to create temp file descriptor specifically for redirecting an output stream. From-SVN: r153591
2009-09-172009-09-17 Emmanuel Briot <briot@adacore.com>Emmanuel Briot1-5/+6
* gnatcmd.adb, make.adb, prj-part.adb, prj-ext.adb, prj-ext.ads, switch-m.adb, switch-m.ads, clean.adb, prj-tree.ads (Project_Node_Tree_Data.Project_Path): New field. * prj-conf.adb (Do_Autoconf): Remove "creating auto.cgpr" message From-SVN: r151794
2009-09-17[multiple changes]Arnaud Charlet1-38/+75
2009-09-17 Bob Duff <duff@adacore.com> * gnat_rm.texi, s-oscons-tmplt.c: Minor typo 2009-09-17 Emmanuel Briot <briot@adacore.com> * gnatcmd.adb, prj-proc.adb, make.adb, prj-ext.adb, prj-ext.ads, makeutl.adb, makeutl.ads, clean.adb, prj-pars.adb, prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb, prj-tree.ads, prj-proc.ads, prj-nmsc.ads (Add, Value_Of, Reset): new parameter Tree. Scenario variables are now specific to each project tree loaded in memory. Code clean ups. 2009-09-17 Javier Miranda <miranda@adacore.com> * exp_disp.adb (Make_DT): Remove wrong line of code that was undocumented and probably added by mistake. From-SVN: r151792
2009-09-07make.adb: Add missing documentation for multilib handling.Laurent GUERBY1-2/+21
2009-09-07 Laurent GUERBY <laurent@guerby.net> * make.adb: Add missing documentation for multilib handling. From-SVN: r151473
2009-08-17[multiple changes]Arnaud Charlet1-51/+29
2009-08-17 Vasiliy Fofanov <fofanov@adacore.com> * a-calend-vms.adb: Fix typo. 2009-08-17 Tristan Gingold <gingold@adacore.com> * s-taprop-posix.adb: Round up the stack size to avoid failure on Darwin. 2009-08-17 Gary Dismukes <dismukes@adacore.com> * sem_cat.adb (Validate_Static_Object_Name): Update comment. 2009-08-17 Vincent Celier <celier@adacore.com> * make.adb (Arguments_Collected): Unneeded, removed (Change_To_Object_Directory): Use Project directly. Add pragma Assert to ensure caller does not pass in No_Project. (Compile): Add new parameter Project. Let procedure Collect_Arguments_And_Compile provide the proper value. * switch-c.adb: Add documentation for -gnatea and -gnatez 2009-08-17 Ben Brosgol <brosgol@adacore.com> * gnat_ugn.texi: Changed name of package in SAL example, to avoid clash with Ada 2005 reserved word (interface). From-SVN: r150838
2009-08-17make.adb: Add ??? comment.Robert Dewar1-2/+8
2009-08-17 Robert Dewar <dewar@adacore.com> * make.adb: Add ??? comment. Code clean up. From-SVN: r150831
2009-08-17make.adb (Process_Multilib, [...]): Refine previous change and ignore -mieee ↵Arnaud Charlet1-1/+4
switch to avoid spawning an extra gcc... 2009-08-17 Arnaud Charlet <charlet@adacore.com> * make.adb (Process_Multilib, Scan_Make_Arg): Refine previous change and ignore -mieee switch to avoid spawning an extra gcc in this case. From-SVN: r150829
2009-08-17[multiple changes]Arnaud Charlet1-10/+9
2009-08-17 Ed Schonberg <schonberg@adacore.com> * exp_ch3.adb (Build_Discriminant_Formals): If the discriminals already exist, as is the case for synchronized types, use the type of the discriminal in the parameter specification, to prevent a spurious subtype mismatch in gigi. 2009-08-17 Robert Dewar <dewar@adacore.com> * prj-env.adb: Minor reformatting * make.adb: Minor reformatting Comment updates 2009-08-17 Javier Miranda <miranda@adacore.com> * exp_ch7.adb (Wrap_Transient_Expression): Update comments. From-SVN: r150828
2009-08-10make.adb: Handle multilibLaurent GUERBY1-0/+103
2009-08-10 Laurent GUERBY <laurent@guerby.net> * make.adb: Handle multilib From-SVN: r150623
2009-07-28make.adb, [...] (Project_Tree): Duplicates the global variable that also ↵Emmanuel Briot1-68/+4
exists in makeutl.ads... 2009-07-28 Emmanuel Briot <briot@adacore.com> * make.adb, makeutl.adb, makeutl.ads (Project_Tree): Duplicates the global variable that also exists in makeutl.ads, and that some routines in that package use already. (Check): Moved part of the code to makeutl.adb for better sharing with gprbuild. From-SVN: r150157
2009-07-28[multiple changes]Arnaud Charlet1-97/+0
2009-07-28 Emmanuel Briot <briot@adacore.com> * prj.adb, prj.ads (Compute_All_Imported_Projects): Make sure the importing project does not end up in the list, in the case of extending projects. * make.adb, makeutl.adb, makeutl.ads (File_Not_A_Source_Of): Moved to makeutl.ads, for better sharing with gprbuild. 2009-07-28 Arnaud Charlet <charlet@adacore.com> * gnat_ugn.texi: Fix typo. 2009-07-28 Ed Schonberg <schonberg@adacore.com> * sem_ch3.adb (Build_Derived_Concurrent_Type): Handle properly a derivation that renames some discriminants and constrain others. * exp_ch9.adb (Build_Protected_Subprogram_Call): If the type of the prefix is a derived untagged type, convert to the root type to conform to the signature of the protected operations. 2009-07-28 Robert Dewar <dewar@adacore.com> * sinfo.ads: Update comments. * exp_attr.adb: Minor reformatting From-SVN: r150152
2009-07-28[multiple changes]Arnaud Charlet1-0/+5
2009-07-28 Sergey Rybin <rybin@adacore.com> * gnat_ugn.texi: Add section about gnatcheck rule exemption. 2009-07-28 Vadim Godunko <godunko@adacore.com> * s-oscons-tmplt.c: Define _XOPEN_SOURCE on Linux, otherwise IOV_MAX is not defined by limits.h. * g-socket.adb (Receive_Vector): Use minimum length from user's vector length and maximum supported length of data vector. 2009-07-28 Gary Dismukes <dismukes@adacore.com> * usage.adb: Inhibit printing gcc-specific switches for AAMP target. * make.adb: Call Get_Target_Parameters before calling Usage so that VM_Target and AAMP_On_Target will be set. From-SVN: r150147
2009-07-22s-stchop.adb, [...]: Make sure sources obey short-circuit style rule.Robert Dewar1-10/+12
2009-07-22 Robert Dewar <dewar@adacore.com> * s-stchop.adb, a-direct.adb, a-ztexio.adb, gnatchop.adb, prj-proc.adb, make.adb, s-regpat.adb, ali-util.adb, a-ngcefu.adb, prep.adb, s-tassta.adb, a-tifiio.adb, a-textio.adb, prj.adb, uintp.adb, s-valrea.adb, a-ngelfu.adb, prepcomp.adb, sinput-l.adb, vms_conv.adb, errout.adb, g-alleve.adb, repinfo.adb, a-wtedit.adb, ali.adb, a-witeio.adb, prj-dect.adb, prj-nmsc.adb, sinput-c.adb, binde.adb, s-regexp.adb, s-imgrea.adb, a-teioed.adb, errutil.adb, prj-util.adb, a-ztedit.adb, gnatls.adb, prj-conf.adb, bcheck.adb, s-scaval.adb, erroutc.adb, osint.adb, a-strfix.adb, s-fileio.adb: Make sure sources obey short-circuit style rule. From-SVN: r149921
2009-07-15[multiple changes]Arnaud Charlet1-1/+3
2009-07-15 Sergey Rybin <rybin@adacore.com> * tree_in.ads, tree_io.ads: Add pragma Warnings Off/On for with clause to System.OS_Lib to avoid warnings. 2009-07-15 Robert Dewar <dewar@adacore.com> * sinfo.ads, make.adb, par.ads, par.adb, sem_warn.adb: Minor reformatting. 2009-07-15 Thomas Quinot <quinot@adacore.com> * g-socthi-mingw.adb: Minor comment addition * g-socthi-mingw.ads (WSAStartup): First argument is a WORD not an int. From-SVN: r149668
2009-07-13Update comments.Arnaud Charlet1-5/+5
From-SVN: r149582
2009-07-13gnatcmd.adb, [...] (Prj.Tree.Create*): New subprograms to create new ↵Emmanuel Briot1-60/+11
packages and attributes in a project tree. 2009-07-13 Emmanuel Briot <briot@adacore.com> * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj-ext.adb, gnat_ugn.texi, prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-util.adb, prj-conf.adb, gnatname.adb, prj-env.adb, prj-env.ads, prj-tree.adb, prj-tree.ads (Prj.Tree.Create*): New subprograms to create new packages and attributes in a project tree. (Add_Default_GNAT_Naming_Scheme): Provide real implementation. Remove last remaining mode-specific code (ada_only or multi_language). This was duplicating code (Get_Mode, Set_Mode): removed, no longer used. (Initialize_Project_Path): all tools will now take into account both GPR_PROJECT_PATH and ADA_PROJECT_PATH (in that order). Remove some global variables and subprograms no longer used Make temporary files tree-specific, to avoid interferences between trees loaded in memory at the same time. (Prj.Delete_Temporary_File): new subprogram (Object_Paths, Source_Paths): fields no longer stored in the project tree, since they are only needed locally in Set_Ada_Paths. (Set_Mapping_File_Initial_State_To_Empty): removed, since had no effect in practice. (Project_Tree_Data.Ada_Path_Buffer): removed, since it can be replaced by local variables in the appropriate subprograms (Has_Foreign_Sources): removed. * gcc-interface/Makefile.in: prj-pp.o is now needed to build gnatmake From-SVN: r149568
2009-07-13gnatcmd.adb, [...]: Minor reformatting.Emmanuel Briot1-1/+2
2009-07-13 Emmanuel Briot <briot@adacore.com> * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb, prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-env.adb, prj-tree.adb, prj-tree.ads: Minor reformatting. (Processing_Flags): new record to encapsulate the set of common parameters to several subprograms in the project manager. (Prj.Nmsc.Process_Naming_Scheme): renames Check, and moved to body Remove the need for the Current_Dir parameter in subprograms. (Look_For_Sources): minor refactoring, now that we no longer need to share subprograms between the two Ada_Only and Multi_Language modes (Processing_Flags): New field Error_On_Unknown_Language. Merge tests for library project between gnatmake and gprbuild. From-SVN: r149563
2009-07-13lib.adb, [...]: Update comments.Arnaud Charlet1-4/+4
* lib.adb, make.adb, mlib.adb, exp_dist.adb: Update comments. Minor reformatting. From-SVN: r149562
2009-07-13gnatcmd.adb, [...] (Immediate_Directory_Of): Removed.Emmanuel Briot1-13/+9
2009-07-13 Emmanuel Briot <briot@adacore.com> * gnatcmd.adb, make.adb, mlib-prj.adb, prj-part.adb, mlib.adb, prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb, prj-tree.ads (Immediate_Directory_Of): Removed. (Prj.Pars): Now parse the project simulating a default config file. (Add_Default_GNAT_Naming_Scheme): New subprogram (Check_Naming_Multi_Lang): Fix default value for Dot_Replacement. Remove gnatmake-specific parsing of source files. (Check_Illegal_Suffix): Renames Is_Illegal_Suffix, since it now raises the error itself to provide more precise diagnostics. (Process_Exceptions_Unit_Based): Avoid duplicate error message when a unit belongs to several projects. (Copy_Interface_Sources): Search the full path of files to copy in the list of sources of the application rather than in the list of units. (Parse_Project_And_Apply_Config): Do not reset the name of the main project file. (Check_File): Use htables to find out whether a source is duplicated. (Add_Source): check whether the source or unit were already seen earlier * gcc-interface/Makefile.in: Update gnatmake dependencies. From-SVN: r149557
2009-07-10[multiple changes]Arnaud Charlet1-2/+2
2009-07-10 Thomas Quinot <quinot@adacore.com> * exp_ch7.adb: Update comments. 2009-07-10 Arnaud Charlet <charlet@adacore.com> * exp_ch13.adb (Expand_N_Record_Representation_Clause): Ignore mod clause if -gnatI is set instead of crashing. 2009-07-10 Ed Schonberg <schonberg@adacore.com> * sem_ch11.adb (Same_Expression): Null is always equal to itself. Additional work to remove redundant successive raise statements, in this case access checks. 2009-07-10 Vincent Celier <celier@adacore.com> * make.adb (Compile): Always create a deep copy of the mapping file argument (-gnatem=...) as it may be deallocate/reallocate by Normalize_Arguments. 2009-07-10 Javier Miranda <miranda@adacore.com> * einfo.adb (Directly_Designated_Type): Add assertion. * sem_res.adb (Check_Fully_Declared_Prefix): Add missing check on access types before using attribute Directly_Designated_Type. 2009-07-10 Emmanuel Briot <briot@adacore.com> * prj.ads: Minor typo fix 2009-07-10 Ed Schonberg <schonberg@adacore.com> * sem_ch6.adb (Add_Extra_Formal): Protected operations do no need special treatment. * exp_ch6.adb (Expand_Protected_Subprogram_Call): If rewritten subprogram is a function call, resolve properly, to ensure that extra actuals are added as needed. From-SVN: r149474
2009-07-10make.adb: Do not include object directories or library ALI directories of ↵Vincent Celier1-2/+3
library... 2009-07-10 Vincent Celier <celier@adacore.com> * make.adb: Do not include object directories or library ALI directories of library projects in the object path. From-SVN: r149460
2009-06-26[multiple changes]Arnaud Charlet1-3/+3
2009-06-26 Matthew Gingell <gingell@adacore.com> * adaint.c: Do not use the dummy version of convert_addresses on LynxOS 2009-06-26 Vincent Celier <celier@adacore.com> * prj.ads (No_Language_Config): Value of Dependency_Kind is None by default. 2009-06-26 Robert Dewar <dewar@adacore.com> * exp_ch4.adb, gnatcmd.adb, make.adb: Minor reformatting From-SVN: r148963
2009-06-25[multiple changes]Arnaud Charlet1-14/+21
2009-06-25 Emmanuel Briot <briot@adacore.com> * gnatcmd.adb, prj-proc.adb, make.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-util.adb, prj-env.adb, prj-env.ads: Merge handling of naming_data between gnatmake and gprbuild. (Naming_Data): Removed, no longer used (Naming_Table, Project_Tree_Ref.Namings): Removed, since this is only needed locally in one subprogram, no need to store forever in the structure. (Check_Naming_Scheme, Check_Package_Naming): Merged, since they play a similar role. (Body_Suffix_Of, Body_Suffix_Id_Of, Register_Default_Naming_Scheme, Same_Naming_Scheme, Set_Body_Suffix, Set_Spec_Suffix, Spec_Suffix_Of, Spec_Suffix_Id_Of): removed, no longer used. 2009-06-25 Javier Miranda <miranda@adacore.com> * sem_res.adb (Resolve_Allocator): Skip test requiring exact match of types on qualified expression in calls to imported C++ constructors. * exp_ch4.adb (Expand_Allocator_Expression): Add missing support for imported C++ constructors. 2009-06-25 Sergey Rybin <rybin@adacore.com> * vms_data.ads: Add qualifier for new gnatcheck '-t' option. From-SVN: r148937
2009-06-25fmap.ads, [...] (Source_Data.Get_Object): Field removed, since it can be ↵Emmanuel Briot1-1/+1
computed efficiently from the other fields. 2009-06-25 Emmanuel Briot <briot@adacore.com> * fmap.ads, make.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb, prj-env.ads (Source_Data.Get_Object): Field removed, since it can be computed efficiently from the other fields. (Object_To_Global_Archive): New subprogram (Create_Mapping): Remove unneeded call to Remove_Forbidden_File_Name. (Override_Kind): Fix handling of separates in Ada. (Create_Mapping_File): Remove duplicate code (Naming_Data.Implementation_Exception, Specification_Exception): field removed, since never used. (Naming_Data.Specs, .Bodies): field removed, since this is only used while processing the project and is not needed once the tree is in memory. This brings Naming_Data and Lang_Naming_Data closer (same content now, but different use still). From-SVN: r148934
2009-06-25[multiple changes]Arnaud Charlet1-4/+4
2009-06-25 Emmanuel Briot <briot@adacore.com> * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb, prj-env.ads (Slash): removed, no longer used (Source_Data): no longer use Path.Name to point to a locally removed file. Instead we use the field Locally_Removed which is clearer 2009-06-25 Arnaud Charlet <charlet@adacore.com> * gcc-interface/Make-lang.in: Remove references to sem_maps.o * sem_maps.adb, sem_maps.ads: Removed, not used. From-SVN: r148931
2009-06-24[multiple changes]Arnaud Charlet1-25/+17
2009-06-24 Vincent Celier <celier@adacore.com> * prj-nmsc.adb (Check): A project declared abstract is legal if no attribute Source_Dirs, Source_Files, Source_List_File or Languages is declared. 2009-06-24 Robert Dewar <dewar@adacore.com> * clean.adb, gnatcmd.adb, make.adb, mlib-prj.adb, prj-env.adb: Minor reformatting 2009-06-24 Ed Falis <falis@adacore.com> * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-vxwext.ads, s-vxwext-kernel.adb, s-vxwext-kernel.ads, s-vxwext-rtp.adb, s-tasinf-vxworks.ads, gcc-interface/Makefile.in: Add processor affinity support for VxWorks SMP. * gcc-interface/Make-lang.in: Update dependencies From-SVN: r148902
2009-06-24gnatcmd.adb, [...] (Units_Table): Removed, since no longer useful.Emmanuel Briot1-160/+151
2009-06-24 Emmanuel Briot <briot@adacore.com> * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-env.adb, prj-proc.adb (Units_Table): Removed, since no longer useful. (Source_Data.Lang_Kind): Removed, since it duplicates information already available through Language.Config. (Source_Data.Compile): Removed, since information is already available through the language. (Is_Compilable): New subprogram. (Source_Data.Dependency): Removed, since already available through the language. (Source_Data.Object_Exist, Object_Linked): Removed since available through the language already. (Unit_Data.File_Names): Is now also set in multi_language mode, to bring the two modes closer in the resulting data structures. (Source_Data.Unit): Now a direct pointer to the unit data, rather than just the name that would point into a hash table. (Get_Language_From_Name): New subprogram. From-SVN: r148901
2009-06-24[multiple changes]Arnaud Charlet1-45/+51
2009-06-24 Javier Miranda <miranda@adacore.com> * exp_ch4.adb (Expand_N_Type_Conversion): Handle entities that are visible through limited-with context clauses. In addition, avoid an extra tag check that is not required when the class-wide designated types of the operand and target types are the same entity. (Tagged_Membership): Handle entities from the limited view. 2009-06-24 Emmanuel Briot <briot@adacore.com> * gnatcmd.adb, make.adb, mlib-prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-env.adb (File_Name_Data): removed (Spec_Or_Body): now a subtype of Source_Kind, to avoid using two different vocabularies for similar concepts (Impl/Body_Part and Spec/Specification). (Unit_Data): now points directly to a Source_Id, rather than duplicating some of the information in File_Name_Data. This also saves a bit of memory. However, since we are now using a pointer we need to test for null explicitly in several places of the code From-SVN: r148900
2009-06-24[multiple changes]Arnaud Charlet1-4/+6
2009-06-24 Robert Dewar <dewar@adacore.com> * exp_ch6.adb: Minor reformatting * layout.adb: Minor reformatting * make.adb: Minor reformatting 2009-06-24 Thomas Quinot <quinot@adacore.com> * sem_ch10.adb: Minor code reorganization. From-SVN: r148898
2009-06-24[multiple changes]Arnaud Charlet1-0/+30
2009-06-24 Eric Botcazou <ebotcazou@adacore.com> * ttypes.ads: Minor editing. 2009-06-24 Robert Dewar <dewar@adacore.com> * exp_ch6.adb (Expand_Actuals): Use Is_Volatile, not Treat_As_Volatile in deciding to do call-by-copy code. 2009-06-24 Vincent Celier <celier@adacore.com> * make.adb (Gnatmake): To decide if an executable should be rebuilt, check if an externally built library file is more current than the executable. From-SVN: r148897
2009-05-04re PR ada/38874 (gnatmake doesn't pass through --param options)Laurent GUERBY1-0/+7
2009-05-04 Laurent GUERBY <laurent@guerby.net> PR ada/38874 * make.adb (Scan_Make_Arg): Pass --param= to compiler and linker. From-SVN: r147102
2009-04-292009-04-29 Emmanuel Briot <briot@adacore.com>Emmanuel Briot1-1/+2
* gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb, prj-part.ads, prj.adb, prj.ads, clean.adb, prj-dect.adb, prj-dect.ads, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, prj-makr.adb (Set_In_Configuration, In_Configuration): Removed. Replaced by an extra parameter Is_Config_File in several parameter to avoid global variables to store the state of the parser. From-SVN: r146955
2009-04-29[multiple changes]Arnaud Charlet1-137/+106
2009-04-29 Arnaud Charlet <charlet@adacore.com> * s-taskin.adb (Initialize): Remove pragma Warnings Off and remove unused assignment. 2009-04-29 Thomas Quinot <quinot@adacore.com> * make.adb: Minor reformatting. Minor code reorganization throughout. 2009-04-29 Matteo Bordin <bordin@adacore.com> * s-stausa.ads: Changed visibility of type Task_Result: moved to public part to give application visibility over it. This is for future improvement and to build a public API on top of it. Changed record components name of type Task_Result to reflect the new way of reporting. * s-stausa.adb: Actual_Size_Str changed to reflect the new way of reporting Stack usage. * gnat_ugn.texi: Update doc of stack usage report. * g-tastus.ads, s-stusta.ads, s-stusta.adb: New files. * Makefile.rtl: Add new run-time files. From-SVN: r146942
2009-04-29[multiple changes]Arnaud Charlet1-1/+1
2009-04-29 Robert Dewar <dewar@adacore.com> * rtsfind.adb, prj-env.adb: Minor reformatting Minor code reorganization 2009-04-29 Emmanuel Briot <briot@adacore.com> * make.adb: Fix comment * prj.adb (Ultimate_Extending_Project_Of): Fix handling when no project is given as argument, as might happen in gnatmake. From-SVN: r146935
2009-04-29[multiple changes]Arnaud Charlet1-362/+298
2009-04-29 Bob Duff <duff@adacore.com> * exp_ch7.adb (Build_Final_List): For an access type that designates a Taft Amendment type, if the access type needs finalization, make sure the implicit with clause for List_Controller occurs on the package spec. * rtsfind.adb (Text_IO_Kludge): Fine tune the creation of implicit with's created for the pseudo-children of Text_IO and friends. In particular, avoid cycles, such as Ada.Wide_Text_IO.Integer_IO and Ada.Text_IO.Integer_IO both with-ing each other. * sem.adb (Walk_Library_Items): Suppress assertion failure in certain oddball cases when pragma Extend_System is used. * sem_ch12.adb (Get_Associated_Node): Prevent direct 'with' cycles in the case where a package spec instantiates a generic whose body with's this package, so Walk_Library_Items won't complain about cyclic with's. 2009-04-29 Emmanuel Briot <briot@adacore.com> * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, prj-pp.adb, prj-pp.ads, makeutl.adb, clean.adb, prj-nmsc.adb, mlib-tgt.adb, mlib-tgt.ads, prj-util.adb, prj-env.adb, prj-env.ads (Project_Id): now a real pointer to Project_Data, instead of an index into the Projects_Table. This simplifies the API significantly, avoiding extra lookups in this table and the need to pass the Project_Tree_Ref parameter in several cases From-SVN: r146931
2009-04-24mlib-prj.adb, [...]: Minor reformatting.Robert Dewar1-9/+7
2009-04-24 Robert Dewar <dewar@adacore.com> * mlib-prj.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, make.adb, clean.adb: Minor reformatting. Minor code reorganization and message improvement. From-SVN: r146732
2009-04-24[multiple changes]Arnaud Charlet1-9/+6
2009-04-24 Emmanuel Briot <briot@adacore.com> * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-env.adb (Project_List_Table, Project_Element): removed. Lists of projects are now implemented via standard malloc rather than through the table. 2009-04-24 Thomas Quinot <quinot@adacore.com> * sem_ch12.adb: Minor reformatting * g-trasym.adb: Minor reformatting * exp_ch6.adb: Minor reformatting 2009-04-24 Robert Dewar <dewar@adacore.com> * layout.adb (Layout_Type): For packed array type, copy unset size/alignment fields from the referenced Packed_Array_Type. 2009-04-24 Bob Duff <duff@adacore.com> * lib-load.adb (Make_Instance_Unit): Revert previous change, no longer needed after sem_ch12 changes. * sem.adb (Walk_Library_Items): Include with's in some debugging printouts. From-SVN: r146727
2009-04-24[multiple changes]Arnaud Charlet1-3/+4
2009-04-24 Emmanuel Briot <briot@adacore.com> * prj.ads, prj-nmsc.adb (Unit_Project): removed, since in fact we were only ever using the Project field. 2009-04-24 Ed Schonberg <schonberg@adacore.com> * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Do not set Body_Required on the generated compilation node. The new node is linked to its body, but both share the same file, so we do not set this flag on the new unit so as not to create a spurious dependency on a non-existent body in the ali file for the instance. 2009-04-24 Robert Dewar <dewar@adacore.com> * make.adb: Minor reformatting From-SVN: r146725
2009-04-242009-04-24 Emmanuel Briot <briot@adacore.com>Emmanuel Briot1-27/+19
* make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads: (Project_Data.Dir_Path): field removed, since it can be computed directly from .Directory, and is needed only once when processing the project is buildgpr.adb or make.adb From-SVN: r146719
2009-04-24[multiple changes]Arnaud Charlet1-6/+14
2009-04-24 Arnaud Charlet <charlet@adacore.com> * mlib-prj.adb: Use friendlier english identifier. * gnatcmd.adb, make.adb: Use better english identifiers. 2009-04-24 Robert Dewar <dewar@adacore.com> * clean.adb: Minor reformatting From-SVN: r146715
2009-04-24prj-proc.adb, [...] (Project_Data.Seen): field removed.Emmanuel Briot1-140/+41
2009-04-24 Emmanuel Briot <briot@adacore.com> * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, makeutl.adb, clean.adb, prj-nmsc.adb, prj-env.adb, prj-env.ads (Project_Data.Seen): field removed. This is not a property of the project, just a boolean used to traverse the project tree, and storing it in the structure prevents doing multiple traversal in parallel. (Project_Data.Checked): also removed, since it was playing the same role as Seen when we had two nested loops, and this is no longer necessary (For_All_Imported_Projects): removed, since in fact there was already the equivalent in For_Every_Project_Imported. The latter was rewritten to use a local hash table instead of Project_Data.Seen Various loops were rewritten to use For_Every_Project_Imported, thus removing the need for Project_Data.Seen. This avoids a lot of code duplication From-SVN: r146699
2009-04-22make.adb, [...] (Create_Mapping_File): merge the two versions for Ada_Only ↵Emmanuel Briot1-4/+6
and Multi_Language modes... 2009-04-22 Emmanuel Briot <briot@adacore.com> * make.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj.adb, prj.ads (Create_Mapping_File): merge the two versions for Ada_Only and Multi_Language modes, to avoid code duplication. (Project_Data.Include_Language): Removed. From-SVN: r146586
2009-04-22link.c: Add flag __gnat_separate_run_path_options.Nicolas Setton1-38/+71
2009-04-22 Nicolas Setton <setton@adacore.com> * link.c: Add flag __gnat_separate_run_path_options. * mlib.adb (Separate_Run_Path_Options): New subprogram. * mlib.ads (Separate_Run_Path_Options): Declare. * gnatcmd.adb (Process_Link): Add support for emitting one "rpath" switch per directory, rather than one "rpath" switch listing all directories. * gnatlink.adb (Process_Binder_File): Likewise. * make.adb (Gnatmake): Likewise. From-SVN: r146561
2009-04-22[multiple changes]Arnaud Charlet1-2/+2
2009-04-22 Ed Schonberg <schonberg@adacore.com> * gnat1drv.adb: Fix typo 2009-04-22 Hristian Kirtchev <kirtchev@adacore.com> * exp_ch6.adb (Make_Build_In_Place_Call_In_Assignment): Code cleanup. Add a call to Move_Final_List when the target of the assignment is a return object that needs finalization and the expression is a controlled build-in-place function. 2009-04-22 Vincent Celier <celier@adacore.com> * make.adb (Gnatmake, Bind_Step): call Set_Ada_Paths with Including_Libraries set to True. From-SVN: r146560
2009-04-15[multiple changes]Arnaud Charlet1-1/+5
2009-04-15 Ed Schonberg <schonberg@adacore.com> * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit, the second is redundant, regardless of scopes. 2009-04-15 Vincent Celier <celier@adacore.com> * prj-nmsc.adb (Get_Directories): Check for sources before checking the object directory as when there are no sources, they may not be any object directory. * make.adb (Gnatmake): Do not attempt to get the path name of the exec directory, when there are no exec directory. 2009-04-15 Ed Schonberg <schonberg@adacore.com> * sem_type.adb (Remove_Conversions): In order to resolve spurious ambiguities, refine removal of universal interpretations from complex expressions with literal arguments, when some numeric operators have been declared abstract. 2009-04-15 Ed Falis <falis@adacore.com> * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity and backward compatibility for targets using probing for stack overflow 2009-04-15 Ed Schonberg <schonberg@adacore.com> * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal after any declaration, including renaming declarations. From-SVN: r146091
2009-04-10[multiple changes]Arnaud Charlet1-4/+1
2009-04-10 Robert Dewar <dewar@adacore.com> * sem_prag.adb: Minor reformatting * exp_util.adb (Make_Non_Empty_Check): New function (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check 2009-04-10 Arnaud Charlet <charlet@adacore.com> * make.adb, gnatlink.adb: Rename JGNAT toolchain. 2009-04-10 Jose Ruiz <ruiz@adacore.com> * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate tool prefix for AVR and PowerPC 55xx targets. 2009-04-10 Robert Dewar <dewar@adacore.com> * sem_warn.adb (Within_Postcondition): New function (Check_Unset_Reference): Use Within_Postcondition to stop bad warning From-SVN: r145889
2009-04-10[multiple changes]Arnaud Charlet1-3/+3
2009-04-10 Robert Dewar <dewar@adacore.com> * sem_warn.adb: Minor reformatting * make.adb: Minor reformatting. 2009-04-10 Gary Dismukes <dismukes@adacore.com> * exp_ch7.adb (Find_Final_List): When creating a finalization-chain entity and the scope is a subprogram, retrieve the Sloc of the subprogram's body rather than using the sloc of the spec, for better line-stepping behavior in gdb. (Wrap_Transient_Declaration): For the Sloc of nodes created with a list controller, use the Sloc of the first declaration of the containing list rather than that of the node that triggered creation of the list controller. From-SVN: r145887
2009-04-10[multiple changes]Arnaud Charlet1-0/+7
2009-04-10 Robert Dewar <dewar@adacore.com> * make.adb: Add comment. Minor reformatting 2009-04-10 Nicolas Setton <setton@adacore.com> * s-osprim-darwin.adb: New file. * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec. 2009-04-10 Thomas Quinot <quinot@adacore.com> * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set From-SVN: r145880
2009-04-09[multiple changes]Arnaud Charlet1-1/+2
2009-04-09 Nicolas Setton <setton@adacore.com> * s-osinte-darwin.ads: Fix wrong binding to struc timeval. * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of struct_timeval. 2009-04-09 Bob Duff <duff@adacore.com> * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in internally-generated nodes related to select statements to avoid confusing the debugger. 2009-04-09 Pascal Obry <obry@adacore.com> * make.adb: Ensure that all linker arguments are duplicated. From-SVN: r145838
2009-04-07[multiple changes]Arnaud Charlet1-43/+41
2009-04-07 Robert Dewar <dewar@adacore.com> (Osint.Fail): Change calling sequence to have one string arg (Make.Make_Failed): Same change All callers are adjusted to use concatenation 2009-04-07 Robert Dewar <dewar@adacore.com> * exp_ch4.adb: Fix documentation typo 2009-04-07 Robert Dewar <dewar@adacore.com> * tbuild.ads: Minor reformatting 2009-04-07 Javier Miranda <miranda@adacore.com> * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table when compiling under ZFP runtime. 2009-04-07 Robert Dewar <dewar@adacore.com> * g-comlin.adb: Minor reformatting 2009-04-07 Thomas Quinot <quinot@adacore.com> * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads: Remove dynamic allocation of Fd_Set in Socket_Set_Type objects. From-SVN: r145678