aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2003-11-17[multiple changes]Arnaud Charlet29-1525/+2510
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 From-SVN: r73672
2003-11-17Replace use of poisoned BUILD_VA_LIST_TYPE macro with a target function.Nick Clifton4-8/+14
From-SVN: r73666
2003-11-17h8300-protos.h: Add the prototype for same_cmp_following_p.Kazu Hirata4-2/+29
* config/h8300/h8300-protos.h: Add the prototype for same_cmp_following_p. * config/h8300/h8300.c (same_cmp_following_p): New. * config/h8300/h8300.md (peephole2): Use it. From-SVN: r73662
2003-11-17h8300.md: Don't use REGNO when its operand is not guaranteed to be a REG.Kazu Hirata2-4/+9
* config/h8300/h8300.md: Don't use REGNO when its operand is not guaranteed to be a REG. From-SVN: r73661
2003-11-17Daily bump.GCC Administrator1-1/+1
From-SVN: r73658
2003-11-16* gcc.dg/cpp/assert4.c: New test.Kaveh R. Ghazi2-0/+376
From-SVN: r73654
2003-11-16Makefile.in (expr.o): Depend on $(TARGET_H).Richard Sandiford11-228/+301
* Makefile.in (expr.o): Depend on $(TARGET_H). * target.h (return_in_msb): New target hook. * target-def.h (TARGET_RETURN_IN_MSB): New macro. (TARGET_CALLS): Include it. * calls.c (shift_returned_value): New function. (expand_call): Use it. * expr.c: Include target.h. (copy_blkmode_from_reg): Check targetm.calls.return_in_msb when deciding what padding is needed. Change the name of the local padding variable from big_endian_correction to padding_correction. * stmt.c (shift_return_value): New function. (expand_return): Use it. Adjust memory->register copy in the same way as copy_blkmode_from_reg. Only change the return register's mode if it was originally BLKmode. * doc/tm.texi (TARGET_RETURN_IN_MSB): Document. * config/mips/mips.c (TARGET_RETURN_IN_MSB): Define. (mips_fpr_return_fields): New, split out from mips_function_value. (mips_return_in_msb, mips_return_fpr_pair): New functions. (mips_function_value): Rework to use the functions above. * config/mips/irix6-libc-compat.c: Delete. * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Undefine. From-SVN: r73652
2003-11-16* doc/install.texi (--enable-checking): Update valgrind's URL.Kazu Hirata2-1/+5
From-SVN: r73651
2003-11-16h8300.md: Fix warnings by replacing -2147483648 with -2147483647 - 1.Kazu Hirata2-2/+7
* config/h8300/h8300.md: Fix warnings by replacing -2147483648 with -2147483647 - 1. From-SVN: r73647
2003-11-16Fix links in online manuals.Gerald Pfeifer2-2/+8
* doc/invoke.texi (H8/300 Options): @xref to ld, not ld.info. (Precompiled Headers): @pxref to cpp, not cpp.info. From-SVN: r73646
2003-11-16Makefile.in, [...]: Create TAGS.sub files in each directory and TAGS files ↵Jason Merrill11-21/+57
that include them for... * Makefile.in, objc/Make-lang.in, ada/Make-lang.in, cp/Make-lang.in, java/Make-lang.in, f/Make-lang.in: Create TAGS.sub files in each directory and TAGS files that include them for each front end. From-SVN: r73643
2003-11-16* gjavah.c (print_stub_or_jni): Pass `env' to FatalError.Tom Tromey2-1/+5
From-SVN: r73642
2003-11-16Daily bump.GCC Administrator1-1/+1
From-SVN: r73638
2003-11-15lib1funcs.asm (divnorm): Store the sign in bit 3 of S2L.Kazu Hirata2-13/+14
* config/h8300/lib1funcs.asm (divnorm): Store the sign in bit 3 of S2L. (modnorm): Likewise. (exitdiv): Look at bit 3 of S2L only. From-SVN: r73635
2003-11-15h8300.h (DO_GLOBAL_CTORS_BODY): Fix warnings.Kazu Hirata2-8/+11
* config/h8300/h8300.h (DO_GLOBAL_CTORS_BODY): Fix warnings. (DO_GLOBAL_DTORS_BODY): Likewise. From-SVN: r73634
2003-11-15update commentJason Merrill1-2/+3
From-SVN: r73633
2003-11-15install.texi (Prerequisites): Refine documentation of autoconf, automake and ↵Joseph Myers2-6/+21
perl requirements. * doc/install.texi (Prerequisites): Refine documentation of autoconf, automake and perl requirements. Document required gettext version. From-SVN: r73632
2003-11-15re PR c++/2294 (using declaration confusion)Bernardo Innocenti2-6/+9
PR c++/2294 * name-lookup.c: Revert previous patch for PR c++/2294 to prevent build failure on libjava. From-SVN: r73630
2003-11-15Daily bump.GCC Administrator1-1/+1
From-SVN: r73627
2003-11-14function.c (assign_parms): Use TREE_TYPE to determine the real type of the ↵Jason Merrill2-4/+9
argument object. * function.c (assign_parms): Use TREE_TYPE to determine the real type of the argument object. From-SVN: r73623
2003-11-14re PR c++/2294 (using declaration confusion)Giovanni Bajo2-0/+35
PR c++/2294 * g++.dg/lookup/using9.c: New test. From-SVN: r73621
2003-11-14lib1funcs.asm (___udivsi3): Peel off the first iteration.Kazu Hirata2-1/+9
* config/h8300/lib1funcs.asm (___udivsi3): Peel off the first iteration. From-SVN: r73620
2003-11-14re PR c++/2294 (using declaration confusion)Giovanni Bajo2-3/+14
PR c++/2294 * name-lookup.c (push_overloaded_decl): Always construct an OVERLOAD unless the declaration is a built-in. (set_namespace_binding): While binding OVERLOADs with only one declaration, we still need to call supplement_binding. From-SVN: r73618
2003-11-14Fixed bug saving vararg registers in -mpowerpc64 mode.Fariborz Jahanian1-0/+6
Approved by: David Edelsohn From-SVN: r73617
2003-11-14Fix bug saving vararg registers on stack in -mpowerpc64 mode.Fariborz Jahanian1-2/+34
Approved by: David Edelsohn. From-SVN: r73616
2003-11-14m68k.c: Use C statements instead of #ifdef's when testing for MOTOROLA ↵Bernardo Innocenti2-600/+396
versus MIT syntax. * config/m68k/m68k.c: Use C statements instead of #ifdef's when testing for MOTOROLA versus MIT syntax. Improves readability and provides better compile-time error checking for both code paths. From-SVN: r73615
2003-11-14frv-protos.h: Update for C90.Kelley Cook5-841/+504
2003-11-14 Kelley Cook <kcook@gcc.gnu.org> * config/frv/frv-protos.h: Update for C90. * config/frv/frv.h: Likewise. * config/frv/frvbegin.c: Likewise. * config/frv/frv.c: Likewise. (frv_adjust_field_align): Delete unused variable. From-SVN: r73613
2003-11-14rs6000.md: Add 'DEFAULT_ABI == ABI_DARWIN' to each place where ↵Geoffrey Keating2-28/+34
TARGET_LONG_DOUBLE_128 is... * config/rs6000/rs6000.md: Add 'DEFAULT_ABI == ABI_DARWIN' to each place where TARGET_LONG_DOUBLE_128 is used with DEFAULT_ABI == ABI_AIX. From-SVN: r73612
2003-11-14cppfiles.c (_cpp_find_file): Make 'one or more PCH files were found' message ↵Geoffrey Keating2-3/+8
comply with GNU standards. * cppfiles.c (_cpp_find_file): Make 'one or more PCH files were found' message comply with GNU standards. From-SVN: r73611
2003-11-14re PR c++/12762 (Much worse error message when using a typedef with a ↵Mark Mitchell4-31/+83
template arg) PR c++/12762 * parser.c (cp_parser_enclosed_template_argument_list): New function. (cp_parser_template_id): Use it. (cp_parser_simple_type_specifier): Recognize invalid template syntax. PR c++/12762 * g++.dg/template/error3.C: New test. From-SVN: r73610
2003-11-14function.c (struct epi_info): New field const_equiv.Richard Kenner3-13/+69
PR/6552 * function.c (struct epi_info): New field const_equiv. (update_epilogue_consts): New function. (keep_stack_depressed): Clear new field and verify scratch register doesn't have it set. Call new function via note_stores. (handle_epilogue_set): Allow setting SP equiv reg in different mode. Allow PLUS where second operand is register known set to constant. (emit_equiv_load): Write load using proper mode if source different. * config/mips/mips.md (return_internal): Put (return) first. From-SVN: r73609
2003-11-14lang.opt: Change -Wno-long-long to -Wlong-long since the latter is the ↵Andreas Jaeger3-2/+6
canonical version. * lang.opt: Change -Wno-long-long to -Wlong-long since the latter is the canonical version. * misc.c (gnat_handle_option): Likewise. From-SVN: r73607
2003-11-14Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.Andreas Jaeger3-31/+208
* Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux. * 5nsystem.ads: New file for x86_64-linux-gnu. From-SVN: r73606
2003-11-14* comperr.adb: Fix logic in previous change.Arnaud Charlet2-1/+3
From-SVN: r73605
2003-11-14* config/h8300/lib1funcs.asm (___udivsi3): Add a comment.Kazu Hirata2-0/+5
From-SVN: r73604
2003-11-14lib1funcs.asm (modsi3): Don't save unused registers.Kazu Hirata2-4/+17
* config/h8300/lib1funcs.asm (modsi3): Don't save unused registers. (divsi3): Likewise. (reti): Don't restore unused registers. From-SVN: r73603
2003-11-14* sinfo.h, treeprs.ads: Regenerated.Arnaud Charlet3-55/+57
From-SVN: r73601
2003-11-14* nmake.ads, nmake.adb: Regenerated.Arnaud Charlet3-2/+9
From-SVN: r73600
2003-11-14config/fr30/fr30.c: Include toplev.hNick Clifton2-0/+5
From-SVN: r73599
2003-11-14* except.c (sjlj_emit_function_enter): Mark internal label as LOCAL.Richard Earnshaw2-1/+9
From-SVN: r73598
2003-11-14arm.c (arm_emit_vector_const, [...]): Use ISO C function definition syntax.Richard Earnshaw2-5/+7
* arm.c (arm_emit_vector_const, arm_output_load_gr): Use ISO C function definition syntax. From-SVN: r73597
2003-11-14[multiple changes]Arnaud Charlet27-2985/+2582
2003-11-13 Vincent Celier <celier@gnat.com> * 5bml-tgt.adb (Build_Dynamic_Library): Use Osint.Include_Dir_Default_Prefix instead of Sdefault.Include_Dir_Default_Name. * gnatlbr.adb: Update Copyright notice (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix instead of Sdefault.Object_Dir_Default_Name * gnatlink.adb: (Process_Binder_File): Never suppress the option following -Xlinker * mdll-utl.adb: (Gcc): Use Osint.Object_Dir_Default_Prefix instead of Sdefault.Object_Dir_Default_Name. * osint.ads, osint.adb: (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions Minor reformatting. * vms_conv.ads: Minor reformating Remove GNAT STANDARD and GNAT PSTA * vms_conv.adb: Allow GNAT MAKE to have several files on the command line. (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of Sdefault.Object_Dir_Default_Name. Minor Reformating Remove data for GNAT STANDARD * vms_data.ads: Add new compiler qualifier /PRINT_STANDARD (-gnatS) Remove data for GNAT STANDARD Remove options and documentation for -gnatwb/-gnatwB: these warning options no longer exist. 2003-11-13 Ed Falis <falis@gnat.com> * 5zthrini.adb: (Init_RTS): Made visible * 5zthrini.adb: (Register): Removed unnecessary call to taskVarGet that checked whether an ATSD was already set as a task var for the argument thread. * s-thread.adb: Updated comment to reflect that this is a VxWorks version Added context clause for System.Threads.Initialization Added call to System.Threads.Initialization.Init_RTS 2003-11-13 Jerome Guitton <guitton@act-europe.fr> * 5zthrini.adb: (Init_RTS): New procedure, for the initialization of the run-time lib. * s-thread.adb: Remove dependancy on System.Init, so that this file can be used in the AE653 sequential run-time lib. 2003-11-13 Robert Dewar <dewar@gnat.com> * bindgen.adb: Minor reformatting 2003-11-13 Ed Schonberg <schonberg@gnat.com> * checks.adb: (Apply_Discriminant_Check): Do no apply check if target type is derived from source type with no applicable constraint. * lib-writ.adb: (Ensure_System_Dependency): Do not apply the style checks that may have been specified for the main unit. * sem_ch8.adb: (Find_Selected_Component): Further improvement in error message, with RM reference. * sem_res.adb: (Resolve): Handle properly the case of an illegal overloaded protected procedure. 2003-11-13 Javier Miranda <miranda@gnat.com> * exp_aggr.adb: (Has_Default_Init_Comps): New function to check the presence of default initialization in an aggregate. (Build_Record_Aggr_Code): Recursively expand the ancestor in case of extension aggregate of a limited record. In addition, a new formal was added to do not initialize the record controller (if any) during this recursive expansion of ancestors. (Init_Controller): Add support for limited record components. (Expand_Record_Aggregate): In case of default initialized components convert the aggregate into a set of assignments. * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment describing the new syntax. Nothing else needed to be done because this subprogram delegates part of its work to P_Precord_Or_Array_Component_Association. (P_Record_Or_Array_Component_Association): Give support to the new syntax for default initialization of components. * sem_aggr.adb: (Resolve_Aggregate): Relax the strictness of the frontend in case of limited aggregates. (Resolve_Record_Aggregate): Give support to default initialized components. (Get_Value): In case of default initialized components, duplicate the corresponding default expression (from the record type declaration). In case of default initialization in the *others* choice, do not check that all components have the same type. (Resolve_Extension_Aggregate): Give support to limited extension aggregates. * sem_ch3.adb: (Check_Initialization): Relax the strictness of the front-end in case of aggregate and extension aggregates. This test is now done in Get_Value in a per-component manner. * sem_ch4.adb (Analyze_Allocator): Don't post an error if the expression corresponds to a limited aggregate. This test is now done in Get_Value. * sinfo.ads, sinfo.adb (N_Component_Association): Addition of Box_Present flag. * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if present in an N_Component_Association node 2003-11-13 Thomas Quinot <quinot@act-europe.fr> * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a type-conformant entry only if they are homographs. 2003-11-13 GNAT Script <nobody@gnat.com> * Make-lang.in: Makefile automatically updated From-SVN: r73596
2003-11-14reload1.c (reload): Revert previous patch.Eric Christopher2-10/+15
2003-11-14 Eric Christopher <echristo@redhat.com> * reload1.c (reload): Revert previous patch. Make check for assignment into reg_equiv_address stricter. From-SVN: r73595
2003-11-14Makefile.in (EXTRA_GCC_FLAGS): Pass BOOT_ADAFLAGS.Arnaud Charlet2-0/+5
* Makefile.in (EXTRA_GCC_FLAGS): Pass BOOT_ADAFLAGS. * gcc/Makefile.in (POSTSTAGE1_FLAGS_TO_PASS): Pass ADAFLAGS. From-SVN: r73594
2003-11-14frv.c (frv_in_small_data_p): Return false for unknown section names.Richard Sandiford2-4/+10
* config/frv/frv.c (frv_in_small_data_p): Return false for unknown section names. From-SVN: r73593
2003-11-14re PR ada/13035 (Ada testsuite uses installed gcc)Arnaud Charlet3-19/+18
PR ada/13035 * ada/acats/run_acats, run_all.sh: Fix syntax errors. No longer use a wrapper for gcc, since this does not work under Windows, use --GCC switch instead. From-SVN: r73592
2003-11-14re PR middle-end/12526 ([tree-ssa] internal compiler error: Segmentation fault)Jason Merrill4-3/+41
PR middle-end/12526 * tree.c (build): A CALL_EXPR has side-effects if its arguments do. * calls.c (call_expr_flags): New fn. * tree.h: Declare it. From-SVN: r73589
2003-11-14re PR middle-end/12526 ([tree-ssa] internal compiler error: Segmentation fault)Jason Merrill1-0/+19
PR middle-end/12526 * tree.c (build): A CALL_EXPR has side-effects if its arguments do. * calls.c (call_expr_flags): New fn. * tree.h: Declare it. * tree-cfg.c (call_expr_flags): Move to calls.c. * tree-flow.h: Move prototype to tree.h. From-SVN: r73588
2003-11-14re PR c++/13033 ([tree-ssa] ICE in lower_stmt)Jason Merrill1-0/+16
PR c++/13033 * c-simplify.c (gimplify_c_loop): Wrap the increment in a CLEANUP_POINT_EXPR. From-SVN: r73587
2003-11-14Removed, unused and does not compile on all platforms.Arnaud Charlet1-153/+0
From-SVN: r73585