summaryrefslogtreecommitdiff
path: root/gcc/ada
Commit message (Collapse)AuthorAgeFilesLines
* [multiple changes]Arnaud Charlet2009-11-3017-12/+85
| | | | | | | | | | | | | | | | | | | 2009-11-30 Arnaud Charlet <charlet@adacore.com> * s-taprop-posix.adb: Fix casing. * s-osinte-tru64.adb: Complete previous check-in. 2009-11-30 Robert Dewar <dewar@adacore.com> * gnat_rm.texi: Document pragma Compiler_Unit * s-bitops.adb, s-restri.adb, g-htable.adb, s-restri.ads, a-comlin.ads, a-strhas.ads, s-strhas.adb, s-parame.adb, s-parame.ads, a-clrefi.adb, a-clrefi.ads, a-ioexce.ads: Supply missing Compiler_Unit pragmas. * freeze.adb (Freeze_Entity): Improve message for 8-bit boolean passed to C. From-SVN: r154784
* makeutl.adb, [...]: Minor reformatting.Robert Dewar2009-11-306-150/+170
| | | | | | | | | 2009-11-30 Robert Dewar <dewar@adacore.com> * makeutl.adb, makeutl.ads, prj-proc.adb, prj.adb, prj.ads: Minor reformatting. From-SVN: r154783
* [multiple changes]Arnaud Charlet2009-11-3010-17/+239
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-11-30 Thomas Quinot <quinot@adacore.com> * osint.adb: Minor reformatting 2009-11-30 Vincent Celier <celier@adacore.com> * makeutl.ads, makeutl.adb (Base_Name_Index_For): New function to get the base name of a main without the extension, with an eventual source index. (Mains.Get_Index): New procedure to set the source index of a main (Mains.Get_Index): New function to get the source index of a main * prj-attr.adb: New attributes Config_Body_File_Name_Index, Config_Spec_File_Name_Index, Multi_Unit_Object_Separator and Multi_Unit_Switches. * prj-nmsc.adb (Process_Compiler): Takle into account new attributes Config_Body_File_Name_Index, Config_Spec_File_Name_Index, Multi_Unit_Object_Separator and Multi_Unit_Switches. Allow only one character for Multi_Unit_Object_Separator. * prj-proc.adb (Process_Declarative_Items): Take into account the source indexes in indexes of associative array attribute declarations. * prj.adb (Object_Name): New function to get the object file name for units in multi-unit sources. * prj.ads (Language_Config): New components Multi_Unit_Switches, Multi_Unit_Object_Separator Config_Body_Index and Config_Spec_Index. (Object_Name): New function to get the object file name for units in multi-unit sources. * snames.ads-tmpl: New standard names Config_Body_File_Name_Index, Config_Spec_File_Name_Index, Multi_Unit_Object_Separator and Multi_Unit_Switches. From-SVN: r154782
* [multiple changes]Arnaud Charlet2009-11-303-14/+34
| | | | | | | | | | | | 2009-11-30 Arnaud Charlet <charlet@adacore.com> * s-tassta.adb: Update comment. 2009-11-30 Robert Dewar <dewar@adacore.com> * a-ngelfu.adb: Minor code reorganization. From-SVN: r154780
* [multiple changes]Arnaud Charlet2009-11-3019-381/+270
| | | | | | | | | | | | | | | | | | 2009-11-30 Robert Dewar <dewar@adacore.com> * osint.ads, prj.adb, prj.ads: Minor reformatting * s-stchop.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-linux.adb, s-taprop-solaris.adb, s-strxdr.adb, s-taprop-irix.adb, s-osinte-hpux-dce.adb, s-osinte-tru64.adb, s-taenca.adb, s-taprop-hpux-dce.adb, s-stausa.adb, s-taprop-posix.adb: Minor code reorganization (use conditional expressions). 2009-11-30 Bob Duff <duff@adacore.com> * g-sttsne-locking.adb (Copy_Service_Entry): Complete previous change. From-SVN: r154779
* socket.c: Add more accessor functions for struct servent (need setters as ↵Bob Duff2009-11-304-12/+81
| | | | | | | | | | | | | | | well as getters). 2009-11-30 Bob Duff <duff@adacore.com> * socket.c: Add more accessor functions for struct servent (need setters as well as getters). * g-sothco.ads (Servent): Declare interfaces to C setter functions for struct servent. * g-sttsne-locking.adb (Copy_Service_Entry): Use setter functions for struct servent. From-SVN: r154777
* [multiple changes]Arnaud Charlet2009-11-307-38/+60
| | | | | | | | | | | | | | | | | 2009-11-30 Robert Dewar <dewar@adacore.com> * s-stchop-vxworks.adb: Add comment. 2009-11-30 Emmanuel Briot <briot@adacore.com> * make.adb, prj.adb, prj.ads (Compute_All_Imported_Projects): Now acts on the whole tree, to better share code with gprbuild. (Length): New subprogram, to share code in gprbuild. (Project_Data): Remove fields that are only needed when compiling a project in gprbuild (where we use local variables instead) * osint.adb, osint.ads: Added minor comment on memory management From-SVN: r154774
* [multiple changes]Arnaud Charlet2009-11-3024-171/+106
| | | | | | | | | | | | | | | | | | | | 2009-11-30 Sergey Rybin <rybin@adacore.com> * gnat_ugn.texi: Update gnatcheck doc. 2009-11-30 Robert Dewar <dewar@adacore.com> make.adb, prj-makr.adb, g-sothco.ads: Minor reformattting * s-taprop-dummy.adb: Minor code reorganization (raise with msgs start with lower case). * i-vxwoio.adb, g-dirope.adb, g-sercom-linux.adb, g-enblsp-vms-alpha.adb, g-regist.adb, s-imgcha.adb, s-tarest.adb, s-taprop-mingw.adb, g-exctra.adb, g-expect.adb, g-comlin.adb, g-debpoo.adb, g-expect-vms.adb, g-pehage.adb, g-trasym-vms-alpha.adb, g-enblsp-vms-ia64.adb, s-fatgen.adb, s-fileio.adb: Minor code reorganization (use conditional expressions). From-SVN: r154773
* [multiple changes]Arnaud Charlet2009-11-3012-44/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-11-30 Vincent Celier <celier@adacore.com> * prj-makr.adb (Source_Files): New hash table to keep track of source file names. (Finalize): Avoid putting several times the same source file name in the source list file. * prj-pp.adb (Print): Fix a bug in the placement of "at nn" for associative array indexes. 2009-11-30 Robert Dewar <dewar@adacore.com> * g-dyntab.ads: Add missing pragma Compiler_Unit 2009-11-30 Thomas Quinot <quinot@adacore.com> * s-crtrun.ads, s-crtl.ads, g-stseme.adb, Makefile.rtl, s-fileio.adb (System.CRTL.Runtime): New unit, to contain parts of s-crtl that are used in the Ada runtime but can't be used in the compiler because of bootstrap issues. * socket.c, s-oscons-tmplt.c, g-sothco.ads (System.OS_Constants.SIZEOF_struct_servent): New constant. Use s-oscons constant instead of external variable to get size of struct hostent. From-SVN: r154772
* [multiple changes]Arnaud Charlet2009-11-3015-299/+430
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-11-30 Thomas Quinot <quinot@adacore.com> * s-crtl.ads, g-stseme.adb, s-fileio.adb (System.CRTL.strerror): Change return type to Interfaces.C.Strings.chars_ptr to eliminate need for dubious unchecked conversion at call sites. * s-errrep.adb, s-errrep.ads, Makefile.rtl (System.Error_Reporting): Remove obsolete, unused runtime unit. * gcc-interface/Make-lang.in: Update dependencies. * gcc-interface/Makefile.in: Remove VMS specialization of s-crtl, not required anymore. 2009-11-30 Vincent Celier <celier@adacore.com> * gnatlink.adb: Delete an eventual existing executable file, in case it is a symbolic link, to avoid modifying the target of the symbolic link. 2009-11-30 Bob Duff <duff@adacore.com> * socket.c: Add accessor functions for struct servent. * g-sothco.ads (Servent): Declare interfaces to C accessor functions for struct servent. * g-socket.adb (To_Service_Entry): Use accessor functions for struct servent. 2009-11-30 Robert Dewar <dewar@adacore.com> * g-arrspl.adb: Minor reformatting * g-dyntab.adb: Add missing pragma Compiler_Unit From-SVN: r154769
* s-crtl.ads, [...]: Fix support for VMSThomas Quinot2009-11-306-33/+15
| | | | | | | | | 2009-11-30 Thomas Quinot <quinot@adacore.com> * s-crtl.ads, s-oscons-tmplt.c: Fix support for VMS * make.adb, g-comlin.ads, exp_ch6.adb: Minor reformatting From-SVN: r154767
* [multiple changes]Arnaud Charlet2009-11-303-154/+64
| | | | | | | | | | | | | | | | 2009-11-30 Robert Dewar <dewar@adacore.com> * g-alleve.adb: Minor code reorganization (use conditional expressions) 2009-11-30 Thomas Quinot <quinot@adacore.com> * a-tasatt.adb, s-taprop-dummy.adb (Ada.Task_Attributes.Reference): Remove unreachable code. (System.Task_Primitives.Operations.Initialize, dummy version): Use plain Program_Error rather than call to System.Error_Reporting.Shutdown. From-SVN: r154766
* (malloc32, realloc32): Remove VMS-specific routines.Arnaud Charlet2009-11-301-11/+0
| | | | From-SVN: r154764
* Minor reformatting.Arnaud Charlet2009-11-302-1/+8
| | | | From-SVN: r154763
* [multiple changes]Arnaud Charlet2009-11-3010-174/+220
| | | | | | | | | | | | | | | | | | | | | | | | 2009-11-30 Robert Dewar <dewar@adacore.com> * bcheck.adb, gnatlink.adb, make.adb, makeutl.adb, osint.adb, osint.ads, prj-ext.adb, sem_case.adb: Minor reformatting * g-alleve.adb: Minor code reorganization (use conditional expressions) 2009-11-30 Matthew Heaney <heaney@adacore.com> * a-crbtgo.adb (Delete_Fixup): Changed always-true predicates to assertions. 2009-11-30 Thomas Quinot <quinot@adacore.com> * a-tasatt.adb, s-crtl.ads, s-taprop-dummy.adb (System.CRTL.malloc32, System.CRTL.realloc32): Remove VMS-specific routines. (Ada.Task_Attributes.Reference): Remove unreachable code. (System.Task_Primitives.Operations.Initialize, dummy version): Use plain Program_Error rather than call to System.Error_Reporting.Shutdown. From-SVN: r154762
* Minor comment updates.Arnaud Charlet2009-11-303-5/+6
| | | | From-SVN: r154761
* s-oscons-tmplt.c, [...]: Add new constants in preparation for sharing s-crtl ↵Thomas Quinot2009-11-303-19/+92
| | | | | | | | | | | across all platforms. 2009-11-30 Thomas Quinot <quinot@adacore.com> * s-oscons-tmplt.c, xoscons.adb: Add new constants in preparation for sharing s-crtl across all platforms. From-SVN: r154760
* s-commun.adb, [...]: New internal support unit...Thomas Quinot2009-11-3016-94/+206
| | | | | | | | | | | | | | | | | | | 2009-11-30 Thomas Quinot <quinot@adacore.com> * s-commun.adb, s-commun.ads: New internal support unit, allowing code sharing between GNAT.Sockets and GNAT.Serial_Communication. * g-sercom.ads, g-sercom-mingw.adb, g-sercom-linux.adb, g-socket.adb (GNAT.Sockets.Last_Index): Move to System.Communication. (GNAT.Serial_Communication.Read): Handle correctly the case where no data was read, and Buffer'First = Stream_Element_Offset'First. * Makefile.rtl: Add entry for s-commun * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads, g-stseme.adb, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads (GNAT.Sockets.Thin.Socket_Error_Message): Reimplement in terms of System.CRTL.strerror. From-SVN: r154758
* utils.c (copy_type): Unshare the language-specific data and the contents of ↵Eric Botcazou2009-11-262-0/+22
| | | | | | | | | the language-specific... * gcc-interface/utils.c (copy_type): Unshare the language-specific data and the contents of the language-specific slot if needed. From-SVN: r154678
* trans.c (gnat_to_gnu): Set the source location of the operator on both ↵Eric Botcazou2009-11-262-16/+23
| | | | | | | | | branches of the test in the... * gcc-interface/trans.c (gnat_to_gnu) <N_In>: Set the source location of the operator on both branches of the test in the generic case. From-SVN: r154677
* trans.c (unchecked_conversion_lhs_nop): Rename into...Eric Botcazou2009-11-252-9/+17
| | | | | | | | * gcc-interface/trans.c (unchecked_conversion_lhs_nop): Rename into... (unchecked_conversion_nop): ...this. Handle actual parameters. (gnat_to_gnu): Adjust for above renaming. From-SVN: r154659
* decl.c (gnat_to_gnu_entity): Translate regular boolean types into BOOLEAN_TYPEs.Eric Botcazou2009-11-252-16/+24
| | | | | | | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>: Translate regular boolean types into BOOLEAN_TYPEs. From-SVN: r154658
* sem_util.adb (Set_Debug_Info_Needed): For an E_Class_Wide_Subtype, also set ↵Eric Botcazou2009-11-246-94/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | the flag on the Equivalent_Type. * sem_util.adb (Set_Debug_Info_Needed): For an E_Class_Wide_Subtype, also set the flag on the Equivalent_Type. * gcc-interface/utils.c (finish_record_type): Replace DO_NOT_FINALIZE parameter with DEBUG_INFO_P. Rename FIELDLIST into FIELD_LIST. (rest_of_record_type_compilation): Rename FIELDLIST into FIELD_LIST. (build_vms_descriptor32): Adjust call to finish_record_type. (build_vms_descriptor): Likewise. (build_unc_object_type): Likewise. * decl.c (gnat_to_gnu_entity): Adjust calls to finish_record_type and components_to_record. (make_packable_type): Adjust call to finish_record_type. (maybe_pad_type): Likewise. Tweak condition. (components_to_record): Likewise. Replace DO_NOT_FINALIZE parameter with MAYBE_UNUSED. Adjust recursive call. (create_variant_part_from): Adjust call to finish_record_type. Do not call rest_of_record_type_compilation on the new record types. * trans.c (gigi): Adjust call to finish_record_type. * gigi.h (finish_record_type): Adjust prototype and comment. (rest_of_record_type_compilation): Adjust comment. From-SVN: r154515
* exp_util.adb (Make_CW_Equivalent_Type): Do not mark the type as frozen for ↵Eric Botcazou2009-11-249-54/+39
| | | | | | | | | | | | | | | | | | | | | | | | targets that do not require front-end layout. * exp_util.adb (Make_CW_Equivalent_Type): Do not mark the type as frozen for targets that do not require front-end layout. (New_Class_Wide_Subtype): Always reset the freezing status to False. * exp_ch8.adb: Do not 'with' Targparm. (Expand_N_Object_Renaming_Declaration): Always freeze a class-wide subtype that has been built from the expression. * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is class wide, freeze the implicit type that has been built from the expression at the dereference point. * freeze.adb (Freeze_Entity): Adjust comment. * gcc-interface/decl.c (Gigi_Equivalent_Type) <E_Class_Wide_Type>: Remove useless test. * gcc-interface/trans.c (process_freeze_entity): Do not special-case class-wide subtypes. * s-osinte-aix.adb (clock_gettime): Fix comment. * s-osinte-darwin.adb (clock_gettime): Likewise. From-SVN: r154514
* Fix nitsEric Botcazou2009-11-231-29/+28
| | | | From-SVN: r154459
* decl.c (gnat_to_gnu_entity): Pass the list of attributes when building the ↵Eric Botcazou2009-11-233-5/+14
| | | | | | | | | | | corresponding variable of a constant. * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Pass the list of attributes when building the corresponding variable of a constant. * gcc-interface/utils.c (create_var_decl_1): Do not process attributes for constants. From-SVN: r154458
* re PR ada/42153 (s-osinte.adb:46:21: missing body for "To_Duration" declared ↵Eric Botcazou2009-11-2317-330/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | at s-osinte.ads:216) 2009-11-23 Eric Botcazou <ebotcazou@adacore.com> Laurent GUERBY <laurent@guerby.net> PR ada/42153 * s-osinte-linux.ads (struct_timeval): Delete. * s-osinte-hpux.ads (struct_timeval, To_Duration, To_Timeval): Delete. * s-osinte-kfreebsd-gnu.ads: Likewise. * s-osinte-rtems.ads: Likewise. * s-osinte-aix.ads: Likewise. * s-osinte-hpux-dce.ads: Likewise. * s-osinte-darwin.ads: Likewise. * s-osinte-solaris-posix.ads: Likewise. * s-osinte-irix.ads: Likewise. * s-osinte-solaris.ads: Likewise. * s-osinte-hpux-dce.adb (To_Duration, To_Timeval): Delete. * s-osinte-irix.adb: Likewise. * s-osinte-solaris.adb: Likewise. * s-osinte-rtems.adb: Likewise. Minor reformatting. * s-osinte-aix.adb (To_Duration, To_Timeval): Delete. (clock_gettime): Use cal.c timeval_to_duration. * s-osinte-darwin.adb: Likewise. Co-Authored-By: Laurent GUERBY <laurent@guerby.net> From-SVN: r154446
* * adaint.h: Assume large file support on IRIX only if _LFAPI.Rainer Orth2009-11-232-1/+5
| | | | From-SVN: r154442
* s-osinte-linux.ads (struct_timeval, [...]): Delete.Eric Botcazou2009-11-215-69/+54
| | | | | | | | | | | | | | | | | | 2009-11-21 Eric Botcazou <ebotcazou@adacore.com> Laurent GUERBY <laurent@guerby.net> * s-osinte-linux.ads (struct_timeval, To_Duration, To_Timeval, gettimeofday): Delete. * s-osinte-posix.adb (To_Duration, To_Timeval): Delete. * s-osprim-posix.adb (struct_timezone, struct_timeval, gettimeofday): Delete. (Clock): Use cal.c timeval_to_duration. * s-taprop-linux.adb (Monotonic_Clock): Likewise. Co-Authored-By: Laurent GUERBY <laurent@guerby.net> From-SVN: r154407
* linux-unwind.h (sparc64_fallback_frame_state): Tidy.Eric Botcazou2009-11-122-3/+7
| | | | | | | | | | * config/sparc/linux-unwind.h (sparc64_fallback_frame_state): Tidy. Do not schedule an %sp restore. Compensate for RETURN_ADDR_OFFSET. (sparc_fallback_frame_state): Tidy. Compensate for RETURN_ADDR_OFFSET. ada/ * init.c (GNU/Linux Section): Enable for all architectures. From-SVN: r154132
* re PR middle-end/20548 (ACATS c52103x c52104x c52104y segfault)Eric Botcazou2009-11-105-4/+12
| | | | | | | | | | PR ada/20548 * system-linux-alpha.ads (Stack_Check_Probes): Set to true. * system-linux-hppa.ads (Stack_Check_Probes): Likewise. * system-linux-sparc.ads (Stack_Check_Probes): Likewise. * system-linux-sparcv9.ads (Stack_Check_Probes): Likewise. From-SVN: r154063
* system-linux-alpha.ads (AAMP, [...]): Delete.Eric Botcazou2009-11-1011-72/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * system-linux-alpha.ads (AAMP, Compiler_System_Version, OpenVMS, Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined): Delete. (Stack_Check_Limits, Always_Compatible_Rep): New. * system-linux-mips.ads (AAMP, Compiler_System_Version, OpenVMS, Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined): Delete. (Stack_Check_Limits, Always_Compatible_Rep): New. * system-linux-mips64el.ads (AAMP, Compiler_System_Version, OpenVMS, Functions_Return_By_DSP, Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined): Delete. (Stack_Check_Limits, Always_Compatible_Rep): New. * system-linux-mipsel.ads (AAMP, Compiler_System_Version, OpenVMS, Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined): Delete. (Stack_Check_Limits, Always_Compatible_Rep): New. * system-linux-s390.ads (AAMP, Compiler_System_Version, OpenVMS, Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined): Delete. (Stack_Check_Limits, Always_Compatible_Rep): New. * system-linux-s390x.ads (AAMP, Compiler_System_Version, OpenVMS, Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined): Delete. (Stack_Check_Limits, Always_Compatible_Rep): New. * system-linux-sh4.ads (Stack_Check_Limits, Always_Compatible_Rep): New. * system-linux-sparc.ads (AAMP, Compiler_System_Version, OpenVMS, Front_End_ZCX_Support): Delete. (Stack_Check_Limits, Always_Compatible_Rep): New. * system-linux-sparcv9.ads (AAMP, Compiler_System_Version, OpenVMS, Front_End_ZCX_Support, High_Integrity_Mode, Long_Shifts_Inlined): Delete. (Stack_Check_Limits, Always_Compatible_Rep): New. * system-rtems.ads (OpenVMS): Delete. (Stack_Check_Limits, Always_Compatible_Rep): New. From-SVN: r154062
* decl.c (make_packable_type): Fix oversight.Eric Botcazou2009-11-082-46/+31
| | | | | | | | | * gcc-interface/decl.c (make_packable_type): Fix oversight. (gnat_to_gnu_field): Do not attempt to change the form of the type if the field requires strict alignment. Always change the form of the type if the specified size is smaller than its size. From-SVN: r154009
* * gcc-interface/utils.c (gnat_type_for_mode): Handle vector modes.Eric Botcazou2009-11-052-6/+22
| | | | From-SVN: r153949
* trans.c (lvalue_required_p): New case.Eric Botcazou2009-11-052-11/+22
| | | | | | | * gcc-interface/trans.c (lvalue_required_p) <N_Unchecked_Conversion>: New case. From-SVN: r153948
* utils.c (MAX_FIXED_MODE_SIZE): Delete.Eric Botcazou2009-10-303-23/+23
| | | | | | | | | * gcc-interface/utils.c (MAX_FIXED_MODE_SIZE): Delete. (create_field_decl): Update description. In a packed record, round the size up to a byte boundary only if the field's type has BLKmode. * gcc-interface/gigi.h (create_field_decl): Update description. From-SVN: r153755
* [multiple changes]Arnaud Charlet2009-10-309-67/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | 2009-10-30 Emmanuel Briot <briot@adacore.com> * make.adb (Start_Compile_If_Possible): Compute location of resulting ALI file in this procedure instead of after the compilation itself, since the current directory might have changed in between when using -j<n>. * osint.ads: Addded missing alignment clause. * adaint.c, adaint.h, osint.adb (__gnat_reset_attributes, __gnat_size_of_file_attributes): Rename reset_attributes and size_of_file_attributes. 2009-10-30 Javier Miranda <miranda@adacore.com> * sem_scil.adb (Adjust_SCIL_Node): Add missing management of sequences of statements when searching for SCIL nodes. 2009-10-30 Tristan Gingold <gingold@adacore.com> * gnatlink.adb, link.c: By default use shared libgcc on darwin. From-SVN: r153749
* [multiple changes]Arnaud Charlet2009-10-304-172/+192
| | | | | | | | | | | | | | | | | 2009-10-30 Emmanuel Briot <briot@adacore.com> * make.adb, osint.adb (Add_Lib_Search_Dir): Do not add if dir is already in the list. This saves system calls when looking for ALI files (Scan_Make_Args): The parameter to gnatmake's -D is now converted to an absolute PATH (so that the above improvement properly occurs if both -D<dir> and -aO<dir> are specified). 2009-10-30 Thomas Quinot <quinot@adacore.com> * a-direct.adb: Minor reformatting From-SVN: r153748
* 2009-10-30 Emmanuel Briot <briot@adacore.com>Emmanuel Briot2009-10-307-745/+1300
| | | | | | | | | | | | | | | | * make.adb, adaint.c, adaint.h, osint.adb, osint.ads, bcheck.adb (*_attr): new subprograms. (File_Length, File_Time_Stamp, Is_Writable_File): new subprograms (Read_Library_Info_From_Full, Full_Library_Info_Name, Full_Source_Name): Now benefit from a previous cache of the file attributes, to further save on system calls. (Smart_Find_File): now also cache the file attributes. This makes the package File_Stamp_Hash_Table useless, and it was removed. (Compile_Sources): create subprograms for the various steps of the main loop, for readibility and to avoid sharing variables between the various steps. From-SVN: r153747
* make.adb, [...] (Library_File_Stamp): Removed, since unused.Emmanuel Briot2009-10-304-36/+93
| | | | | | | | | | 2009-10-30 Emmanuel Briot <briot@adacore.com> * make.adb, osint.adb, osint.ads (Library_File_Stamp): Removed, since unused. (Read_Library_Info_From_Full): New subprogram. From-SVN: r153746
* Remove executable property.Arnaud Charlet2009-10-303-0/+0
| | | | From-SVN: r153745
* [multiple changes]Arnaud Charlet2009-10-3022-111/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-10-30 Robert Dewar <dewar@adacore.com> * a-tideio.adb: Minor reformatting * a-wtdeio.adb, a-ztdeio.adb: Update comments, code clean up. * a-reatim.adb, a-tideau.adb, a-ngelfu.adb, a-ztdeau.adb, a-ngrear.adb, a-wtedit.adb, a-ststio.adb, a-ztedit.adb: Minor code reorganization (use conditional expressions). 2009-10-30 Ed Schonberg <schonberg@adacore.com> * gnat_ugn.texi: Additional info on gnatw.i and gnatw.I * sem_case.adb: Improved error message. 2009-10-30 Emmanuel Briot <briot@adacore.com> * a-direct.adb, gnatcmd.adb, gnatname.adb, makeutl.adb, opt.ads, osint.adb, prj-ext.adb, switch-m.adb (Follow_Links_For_Dirs): Now defaults to False, and controlled by -eL. * a-direct.adb: Add comments. * osint.adb (File_Stamp): Avoid unneeded duplicate system call From-SVN: r153744
* [multiple changes]Arnaud Charlet2009-10-304-10/+42
| | | | | | | | | | | | | | | | | | 2009-10-30 Robert Dewar <dewar@adacore.com> * sem_res.adb (Resolve_Type_Conversion): Avoid false positive when converting non-static subtype to "identical" static subtype. 2009-10-30 Ed Schonberg <schonberg@adacore.com> * usage.adb: Add -gnatw.i switch. 2009-10-30 Vincent Celier <celier@adacore.com> * xsnamest.adb: Update comments with regards to the template files snames.*.tmpl From-SVN: r153741
* [multiple changes]Arnaud Charlet2009-10-308-54/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | 2009-10-30 Bob Duff <duff@adacore.com> * s-fileio.adb (Errno_Message): Suppress VMS-specific warning. 2009-10-30 Ed Schonberg <schonberg@adacore.com> * sem_case.adb (Check_Choices): Add explanatory message when there are missing alternatives when the required range of alternatives is given by the base type of the case expression or discriminant in a variant part. * opt.ads: New flag Warn_On_Overlap, to enable warnings on potentially dangerous overlap between actuals in a call, activated by -gnatw.i * sem_warn.adb (Set_Dot_Warning_Switch): set flag. (Warn_On_Overlapping_Actuals): use new flag. * gnat_ugn.texi: Document -gnatw.i, warning on overlapping actuals 2009-10-30 Robert Dewar <dewar@adacore.com> * exp_aggr.adb, exp_ch9.adb: Minor reformatting From-SVN: r153740
* Mention PREric Botcazou2009-10-301-0/+1
| | | | From-SVN: r153732
* decl.c (make_type_from_size): Do not create integer types with precision 0.Eric Botcazou2009-10-292-0/+9
| | | | | | | * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Do not create integer types with precision 0. From-SVN: r153722
* decl.c (array_type_has_nonaliased_component): Swap parameters and rewrite ↵Eric Botcazou2009-10-292-10/+62
| | | | | | | | | | | | comments. * gcc-interface/decl.c (array_type_has_nonaliased_component): Swap parameters and rewrite comments. For a derived type, return the setting of its parent type. (gnat_to_gnu_entity): Do an alias set copy for derived types if they are composite. Adjust calls to above function. From-SVN: r153721
* trans.c (Attribute_to_gnu): Do not return the RM size for padded types.Eric Botcazou2009-10-292-13/+18
| | | | | | | * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Object_Size>: Do not return the RM size for padded types. From-SVN: r153720
* [multiple changes]Arnaud Charlet2009-10-294-15/+62
| | | | | | | | | | | | | | | | | | | 2009-10-28 Robert Dewar <dewar@adacore.com> * sem_type.adb: Minor reformatting 2009-10-28 Arnaud Charlet <charlet@adacore.com> * exp_ch9.adb (Build_Task_Proc_Specification): Generate a different suffix for task type bodies. 2009-10-28 Ed Schonberg <schonberg@adacore.com> * exp_aggr.adb (Convert_Aggr_In_Allocator): Do not look for a finalization list if the designated type requires no control actions, to prevent a useless semantic dependence on ada.tags. From-SVN: r153705
* [multiple changes]Arnaud Charlet2009-10-284-59/+148
| | | | | | | | | | | | | | | 2009-10-28 Bob Duff <duff@adacore.com> * s-fileio.adb: Give more information in exception messages. 2009-10-28 Robert Dewar <dewar@adacore.com> * gnat_ugn.texi: Document new -gnatyt requirement for space after right paren if next token starts with digit or letter. * styleg.adb (Check_Right_Paren): New rule for space after if next character is a letter or digit. From-SVN: r153663