aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2003-11-20Makefile.in (lang_checks): Add.Joseph Myers12-8/+41
gcc: * Makefile.in (lang_checks): Add. (check-c++, check-f77, check-java, check-g++, check-g77, check-objc): Remove hardcoded targets. * doc/sourcebuild.texi: Document testsuite hooks. * objc/Make-lang.in (check-objc, lang_checks): Add. gcc/cp: * Make-lang.in (check-g++, lang_checks): Add. gcc/f: * Make-lang.in (check-f77, lang_checks): Add. gcc/java: * Make-lang.in (check-java): Add. gcc/treelang: * Make-lang.in: Remove obsolete comment. From-SVN: r73758
2003-11-20[multiple changes]Arnaud Charlet55-326/+1187
2003-11-19 Arnaud Charlet <charlet@act-europe.fr> * gnatmem.adb: Clean up verbose output. * gprcmd.adb: Change copyright to FSF. 2003-11-19 Vincent Celier <celier@gnat.com> * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy and Version (ignored). * symbols.ads: (Policy): New type (Initialize): New parameter Reference, Symbol_Policy and Library_Version. Remove parameter Force. Minor reformatting. * snames.ads, snames.adbadb: New standard names Library_Reference_Symbol_File and Library_Symbol_Policy * mlib-prj.adb: (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the project. * mlib-tgt.adb: (Build_Dynamic_Library): New parameter Symbol_Data (ignored) * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data * prj.adb: (Project_Empty): New component Symbol_Data * prj.ads: (Policy, Symbol_Record): New types (Project_Data): New component Symbol_Data * prj-attr.adb: New attributes Library_Symbol_File, Library_Symbol_Policy and Library_Reference_Symbol_File. * prj-nmsc.adb: (Ada_Check): When project is a Stand-Alone library project, process attribute Library_Symbol_File, Library_Symbol_Policy and Library_Reference_Symbol_File. * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb, 5sml-tgt.adb (Build_Dynamic_Library): New parameter Symbol_Data (ignored). * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0 (Build_Dynamic_Library): New parameter Symbol_Data. New internal functions Option_File_Name and Version_String. Set new options of gnatsym related to symbol file, symbol policy and reference symbol file. * 5vsymbol.adb: Extensive modifications to take into account the reference symbol file, the symbol policy, the library version and to put in the symbol file the minor and major IDs. * bld.adb (Process_Declarative_Items): Put second argument of gprcmd to_absolute between single quotes, to avoid problems with Windows. * bld-io.adb: Update Copyright notice. (Flush): Remove last character of a line, if it is a back slash, to avoid make problems. * gnatsym.adb: Implement new scheme with reference symbol file and symbol policy. * g-os_lib.ads: (Is_Directory): Clarify comment 2003-11-19 Robert Dewar <dewar@gnat.com> * atree.adb: Move New_Copy_Tree global variables to head of package * errout.adb: Minor reformatting 2003-11-19 Javier Miranda <miranda@gnat.com> * sem_ch4.adb: (Diagnose_Call): Improve error message. Add reference to Ada0Y (AI-50217) * sem_ch6.adb, sem_ch8.adb, sem_type.adb, sem_util.adb: Add reference to AI-50217 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287) * sem_aggr.adb: Complete documentation of AI-287 changes * par-ch4.adb: Document previous changes. * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb, sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to Ada0Y (AI-50217) * exp_aggr.adb: Add references to AI-287 in previous changes 2003-11-19 Ed Schonberg <schonberg@gnat.com> * exp_ch6.adb: (Add_Call_By_Copy_Node): Do not original node of rewritten expression in the rewriting is the result of an inlined call. * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out parameter is a type conversion, use original node to construct the post-call assignment, because expression may have been rewritten, e.g. if it is a packed array. * sem_attr.adb: (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined body, just as it is in an instance. Categorization routines * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram, Instantiate_Object): Set proper sloc reference for message on missing actual. 2003-11-19 Thomas Quinot <quinot@act-europe.fr> * Makefile.in: Add FreeBSD libgnat pairs. * usage.adb: Fix typo in usage message. 2003-11-19 Jerome Guitton <guitton@act-europe.fr> * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?, s-thrini.ad? and s-tiitho.adb to the full runtime, to support the pragma Thread_Body. Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore. * s-thread.adb: This file is now a dummy implementation of System.Thread. 2003-11-19 Sergey Rybin <rybin@act-europe.fr> * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available 2003-11-19 Emmanuel Briot <briot@act-europe.fr> * xref_lib.adb (Parse_Identifier_Info): Add handling of generic instanciation references in the parent type description. From-SVN: r73757
2003-11-20re PR target/13131 (internal compiler error: in AT_flag, at dwarf2out.c:4480)Scott Snyder2-1/+7
PR target/13131 * dwarf2out.c (gen_array_type_die): DW_AT_declaration should be a flag, not a constant. From-SVN: r73756
2003-11-20arc-protos.h: Update to C90 prototypes.Kelley Cook4-195/+129
2003-11-19 Kelley Cook <kcook@gcc.gnu.org> * config/arc/arc-protos.h: Update to C90 prototypes. * config/arc/arc.c: Likewise. * config/arc/initfini.c: Likewise. From-SVN: r73753
2003-11-20re PR rtl-optimization/13024 (gcj can't build current rhug)Jeff Sturm2-9/+17
Fix PR java/13024. * except.c (prepare_eh_table_type): Allocate variable-sized buffer `buf' with alloca. From-SVN: r73752
2003-11-20stmt.c (expand_goto): Memory clobbers added.Andreas Krebbel2-0/+11
2003-11-19 Andreas Krebbel <krebbel1@de.ibm.com> * stmt.c (expand_goto): Memory clobbers added. From-SVN: r73749
2003-11-20reload.c (find_reloads): Added missing type casts.Andreas Krebbel2-2/+6
2003-11-19 Andreas Krebbel <krebbel1@de.ibm.com> * reload.c (find_reloads): Added missing type casts. From-SVN: r73748
2003-11-20Daily bump.GCC Administrator1-1/+1
From-SVN: r73746
2003-11-19* combine.c (sets_function_arg_p): Delete unused function.James E Wilson2-40/+4
From-SVN: r73744
2003-11-19reload1.c (reload): Revert 2 previous checkins.Eric Christopher1-8/+2
2003-11-19 Eric Christopher <echristo@redhat.com> * reload1.c (reload): Revert 2 previous checkins. From-SVN: r73742
2003-11-19reload1.c (reload): Revert 2 previous checkins.Eric Christopher1-0/+4
2003-11-19 Eric Christopher <echristo@redhat.com> * reload1.c (reload): Revert 2 previous checkins. From-SVN: r73741
2003-11-19cpptrad.c (_cpp_scan_out_logical_line): Improve test for whether directive ↵Nathanael Nerode4-1/+27
begins at the beginning of a line. * cpptrad.c (_cpp_scan_out_logical_line): Improve test for whether directive begins at the beginning of a line. (testsuite) * gcc.dg/cpp/trad/xwin1.c: New test case. From-SVN: r73740
2003-11-19* config/frv/frv.c (frv_init_libfuncs): Correct ufix_optab entries.Richard Sandiford2-3/+7
From-SVN: r73739
2003-11-19install.texi (Specific): Remove information on old versions of glibc versus ↵Gerald Pfeifer2-14/+5
old versions of GCC. * doc/install.texi (Specific): Remove information on old versions of glibc versus old versions of GCC. From-SVN: r73738
2003-11-19emit-rtl.c (gen_lowpart): Don't force MEMs into a register unless the ↵Richard Sandiford2-0/+7
register lowpart is a... * emit-rtl.c (gen_lowpart): Don't force MEMs into a register unless the register lowpart is a TRULY_NOOP_TRUNCATION. From-SVN: r73731
2003-11-18i386.c (print_reg): Handle QI and HI modes for non Q regs.Richard Henderson2-0/+10
* config/i386/i386.c (print_reg): Handle QI and HI modes for non Q regs. From-SVN: r73730
2003-11-19config.gcc (powerpc-*-darwin*): Add libgcc build specification file.Andreas Tobler6-1/+257
2003-11-19 Andreas Tobler <a.tobler@schweiz.ch> * config/config.gcc (powerpc-*-darwin*): Add libgcc build specification file. * config/t-slibgcc-darwin: New file, libgcc build specification. * config/t-darwin: Add libgcc2 flag -fPIC. * config/rs6000/t-darwin: Multilib matches float. * libgcc-darwin.ver: New file, contains libgcc symbols. From-SVN: r73728
2003-11-19compat.exp: Add DYLD_LIBRARY_PATH for darwin.Andreas Tobler5-0/+17
2003-11-19 Andreas Tobler <a.tobler@schweiz.ch> * g++.dg/compat/compat.exp: Add DYLD_LIBRARY_PATH for darwin. * lib/g77.exp: Likewise. * lib/objc.exp: Likewise. * lib/g++.exp: Likewise, add -multiply_defined suppress flag for darwin. From-SVN: r73727
2003-11-19* config/ns32k/ns32k.h: Remove obsolete comment.Nathanael Nerode2-8/+5
From-SVN: r73720
2003-11-19Daily bump.GCC Administrator1-1/+1
From-SVN: r73718
2003-11-18re PR middle-end/11821 (Operator implementation as a library call fails with ↵Roger Sayle2-1/+9
constants) PR middle-end/11821 * config/arm/arm.c (arm_rtx_costs_1): Improve estimate of the code size for calls to libgcc's div & mod subroutines when using -Os. From-SVN: r73706
2003-11-18re PR c++/12932 (ICE with use of ptr-to-function as template arg)Kriang Lerdsuwanakij6-1/+38
PR c++/12932 * class.c (currently_open_derived_class): Check if current_class_type is NULL_TREE. * semantics.c (finish_call_expr): Check if currently_open_derived_class returns NULL_TREE. * cp-tree.h (DERIVED_FROM_P): Add parenthesis around PARENT parameter. * g++.dg/template/static5.C: New test. From-SVN: r73705
2003-11-18* cgraph.c (change_decl_assembler_name): Avoid bogus warnings.Jan Hubicka2-1/+6
From-SVN: r73703
2003-11-18sysv4.h: OpenBSD hooks.Marc Espie2-2/+51
2003-11-18 Marc Espie <espie@openbsd.org> * config/rs6000/sysv4.h: OpenBSD hooks. From-SVN: r73702
2003-11-18* gcc.dg/nested-func-1.c: New test.Joseph Myers2-0/+39
From-SVN: r73701
2003-11-18[multiple changes]Arnaud Charlet7-16/+117
2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s". * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set TYPE_PRECISION directly from esize. 2003-11-18 Thomas Quinot <quinot@act-europe.fr> * cstreams.c: Use realpath(3) on FreeBSD. Fix typo in comment while we are at it. * init.c: Initialization routines for FreeBSD * link.c: Link info for FreeBSD * sysdep.c: Add the case of FreeBSD From-SVN: r73700
2003-11-18expr.c (expand_expr): Don't look through constant arrays if they don't bind ↵Richard Henderson2-1/+7
locally. * expr.c (expand_expr): Don't look through constant arrays if they don't bind locally. From-SVN: r73698
2003-11-18re PR java/12857 (Illegal method modifier when loading a generated .class)Jeff Sturm4-35/+110
Fix PR java/12857. decl.c (java_init_decl_processing): Don't initialize class_not_found_type_node, no_class_def_found_type_node. java-tree.h (JTI_CLASS_NOT_FOUND_TYPE_NODE, JTI_NO_CLASS_DEF_FOUND_TYPE_NODE): Remove from java_tree_index. (class_not_found_type_node, no_class_def_found_type_node): Don't define. parse.y (build_dot_class_method_invocation): Add this_class argument. Qualify method invocations to a different class. (create_new_parser_context): Initialize saved_data_ctx to 0. (java_parser_context_save_global): Initialize saved_data_ctx to 1. (build_dot_class_method): Don't load classes. Register incomplete types. (build_incomplete_class_ref): Special cases for interfaces and inner classes. Move build_dot_class_method call to here... (patch_incomplete_class_ref): ...from here. Pass current_class to build_dot_class_method_invocation. (build_assertion): Pass class_type to build_dot_class_method_invocation. (encapsulate_with_try_catch): Handle EXPR_WITH_FILE_LOCATION node. From-SVN: r73691
2003-11-18re PR java/12739 (gcj emits dead bytecode)Jeff Sturm3-3/+16
Fix PR java/12739. * java-tree.h (BLOCK_EMPTY_P): Define. * parse.y (java_complete_lhs): Check for empty blocks in TRY_FINALLY_EXPR case. From-SVN: r73690
2003-11-17expr.c (convert_move): Use GET_MODE_PRECISION instead of bitsize when seeing ↵Richard Kenner2-2/+7
if truncation or extension. * expr.c (convert_move): Use GET_MODE_PRECISION instead of bitsize when seeing if truncation or extension. From-SVN: r73689
2003-11-18reload1.c (reload): Fix previous change.Eric Christopher2-6/+10
2003-11-17 Eric Christopher <echristo@redhat.com> * reload1.c (reload): Fix previous change. From-SVN: r73687
2003-11-18Daily bump.GCC Administrator1-1/+1
From-SVN: r73684
2003-11-17fix size_tJason Merrill2-2/+2
From-SVN: r73680
2003-11-17add commentJason Merrill1-0/+3
From-SVN: r73678
2003-11-17init.c (build_new_1): Preevaluate placement args.Jason Merrill4-24/+71
* init.c (build_new_1): Preevaluate placement args. * call.c (build_op_delete_call): Don't expose placement args to overload resolution. From-SVN: r73677
2003-11-17re PR debug/11325 (nested class debug info missing)Scott Snyder2-3/+32
2003-11-17 Scott Snyder <snyder@fnal.gov> PR debug/11325 * dwarf2out.c (struct die_struct): Add die_definition field. (add_AT_specification): New. (gen_subprogram_die, gen_variable_die, gen_struct_or_union_type_die): Use it. (prune_unused_types_mark): If we're marking a forward declaration, also mark the full definition, if it exists. From-SVN: r73676
2003-11-17java-tree.h (LOCAL_VAR_OUT_OF_SCOPE_P): New.Andrew Haley3-7/+27
2003-09-12 Andrew Haley <aph@redhat.com> * java-tree.h (LOCAL_VAR_OUT_OF_SCOPE_P): New. (struct lang_decl_var:freed): New variable. * decl.c (poplevel): Mark local vars that have gone out of scope. (push_jvm_slot): Don't use the RTL of a var that has gone out of scope. From-SVN: r73675
2003-11-17re PR c++/11266 ([tree-ssa] ICE with placement new)Jason Merrill1-0/+10
PR c++/11266 * gimplify.c (gimple_add_tmp_var): Also make sure seen_in_bind_expr isn't set. (mostly_copy_tree_r): Don't copy a TARGET_EXPR. (gimplify_target_expr): Only expand a TARGET_EXPR the first time we see it. [[Split portion of a mixed commit.]] From-SVN: r73674.2
2003-11-17Resync.Arnaud Charlet1-0/+113
From-SVN: r73673
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