summaryrefslogtreecommitdiff
path: root/gcc/ada
Commit message (Collapse)AuthorAgeFilesLines
* 2009-06-24 Javier Miranda <miranda@adacore.com>charlet2009-06-244-14/+51
| | | | | | | | | | | | | | | | | | | | | * exp_ch4.adb (Expand_N_Type_Conversion): return immediately from processing the type conversion when the node is replaced by an N_Raise_Program_Error node. 2009-06-24 Hristian Kirtchev <kirtchev@adacore.com> * sem_ch6.adb (Designates_From_With_Type): New routine. (Process_Formals): Since anonymous access types are no longer flagged as from with types, traverse the designated type to determine whether it is coming from a limited view. * sem_res.adb: Remove with and use clauses for Sem_Ch10. (Full_Designated_Type): Use Available_View to extract the non-limited / full view of a type. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148899 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-24 Robert Dewar <dewar@adacore.com>charlet2009-06-245-28/+47
| | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148898 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-24 Eric Botcazou <ebotcazou@adacore.com>charlet2009-06-244-5/+55
| | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148897 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc-interface/utils.c (handle_vector_size_attribute): Import fromhainque2009-06-232-1/+93
| | | | | | | | c-common.c and populate in gnat_internal_attribute_table. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148849 138bc75d-0d04-0410-961f-82ee72b054a4
* Minor reformatting.charlet2009-06-232-10/+10
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148847 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-23 Ed Schonberg <schonberg@adacore.com>charlet2009-06-235-127/+156
| | | | | | | | | | | | | | | | | | | | * sem_res.adb (Valid_Conversion, Full_Designated_Type): Use Available_View only when designated type of an anonymous access type is limited view. 2009-06-23 Robert Dewar <dewar@adacore.com> * sem_ch10.adb: Minor reformatting * gnat1drv.adb (Adjust_Global_Switches): New procedure (take care of turning off inlining if ASIS mode active). * switch-c.adb: Remove fiddling with Inspector_Mode and ASIS_Mode This belongs in gnat1drv.adb after switches are scanned. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148846 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-23 Hristian Kirtchev <kirtchev@adacore.com>charlet2009-06-236-81/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sem_attr.adb: Add with and use clauses for Sem_Ch10. (Check_Not_Incomplete_Type): Minor reformatting. Retrieve the root type when dealing with class-wide types. Detect a legal shadow entity and retrieve its non-limited view. * sem_ch10.adb (Has_With_Clause): Move the spec and body of the subprogram to top package level from Intall_Limited_Withed_Unit. (Install_Limited_Withed_Unit): Remove spec and body of Has_With_Clause. Add check which prevents the installation of a limited view if the non-limited view is already visible through a with clause. (Is_Legal_Shadow_Entity_In_Body): New routine. Detect a residual, but legal shadow entity which may occur in subprogram formals of anonymous access type. * sem_ch10.ads (Is_Legal_Shadow_Entity_In_Body): New routine. * sem_ch3.adb (Access_Definition): Remove the propagation of flag From_With_Type from the designated type to the generated anonymous access type. Remove associated comment. * sem_res.adb Add with and use clauses for Sem_Ch10. (Full_Designated_Type): Detect a legal shadow entity and retrieve its non-limited view. Since the shadow entity may replace a regular incomplete type, return the available full view. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148844 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-23 Ed Schonberg <schonberg@adacore.com>charlet2009-06-238-76/+92
| | | | | | | | | | | | | | | | * sem_ch10.adb (Remove_Limited_With_Clause): Clean up code that handles incomplete type declarations. Previous code was potentially quadratic in the number of visible declarations in any package appearing in a limited_with_clause. 2009-06-23 Robert Dewar <dewar@adacore.com> * prj-conf.ads, prj-part.adb, prj-proc.adb, prj-proc.ads, sem_ch8.adb, xref_lib.adb: Minor reformatting git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148843 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-23 Robert Dewar <dewar@adacore.com>charlet2009-06-232-0/+41
| | | | | | | | | * a-stzhas.adb: Provide dummy body to avoid build problems with old versions which did have a body for this unit. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148842 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-23 Vincent Celier <celier@adacore.com>charlet2009-06-237-42/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * prj-attr.adb: Attribute names Initial_Required_Switches and Final_Required_Switches changed to Leading_Required_Switches and Trailing_Required_Switches. * prj-nmsc.adb (Process_Compiler): Attribute names Initial_Required_Switches and Final_Required_Switches changed to Leading_Required_Switches and Trailing_Required_Switches. * prj.ads (Language_Config): Component Initial_Required_Switches and Final_Required_Switches changed to Leading_Required_Switches and Trailing_Required_Switches. * snames.ads-tmpl: Remove standard names Initial_Required_Switches and Final_Required_Switches; add standard names Leading_Required_Switches and Trailing_Required_Switches. 2009-06-23 Thomas Quinot <quinot@adacore.com> * prj-conf.adb: Minor reformatting * xref_lib.adb: Minor cleanup git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148840 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-23 Emmanuel Briot <briot@adacore.com>charlet2009-06-238-36/+95
| | | | | | | | | | | | | | | | | | * prj-proc.adb, prj-proc.ads, prj-nmsc.adb, prj-nmsc.ads, prj-conf.adb, prj-conf.ads (Check_Configuration): New parameter Compiler_Driver_Mandatory. 2009-06-23 Ed Schonberg <schonberg@adacore.com> * sem_ch10.adb (Analyze_With_Clause): If a subprogram instance in the context of the current unit has an inline pragma, the instance is not rewritten as the declaration of the package wrapper. Handle both possibilities when retrieving the visible subprogram that renames the instantiation itself. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148839 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-23 Javier Miranda <miranda@adacore.com>charlet2009-06-2312-86/+225
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * exp_ch4.adb (Displace_Allocator_Pointer, Expand_N_Allocator): Handle designated types referencing entities from the limited view. 2009-06-23 Matthew Gingell <gingell@adacore.com> * a-stzhas.ads, a-szfzha.ads: Fix typo. * Makefile.rtl: Ada.Strings.Wide_Wide_Fixed.Wide_Wide_Hash depends on Ada.Strings.Wide_Wide_Hash. So we need to include a-stzhas in the list of RTS files. 2009-06-23 Thomas Quinot <quinot@adacore.com> * ali.adb: Minor reformatting 2009-06-23 Ed Schonberg <schonberg@adacore.com> * sem_ch8.adb: Improve error message. 2009-06-23 Emmanuel Briot <briot@adacore.com> * prj-nmsc.adb: Minor reformating * prj-conf.adb, prj-conf.ads: Remove use of Osint.Fail everywhere (Do_Autoconf): accepts an empty Normalized_Hostname (Process_Project_And_Apply_Config): New subprogram (Parse_Project_And_Apply_Config): On_Load_Config now applies to the project tree rather than the project view. * prj-part.adb, prj.ads (Project_Qualifier): New possible value Configuration. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148838 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-23 Robert Dewar <dewar@adacore.com>charlet2009-06-2311-115/+178
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * s-strhas.adb, s-strhas.ads: Restrict to 32-bit modular types * s-imgdec.adb (Set_Decimal_Digits): Fix error of too many digits for small values * prj-conf.ads: Minor reformatting * prj-conf.adb: Minor reformatting 2009-06-23 Vasiliy Fofanov <fofanov@adacore.com> * g-debpoo.adb (Dump_Gnatmem): Output dummy timestamps for allocations to correspond to the log format that gnatmem now expects. 2009-06-23 Vincent Celier <celier@adacore.com> * prj-attr.adb: New attributes Initial_Required_Switches, Final_Required_Switches and Object_File_Switches * prj-nmsc.adb (Process_Compiler): Process new attributes Name_Final_Required_Switches, Name_Initial_Required_Switches and Name_Object_File_Switches. * prj.ads (Language_Config): New component Compiler_Initial_Required_Switches (replace Compiler_Required_Switches), Compiler_Final_Required_Switches and Object_File_Switches. * snames.ads-tmpl: New standard names Initial_Required_Switches, Final_Required_Switches and Object_File_Switches git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148837 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-23 Pascal Obry <obry@adacore.com>charlet2009-06-234-12/+39
| | | | | | | | | | | | | * s-strhas.adb, s-strhas.ads: Minor reformatting. 2009-06-23 Ed Schonberg <schonberg@adacore.com> * sem_ch10.adb (Install_Limited_Withed_Unit): a null procedure does not indicate that the enclosing unit needs a body. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148836 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-23 Emmanuel Briot <briot@adacore.com>charlet2009-06-233-0/+1204
| | | | | | | | * prj-conf.ads, prj-conf.adb: New files part of the project manager. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148835 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-23 Ed Schonberg <schonberg@adacore.com>charlet2009-06-232-1/+29
| | | | | | | | | | | | * sem_ch3.adb (Derive_Subprogram): If the inherited subprogram is a primitive equality include it with its source name even if the operation is currently invisible, to make sure that the corresponding slot in the dispatch table is reserved for the internal equality subsequently generated during expansion. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148834 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.rtl, a-stwiha.adb: Add a-stwiha.adb back.charlet2009-06-233-0/+45
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148833 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-22 Jose Ruiz <ruiz@adacore.com>charlet2009-06-227-84/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sysdep.c (__gnat_localtime_tzoff for RTX): SystemTimeToTzSpecificLocalTime is not supported by RTX. Use GetTimeZoneInformation instead. 2009-06-22 Robert Dewar <dewar@adacore.com> * sem_res.adb (Check_No_Direct_Boolean_Operators): New procedure 2009-06-22 Ed Schonberg <schonberg@adacore.com> * sem_ch12.adb (Collect_Previous_Instances): Do not collect instantiations declared in a previous generic package body. 2009-06-22 Robert Dewar <dewar@adacore.com> * gnat_rm.texi: Add doc that X=True and X=False is allowed for the restriction No_Direct_Boolean_Operators. 2009-06-22 Thomas Quinot <quinot@adacore.com> * bindusg.adb: Minor fixes to gnatbind usage message * sem_eval.adb: Minor reformatting git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148794 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-22 Javier Miranda <miranda@adacore.com>charlet2009-06-225-23/+57
| | | | | | | | | | | | | | | | | | | | | | | | * sem_ch3.adb (Analyze_Object_Declaration, Freeze_Entity): Move to the freezing point the check on the use of abstract types in object declarations. Done to allow the declaration of C++ imported variables or constants whose type corresponds with an imported C++ classes for which the constructor is not imported. 2009-06-22 Thomas Quinot <quinot@adacore.com> * sem_ch6.adb: Minor reformatting 2009-06-22 Ed Schonberg <schonberg@adacore.com> * exp_ch3.adb (Build_Initialization_Call): If a discriminated record component is constrained with an expression rather than with a discriminant of the enclosing type, use that expression when building the call to default-initialize the component, when the call is part of an aggregate with box initialization. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148793 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-22 Ed Schonberg <schonberg@adacore.com>charlet2009-06-224-11/+44
| | | | | | | | | | | | | | | | | | | | | * sem_ch6.adb (Check_Overriding_Indicator): Clean up code, make warning unconditional rather than a style check, because a formal name out of order is suspicious. 2009-06-22 Vincent Celier <celier@adacore.com> * prj-nmsc.adb (Locate_Directory): Indicate the project name when creating a directory automatically. 2009-06-22 Eric Botcazou <ebotcazou@adacore.com> * sem_ch3.adb (Create_Constrained_Components): For a subtype of an untagged derived type, add a hidden component for every constrained discriminant of the parent type to keep record layout consistent. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148792 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-22 Thomas Quinot <quinot@adacore.com>charlet2009-06-2221-463/+470
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * exp_ch3.adb: Minor code reorganization (avoid an unnecessary tree copy). 2009-06-22 Ed Falis <falis@adacore.com> * sysdep.c: remove include for nfsLib.h and an NFS specific error message for VxWorks 653 vThreads: not supported by the OS. * gsocket.h: disable sockets for VxWorks 653 vThreads. 2009-06-22 Robert Dewar <dewar@adacore.com> * sem_ch6.adb: Add ??? comment for bad use of Style_Check 2009-06-22 Matthew Gingell <gingell@adacore.com> Arnaud Charlet <charlet@adacore.com> * a-stzhas.adb, a-stwiha.adb, impunit.adb, a-swbwha.adb, a-shcain.adb, s-htable.adb, a-szuzha.adb, a-stunha.adb, a-stboha.adb, a-strhas.adb, g-spitbo.adb, s-strhas.adb, a-szbzha.adb, s-strhas.ads, Makefile.rtl, a-swuwha.adb: New unit System.String_Hash. Refactor redundant cut and pasted hash functions with instances of a new generic hash function. Implement a new string hashing algorithm which appears in testing to be move effective than to previous approach. * gcc-interface/Make-lang.in: Update dependencies. * gcc-interface/Makefile.in: Reindent correctly vms targets. Fix setting of TOOLS_TARGET_PAIRS for bare board platforms. Disable socket support for Vxworks 653 vThreads. Improve handling of signals on darwin. (GNATMAKE_OBJS): Update dependencies. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148789 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-22 Robert Dewar <dewar@adacore.com>charlet2009-06-229-291/+189
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sinput.adb, sinput.ads (Expr_First_Char, Expr_Last_Char): Replaced by Sloc_Range. * freeze.adb: Minor comment updates * s-valrea.adb (Bad_Based_Value): New procedure (Scan_Real): Raise exceptions with messages 2009-06-22 Matthew Gingell <gingell@adacore.com> * adaint.h: Complete previous change. 2009-06-22 Thomas Quinot <quinot@adacore.com> * exp_ch7.ads, exp_ch3.adb: Minor reformatting 2009-06-22 Ed Schonberg <schonberg@adacore.com> * sem_ch6.adb (Check_Overriding_Indicator): When style checks are enabled, emit warning when a non-controlling argument of the overriding operation appears out of place vis-a-vis of the formal of the overridden operation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148782 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-22 Vincent Celier <celier@adacore.com>charlet2009-06-227-112/+170
| | | | | | | | | | | | | | | | | | | | | | | * gnatcmd.adb (Check_Files): Close temporary files after all file names have been written into it. 2009-06-22 Matthew Gingell <gingell@adacore.com> * adaint.c, adaint.h, cstreams.c: Call stat64 on platforms where it is available. 2009-06-22 Thomas Quinot <quinot@adacore.com> * sem_disp.adb (Check_Direct_Call): Handle the case where the full view of the root type is visible at the point of the call. 2009-06-22 Pat Rogers <rogers@adacore.com> * gnat_ugn.texi: Revised a sentence to correct a minor grammar error. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148781 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-22 Jerome Lambourg <lambourg@adacore.com>charlet2009-06-222-0/+12
| | | | | | | | * freeze.adb: Add comments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148779 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-21 Thomas Quinot <quinot@adacore.com>charlet2009-06-219-35/+145
| | | | | | | | | | | | | | | | | | | | | | | * exp_ch3.adb, exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb, sem_ch13.adb, sem_elab.adb (Exp_Prag.Expand_Pragma_Import_Or_Interface): Factor out code to new subprogram... (Exp_Util.Find_Init_Call): New shared routine to find the init proc call for a default initialized variable. (Freeze.Check_Address_Clause): Do not reset Has_Delayed_Freeze on an entity that has an associated freeze node. (Sem_Ch13.Analyze_Attribute_Definition_Clause, case Address): If there is an init call for the object, defer it to the object freeze point. (Check_Elab_Call.Find_Init_Call): Rename to Check_Init_Call, to avoid name clash with new subprogram introduced in Exp_Util. 2009-06-21 Robert Dewar <dewar@adacore.com> * einfo.ads: Minor reformatting git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148764 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-21 Ed Falis <falis@adacore.com>charlet2009-06-216-69/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * env.c (__gnat_environ): return NULL for vThreads - unimplemented 2009-06-21 Eric Botcazou <ebotcazou@adacore.com> * einfo.ads: Update comments. 2009-06-21 Hristian Kirtchev <kirtchev@adacore.com> * sem_disp.adb (Check_Direct_Call): New routine. Dispatching calls where the controlling formal is of private class-wide type whose completion is a synchronized type can be converted into direct calls. 2009-06-21 Vincent Celier <celier@adacore.com> * gnatcmd.adb (Check_Files): When all sources of the project are to be indicated to gnatcheck, gnatpp or gnatmetric, always specify the list of sources using -files=, so that the distinction can be made by the tool of a call with no source (to display the usage) from a call with a project file that contains no source. 2009-06-21 Jerome Lambourg <lambourg@adacore.com> * exp_ch3.adb (Build_Array_Init_Proc): Do not build the init proc in case of VM convention arrays. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148763 138bc75d-0d04-0410-961f-82ee72b054a4
* * a-nudira.adb: Minor reformattingcharlet2009-06-202-3/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148746 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-20 Ed Schonberg <schonberg@adacore.com>charlet2009-06-205-32/+58
| | | | | | | | | | | | | | | | | | | | | * exp_ch3.adb (Build_Record_Init_Proc): When copying initial expressions (possibly from a parent type) indicate that the scope of the new itypes is the initialization procedure being built. 2009-06-20 Robert Dewar <dewar@adacore.com> * a-nudira.adb (Fits_In_32_Bits): New name (inverted sense) for Needs_64, and now computed without anomolies for some dynamic types. 2009-06-20 Thomas Quinot <quinot@adacore.com> * sem_prag.adb: Minor reformatting * exp_disp.ads: Minor reformatting git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148745 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-20 Ed Schonberg <schonberg@adacore.com>charlet2009-06-203-25/+35
| | | | | | | | | | | | * sem_ch3.adb (Is_OK_For_Limited_Init): An unchecked conversion of a function call is a legal expression to initialize a limited object. * exp_ch3.adb: Rename various freeze operations that perform expansion actions, to prevent confusion with subprograms in the freeze package. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148744 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-20 Ed Schonberg <schonberg@adacore.com>charlet2009-06-207-77/+167
| | | | | | | | | | | | | | | | | | | | | | | | * sem.adb (Walk_Library_Units): Check instantiations first. * sem_ch6.adb (Analyze_Subprogram_Declaration): Mark a subprogram as a private primitive if it is a function with a controlling result that is a type extension with progenitors. * exp_ch9.adb (Build_Wrapper_Spec, Build_Wrapper_Body): Handle properly a primitive operation of a synchronized tagged type that has a controlling result. 2009-06-20 Thomas Quinot <quinot@adacore.com> * einfo.ads: Fix typo. 2009-06-20 Ed Falis <falis@adacore.com> * s-vxwext.ads, s-vxwext-kernel.adb: Complete previous change. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148743 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc-interface/trans.c (emit_check): Do not wrap up the resultebotcazou2009-06-192-6/+16
| | | | | | | | in a SAVE_EXPR. (protect_multiple_eval): Always protect complex expressions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148723 138bc75d-0d04-0410-961f-82ee72b054a4
* Update comments.charlet2009-06-191-10/+11
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148703 138bc75d-0d04-0410-961f-82ee72b054a4
* Minor reformatting.charlet2009-06-191-9/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148702 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-19 Emmanuel Briot <briot@adacore.com>charlet2009-06-198-151/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * prj-ext.adb, makeutl.adb, makeutl.ads (Executable_Prefix_Path): Now make sure we always return a name ending with a path separator. 2009-06-19 Javier Miranda <miranda@adacore.com> * sem_ch12.adb (Instantiate_Package_Body, Instantiate_Subprogram_Body): Save and restore the visibility of the parent when installed. 2009-06-19 Jose Ruiz <ruiz@adacore.com> * s-tposen.ads (Protection_Entry): Replace fields L, Ceiling, and Owner by Common which contains all these fields. * s-tposen.adb (Initialize_Protection_Entry, Lock_Entry, Lock_Read_Only_Entry, Timed_Protected_Single_Entry_Call, Unlock_Entry): Remove code duplication in this package by means of calling the equivalent code in s-taprob. 2009-06-19 Robert Dewar <dewar@adacore.com> * a-einuoc.ads: Minor reformatting git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148701 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-19 Ed Falis <falis@adacore.com>charlet2009-06-197-9/+40
| | | | | | | | | * a-einuoc.ads, s-osinte-vxworks.ads, s-vxwext.ads, s-vxwext-kernel.adb, s-vxwext-kernel.ads, s-vxwext-rtp.ads: Code clean up. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148698 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>charlet2009-06-197-130/+339
| | | | | | | | | | | | | | | | | | | | | | * einfo.ads (Handling of Type'Size Values): Fix Object_Size values. 2009-06-19 Robert Dewar <dewar@adacore.com> * a-nudira.adb (Need_64): Handle negative ranges and also dynamic ranges * checks.adb (Determine_Range): Move the test for generic types later. * sem_eval.adb (Compile_Time_Compare): Improve circuitry to catch more cases. (Eval_Relational_Op): Fold more cases including string compares * sem_util.ads, sem_util.adb (References_Generic_Formal_Type): New function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148697 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-19 Robert Dewar <dewar@adacore.com>charlet2009-06-196-57/+75
| | | | | | | | | | | | | | | | | | | * sem_type.ads, sem_ch12.adb: Minor reformatting * s-wchcnv.adb (UTF_32_To_Char_Sequence): Handle invalid data properly 2009-06-19 Ed Schonberg <schonberg@adacore.com> * exp_ch9.adb (Build_Wrapper_Spec): Handle properly an overridden primitive operation of a rivate extension whose controlling argument is an out parameter. * sem.adb (Walk_Library_Units): exclude generic package declarations from check. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148696 138bc75d-0d04-0410-961f-82ee72b054a4
* * sem.adb (Walk_Library_Items): Include bodies in the list of units tocharlet2009-06-191-17/+21
| | | | | | | | traverse, to account for front-end inlining and instantiations in a spec or in the main unit. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148695 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-19 Thomas Quinot <quinot@adacore.com>charlet2009-06-1914-85/+113
| | | | | | | | | | | | | | | | | | | | | | | | | * i-vxwoio.ads: Add comments 2009-06-19 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-sothco.ads (GNAT.Sockets.Thin.C_Ioctl): Rename to Socket_Ioctl. (GNAT.Sockets.Thin.Socket_Ioctl): Use new function Thin_Common.Socket_Ioctl. (GNAT.Sockets.Thin_Common.Socket_Ioctl): Binding to new C wrapper __gnat_socket_ioctl. (__gnat_socket_ioctl): Wrapper for ioctl(2) called with a single int* argument after the file descriptor and request code. 2009-06-19 Robert Dewar <dewar@adacore.com> * checks.adb: Minor reformatting git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148694 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-19 Jose Ruiz <ruiz@adacore.com>charlet2009-06-196-200/+236
| | | | | | | | | | | | | | | | | | | | | | | * env.c (__gnat_environ): RTX does not support this functionality. 2009-06-19 Sergey Rybin <rybin@adacore.com> * gnat_ugn.texi, vms_data.ads: Fix VMS qualifiers. 2009-06-19 Ed Schonberg <schonberg@adacore.com> * sem.adb (Walk_Library_Items): Include bodies in the list of units to traverse, to account for front-end inlining and instantiations in a spec or in the main unit. 2009-06-19 Robert Dewar <dewar@adacore.com> * checks.adb (Determine_Range): Do not attempt to get range of generic type. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148693 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-19 Sergey Rybin <rybin@adacore.com>charlet2009-06-193-0/+18
| | | | | | | | | | * gnat_ugn.texi, vms_data.ads: Add the documentation for the new gnatmetric option for generating the schema file for gnatmetric XML output. Add corresponding VMS qualifier. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148692 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-19 Robert Dewar <dewar@adacore.com>charlet2009-06-195-34/+46
| | | | | | | | | | | | | | | | | | | | | * g-cgi.adb: Minor reformatting 2009-06-19 Eric Botcazou <ebotcazou@adacore.com> * s-intman-solaris.adb (Notify_Exception): Do not discriminate on the signal code for SIGFPE and raise Program_Error for SIGILL. * s-osinte-solaris.ads: Remove signal code constants for SIGFPE. 2009-06-19 Ed Schonberg <schonberg@adacore.com> * sem_ch8.adb (Nvis_Messages): Do not list an entity declared in a generic package if there is a visibility candidate that is declared in a regular package. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148691 138bc75d-0d04-0410-961f-82ee72b054a4
* * system-aix64.ads: New file.hainque2009-06-183-2/+179
| | | | | | | | | * gcc-interface/Makefile.in (aix LIBGNAT_TARGET_PAIRS): Use the 64bit system.ads for ppc64 multilib variants. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148659 138bc75d-0d04-0410-961f-82ee72b054a4
* Relax constraints on Machine_Attribute argument types:hainque2009-06-174-34/+64
| | | | | | | | | | | | | | | | * sem_prag.adb (Check_Arg_Is_Static_Expression): Allow for missing type. (Analyze_Attribute, case Machine_Attribute): Allow any type for arg 3. * gcc-interface/decl.c (prepend_attributes): Accept static expressions of any type as attribute arguments, not only string literals. * gnat_rm.texi (pragma Machine_Attribute section): Adjust to reflect the relaxation of the restriction on the Info argument type. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148589 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix nitsebotcazou2009-06-131-4/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148460 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc-interface/utils.c (record_builtin_type): Pass locationaldyh2009-06-134-18/+52
| | | | | | | | | | | | | | | | | | | | | | | argument to build_decl. (create_type_stub_decl): Same. (create_type_decl): Same. (create_var_decl_1): Same. (create_field_decl): Same. (create_param_decl): Same. (create_label_decl): Same. (build_decl): Same. (create_subprog_decl): Same. * gcc-interface/decl.c (gnat_to_gnu_entity): Same. * gcc-interface/trans.c (Case_Statement_to_gnu): Pass location argument to create_artificial_label. (Case_Statement_to_gnu): Same. (Loop_Statement_to_gnu): Same. (Subprogram_Body_to_gnu): Same. (gnat_gimplify_stmt): Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148459 138bc75d-0d04-0410-961f-82ee72b054a4
* * common.opt (gdwarf-): Accept a version number.rth2009-06-122-17/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/invoke.texi (gdwarf-): Update docs. * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus. * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf version level, and record it. * dwarf2.h (DW_CIE_VERSION): Remove. * dwarf2out.c (DWARF_VERSION): Remove. (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3. (output_call_frame_info): Use CIE version 3 for dwarf3, or if the return register column is out of range for version 1. (dwarf_stack_op_name): Add all dwarf3 values. (DEBUG_PUBTYPES_SECTION): New. (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr encoding change for dwarf3. (output_die) [dw_val_class_die_ref]: Likewise. (output_compilation_unit_header): Emit correct version for dwarf3. (output_line_info): Likewise. (output_pubnames): Update for DWARF_VERSION removal. (output_aranges): Likewise. (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3. (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION. (dwarf2out_finish): Likewise. ada/ * gcc-interface/misc.c (gnat_handle_option): Rename OPT_gdwarf_ to OPT_gdwarfplus. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148408 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-06-11 Ed Schonberg <schonberg@adacore.com>charlet2009-06-1110-17/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sem_attr.adb (Resolve_Attribute, case 'access): Add missing accessibiliy check on access_to_subprogram in the context of an anonymous access that is not an access parameter. 2009-06-11 Eric Botcazou <ebotcazou@adacore.com> * tracebak.c (i386 section): Define IS_BAD_PTR on Solaris. 2009-06-11 Quentin Ochem <ochem@adacore.com> * sem_warn.adb, scng.adb, sfn_scan.adb, freeze.adb: Add CODEFIX comments for message handled by GPS. 2009-06-11 Matthew Gingell <gingell@adacore.com> * adaint.c: Use fopen64 instead of fopen on platforms where we know it's supported. 2009-06-11 Pascal Obry <obry@adacore.com> * g-cgi.ads: Fix comment typo. * g-cgi.adb: Properly decode "+" in CGI parameters as spaces. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148392 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Useebotcazou2009-06-102-67/+86
| | | | | | | | | | | | | | | | | a reference to the original type for the type of the field of the XVS type. (maybe_pad_type): Likewise. * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Factor common predicate and remove redundant setting of TYPE_BY_REFERENCE_P. Pass correctly typed arguments to create_field_decl. <E_Record_Subtype>: Set BLKmode for tagged and limited types in the case of contrained discriminants as well. Use the padded base type in the other case as well. Rename temporary variable. Tweak test. Factor common access pattern. Set GNU_SIZE only once. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148345 138bc75d-0d04-0410-961f-82ee72b054a4
* ada/hainque2009-06-094-195/+244
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): New helper for build_call_alloc_dealloc with arguments to be interpreted identically. Process the case where a GNAT_PROC to call is provided. (maybe_wrap_malloc): New helper for build_call_alloc_dealloc, to build and return an allocator for DATA_SIZE bytes aimed at containing a DATA_TYPE object, using the default __gnat_malloc allocator. Honor DATA_TYPE alignments greater than what the latter offers. (maybe_wrap_free): New helper for build_call_alloc_dealloc, to release a DATA_TYPE object designated by DATA_PTR using the __gnat_free entry point. (build_call_alloc_dealloc): Expect object data type instead of naked alignment constraint. Use the new helpers. (build_allocator): Remove special processing for the super-aligned case, now handled by build_call_alloc_dealloc. Pass data type instead of the former alignment argument, as expected by the new interface. * gcc-interface/gigi.h (build_call_alloc_dealloc): Adjust prototype and comment. * gcc-interface/trans.c (gnat_to_gnu) <case N_Free_Statement>: Remove special processing for the super-aligned case, now handled by build_call_alloc_dealloc. Pass data type instead of the former alignment argument, as expected by the new interface. testsuite/ * gnat.dg/align_max.adb: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148314 138bc75d-0d04-0410-961f-82ee72b054a4