aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2003-11-24genattrtab.c (simplify_cond): Update indices correctly.Zdenek Dvorak3-38/+327
* genattrtab.c (simplify_cond): Update indices correctly. (attr_alt_subset_p, attr_alt_subset_of_compl_p, attr_alt_intersection, attr_alt_union, attr_alt_complement, attr_alt_bit_p, mk_attr_alt): New. (check_attr_test, encode_units_mask, compute_alternative_mask, make_alternative_compare, simplify_and_tree, attr_rtx_cost, simplify_test_exp, gen_attr, write_test_expr, walk_attr_value): Handle EQ_ATTR_ALT. * rtl.def (EQ_ATTR_ALT): New. From-SVN: r73873
2003-11-24fold-const.c (fold): Do not return early when optimizing COMPONENT_REF and ↵Jan Hubicka1-1/+2
constant. * fold-const.c (fold): Do not return early when optimizing COMPONENT_REF and constant. From-SVN: r73870
2003-11-24genattrtab.c (strcmp_check, [...]): New macros.Zdenek Dvorak2-46/+118
* genattrtab.c (strcmp_check, DEF_ATTR_STRING): New macros. (length_str, delay_type_str, delay_1_0_str, num_delay_slots_str): New variables. (main): Initialize them. (find_attr): Canonicalize the attribute name string. (attr_rtx_1, copy_boolean, expand_delays, gen_unit): Always canonicalize string arguments. (attr_printf, attr_eq): Use DEF_ATTR_STRING. (check_attr_test, check_attr_value, make_length_attrs, write_length_unit_log, simplify_by_exploding, gen_attr, write_test_expr, write_attr_value, write_eligible_delay, write_complex_function, make_internal_attr, write_const_num_delay_slots): Changed due to change of type of find_attr. (fill_attr, evaluate_eq_attr, simplify_and_tree, attr_rtx_cost, simplify_by_exploding, walk_attr_value): Use strcmp_check. From-SVN: r73869
2003-11-24Daily bump.GCC Administrator1-1/+1
From-SVN: r73866
2003-11-23I forgot to mention the PR number.Kazu Hirata1-0/+1
From-SVN: r73863
2003-11-23h8300.c (push): Call push_h8300hs_normal in normal mode.Kazu Hirata3-5/+60
* config/h8300/h8300.c (push): Call push_h8300hs_normal in normal mode. (pop): Call pop_h8300hs_normal in normal mode. * config/h8300/h8300.md: Likewise. (pushqi1_h8300hs_normal): New. (pushqi1): Call pushqi1_h8300hs_normal in normal mode. (pushhi1_h8300hs_normal): New. (pushhi1): Call pushhi1_h8300hs_normal in normal mode. (push_h8300hs_normal): New. (pop_h8300hs_normal): Likewise. From-SVN: r73862
2003-11-23* genattrtab.c (count_sub_rtxs): Removed.Zdenek Dvorak2-60/+4
From-SVN: r73860
2003-11-23recog.c (preprocess_constraints): Only zero those elements of recog_op_alt ↵Richard Earnshaw3-1/+14
that are needed for this insn. * recog.c (preprocess_constraints): Only zero those elements of recog_op_alt that are needed for this insn. * arm.c (note_invalid_constants): A function can't contain invalid constants if it has no constraints. From-SVN: r73855
2003-11-23re PR c++/12924 (ICE in lookup_member, at cp/search.c:1228)Kriang Lerdsuwanakij4-0/+38
PR c++/12924 * typeck.c (finish_class_member_access_expr): Handle TEMPLATE_ID_EXPR with OVERLOAD and DECL nodes as the first operand. * g++.dg/template/template-id-2.C: New test. From-SVN: r73851
2003-11-23Daily bump.GCC Administrator1-1/+1
From-SVN: r73846
2003-11-22i386.c (classify_argument): Pass __float128 in memory.Jan Hubicka2-17/+9
* i386.c (classify_argument): Pass __float128 in memory. (ix86_return_in_memory): Likewise. (ix86_libcall_value): Likewsie. From-SVN: r73842
2003-11-22* config/h8300/h8300.c (dosize): Convert to ISO-C.Kazu Hirata2-3/+5
From-SVN: r73841
2003-11-22flow.c (update_life_info): Amend comment about when a register can become dead.J"orn Rennecke2-0/+8
* flow.c (update_life_info): Amend comment about when a register can become dead. From-SVN: r73838
2003-11-22* pt.c (tsubst) <ARRAY_REF>: Remove erroneous argument to build_nt.Kriang Lerdsuwanakij2-1/+5
From-SVN: r73834
2003-11-22re PR c++/5369 (template member friend declaration not honored)Kriang Lerdsuwanakij16-46/+692
PR c++/5369 * friend.c (is_friend): Handle member function of a class template as template friend. (do_friend): Likewise. * decl2.c (check_classfn): Add template_header_p parameter. * decl.c (start_decl): Adjust check_classfn call. (grokfndecl): Likewise. * pt.c (is_specialization_of_friend): New function. (uses_template_parms_level): Likewise. (push_template_decl_real): Use uses_template_parms_level. (tsubst_friend_function): Adjust check_classfn call. * cp-tree.h (check_classfn): Adjust declaration. (uses_template_parms_level): Add declaration. (is_specialization_of_friend): Likewise. * g++.dg/template/memfriend1.C: New test. * g++.dg/template/memfriend2.C: Likewise. * g++.dg/template/memfriend3.C: Likewise. * g++.dg/template/memfriend4.C: Likewise. * g++.dg/template/memfriend5.C: Likewise. * g++.dg/template/memfriend6.C: Likewise. * g++.dg/template/memfriend7.C: Likewise. * g++.dg/template/memfriend8.C: Likewise. * g++.old-deja/g++.pt/friend44.C: Remove a bogus error. From-SVN: r73833
2003-11-22Daily bump.GCC Administrator1-1/+1
From-SVN: r73827
2003-11-21Remove some .cvsignore files due to doc files now being built in build directoryKelley Cook8-21/+17
From-SVN: r73824
2003-11-21re PR c++/12515 (Use of ?: operator in templated class causes ICE)Mark Mitchell4-1/+18
PR c++/12515 * pt.c (build_non_dependent_expr): Handle GNU extension to ?: operator. PR c++/12515 * g++.dg/ext/cond1.C: New test. From-SVN: r73820
2003-11-21dwarf2out.c (add_location_or_const_value_attribute): Add support for PARALLEL.Daniel Berlin2-0/+33
2003-11-21 Daniel Berlin <dberlin@dberlin.org> David Edelsohn <edelsohn@gnu.org> * dwarf2out.c (add_location_or_const_value_attribute): Add support for PARALLEL. Co-Authored-By: David Edelsohn <edelsohn@gnu.org> From-SVN: r73817
2003-11-21t-iris6 (CRTSTUFF_T_CFLAGS): Add -Wno-error.Rainer Orth3-2/+18
* config/mips/t-iris6 (CRTSTUFF_T_CFLAGS): Add -Wno-error. (TARGET_LIBGCC2_CFLAGS): Define. * crtstuff.c [HAS_INIT_SECTION] (__do_global_dtors): Declare. (__do_global_ctors): Likewise. From-SVN: r73811
2003-11-21* 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.Andreas Schwab2-2/+6
From-SVN: r73809
2003-11-21* doc/invoke.texi (-O2): Doesn't enable -fweb.Mark Wielaard2-1/+5
From-SVN: r73803
2003-11-21parser.c (cp_parser_postfix_expression): Initialize 's' to NULL_TREE.Jan Hubicka1-1/+1
* parser.c (cp_parser_postfix_expression): Initialize 's' to NULL_TREE. From-SVN: r73802
2003-11-21parser.c (cp_parser_postfix_expression): Initialize 's' to NULL_TREE.Jan Hubicka1-0/+5
* parser.c (cp_parser_postfix_expression): Initialize 's' to NULL_TREE. [[Split portion of a mixed commit.]] From-SVN: r73801.2
2003-11-21* 5wsystem.ads: Enable zero cost exception.Vasiliy Fofanov1-0/+4
From-SVN: r73799
2003-11-21[multiple changes]Arnaud Charlet15-60/+147
2003-11-20 Jerome Guitton <guitton@act-europe.fr> * 5ztiitho.adb: Remove an unreferenced variable. 2003-11-20 Thomas Quinot <quinot@act-europe.fr> * adaint.c: For FreeBSD, use mkstemp. 2003-11-20 Arnaud Charlet <charlet@act-europe.fr> * gnatlbr.adb: Now reference Gnat_Static_Version_String. 2003-11-20 Robert Dewar <dewar@gnat.com> * bld.adb: Remove useless USE of gnatvsn * gnatchop.adb: Minor reformatting Clean up version handling to be more consistent * gnatxref.adb: Minor reformatting * gprcmd.adb: Minor reformatting Fix output of copyright to be more consistent with other tools 2003-11-20 Vincent Celier <celier@gnat.com> * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink 2003-11-20 Sergey Rybin <rybin@act-europe.fr> * atree.adb (Initialize): Add initializations for global variables used in New_Copy_Tree. * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with Internal_Source_File as the actual). Put the set of statements creating Any_Character before the set of statements creating Any_Array to have Any_Character fully initialized when it is used in creating Any_Array. * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do not call Scan in case if the actual is Internal_Source_File Add 2003 to copyright note. * sinput.adb (Source_First, Source_Last, Source_Text): Add code for processing Internal_Source_File. * types.ads: Add the constant Internal_Source_File representing the source buffer for artificial source-code-like strings created within the compiler (the definition of Source_File_Index is changed). From-SVN: r73798
2003-11-21ChangeLog.7: Fix comment typos.Kazu Hirata22-26/+26
* ChangeLog.7: Fix comment typos. * c-common.c: Likewise. * c-pretty-print.c: Likewise. * cgraphunit.c: Likewise. * et-forest.h: Likewise. * expr.c: Likewise. * gcse.c: Likewise. * genautomata.c: Likewise. * genrecog.c: Likewise. * gensupport.c: Likewise. * ggc-zone.c: Likewise. * haifa-sched.c: Likewise. * ifcvt.c: Likewise. * loop.c: Likewise. * optabs.c: Likewise. * pretty-print.h: Likewise. * regrename.c: Likewise. * rtl.h: Likewise. * sched-rgn.c: Likewise. * target.h: Likewise. * value-prof.c: Likewise. * web.c: Likewise. From-SVN: r73795
2003-11-21* doc/invoke.texi: Mention dV and dZ.Kazu Hirata2-0/+10
From-SVN: r73794
2003-11-21invoke.texi: Update dump file names.Kazu Hirata2-42/+36
* doc/invoke.texi: Update dump file names. Remove de, dW, and dX. From-SVN: r73793
2003-11-20re PR c/13133 (Extraneous register-saves triggered by setjmp())James E Wilson2-9/+6
PR c/13133 * reload1.c (reload): Delete special handling for setjmp. From-SVN: r73791
2003-11-21mklibgcc.in: Evaluate shlib_slibdir_qual during link step too.Andreas Tobler4-5/+19
2003-11-21 Andreas Tobler <a.tobler@schweiz.ch> * mklibgcc.in: Evaluate shlib_slibdir_qual during link step too. * config/t-slibgcc-darwin: Adjust install path. * config/rs6000/t-darwin: Revert multilib matches since it is not used on darwin. From-SVN: r73790
2003-11-20ssa.c, [...]: Remove files.Richard Henderson20-4548/+44
* ssa.c, ssa-dce.c, ssa-ccp.c: Remove files. * Makefile.in (OBJS-common, GTFILES): Don't reference them. (gtype-desc.o, toplev.o, flow.o): Remove ssa.h. (ssa.o, ssa-dce.o, ssa-ccp.o): Remove. * flow.c: Don't include ssa.h. (set_phi_alternative_reg): Remove. (calculate_global_regs_live): Don't call it. (mark_used_regs): Don't handle PHI. * gengtype.c (open_base_files): Don't reference ssa.h. * rtl.def (PHI): Remove. * timevar.def (TV_TO_SSA, TV_SSA_CCP, TV_SSA_DCE, TV_FROM_SSA): Kill. * common.opt: Remove -fssa, -fssa-ccp, -fssa-dce. * opts.c (common_handle_option): Likewise. * toplev.c (f_options): Likewise. (DFI_ssa, DFI_ssa_ccp, DFI_ssa_dce, DFI_ussa): Remove. (dump_file): Update to match. (flag_ssa, flag_ssa_ccp, flag_ssa_dce): Remove. (rest_of_handle_ssa): Remove. (rest_of_compilation): Don't call it. * toplev.h (flag_ssa, flag_ssa_dce, flag_ssa_ccp): Remove. * doc/invoke.texi: Remove -fssa, -fssa-ccp, -fssa-dce. * doc/passes.texi (SSA optimizations): Remove. * gcc.dg/20020201-2.c: Remove. * gcc.dg/20020201-4.c: Remove. * gcc.dg/20020304-1.c: Remove. From-SVN: r73789
2003-11-21configure.in: Add xtensa-*-* targets to test for dwarf2 debug_line.Bob Wilson3-2/+7
* configure.in: Add xtensa-*-* targets to test for dwarf2 debug_line. * configure: Regenerate. From-SVN: r73786
2003-11-21Makefile.tpl (BASE_FLAGS_TO_PASS): Pass along CONFIG_SHELL.Kelley Cook2-0/+5
toplevel: 2003-11-20 Kelley Cook <kcook@gcc.gnu.org> * Makefile.tpl (BASE_FLAGS_TO_PASS): Pass along CONFIG_SHELL. (configure-build-[+module+], configure-[+module+]): Likewise. (configure-target-[+module+], configure-gcc, config.status): Likewise. * Makefile.in: Regenerate. gcc: 2003-11-20 Kelley Cook <kcook@gcc.gnu.org> * Makefile.in (Makefile): Pass along CONFIG_SHELL. From-SVN: r73784
2003-11-21Daily bump.GCC Administrator1-1/+1
From-SVN: r73782
2003-11-20Fix last ChangeLog entry. Move comment from ChangeLog to t-libunwind.Jim Wilson2-5/+5
From-SVN: r73778
2003-11-20Patch from David MosbergerDavid Mosberger3-4/+31
* config/t-libunwind: Mention unwind-c.c. (SHLIB_LC): Overwrite the default-value from t-slibgcc-elf-ver and mention -lunwind so that the resulting libgcc_s.so has the necessary DT_NEEDED entry for libunwind. * unwind-libunwind.c (_Unwind_GetCFA): Implement. (_Unwind_GetBSP) [UNW_TARGET_IA64]: New function. From-SVN: r73777
2003-11-20calls.c (expand_call): Allocate new temp in pass1.Fariborz Jahanian4-8/+58
2003-11-20 Fariborz Jahanian <fjahanian@apple.com> David Edelsohn <edelsohn@gnu.org> * calls.c (expand_call): Allocate new temp in pass1. (store_one_arg): If PARALLEL, calculate excess using mode size of rtvec elt. * expr.c (emit_push_insn): If PARALLEL, calculate offset using mode size of rtvec elt. * function.c (assign_parms): Use parm in register, if available. Co-Authored-By: David Edelsohn <edelsohn@gnu.org> From-SVN: r73775
2003-11-2035soccon.ads, [...]: New file, FreeBSD version.Arnaud Charlet6-0/+1187
* 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads, 56system.ads: New file, FreeBSD version. From-SVN: r73766
2003-11-20lib1funcs.asm (MOVP): Remove.Kazu Hirata2-6/+6
* config/h8300/lib1funcs.asm (MOVP): Remove. (ADDP): Likewise. (CMPP): Likewise. From-SVN: r73765
2003-11-20arm.c (use_return_insn): New argument, SIBLING.Richard Earnshaw5-16/+92
* arm.c (use_return_insn): New argument, SIBLING. Support returning with a single instruction if the stack has been decremented by 4 and we have a frame pointer. Update all callers. (output_return_instruction): Likewise. (arm_output_epilogue): Change argument to SIBLING. Calculate really_return from the new argument. Update all callers. * arm.h (USE_RETURN_INSN): Pass NULL for the sibling. * arm.md (sibcall_epilogue): Call use_return_insn directly, and pass the sibling call. * arm-protos.h (use_return_insn, arm_output_epilogue): Update prototypes. From-SVN: r73761
2003-11-20exgettext: Use --copyright-holder and --msgid-bugs-address.Joseph Myers3-1992/+2031
* exgettext: Use --copyright-holder and --msgid-bugs-address. * gcc.pot: Regenerate. From-SVN: r73760
2003-11-20Makefile.in (extraclean): Delete.Joseph Myers17-45/+42
gcc: * Makefile.in (extraclean): Delete. * configure.in (target_list): Remove extraclean. * configure: Regenerate. * doc/makefile.texi, doc/sourcebuild.texi: Update. * objc/Make-lang.in (objc.extraclean): Delete. gcc/ada: * Make-lang.in (ada.extraclean): Delete. gcc/cp: * Make-lang.in (c++.extraclean): Delete. gcc/f: * Make-lang.in (f77.extraclean): Delete. gcc/java: * Make-lang.in (java.extraclean): Delete. gcc/treelang: * Make-lang.in (treelang.extraclean): Delete. From-SVN: r73759
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