aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2004-09-23* builtins.c: Fix a comment typo.Kazu Hirata2-1/+5
From-SVN: r87947
2004-09-23profile.c (branch_prob): Do not verify flow info in the middle of the pass.Jan Hubicka2-4/+5
* profile.c (branch_prob): Do not verify flow info in the middle of the pass. From-SVN: r87946
2004-09-23Revert commit of testing BOOT_CFLAGSZdenek Dvorak1-1/+1
From-SVN: r87944
2004-09-23cfgloop.h (update_single_exits_after_duplication): Declare.Zdenek Dvorak15-15/+766
* cfgloop.h (update_single_exits_after_duplication): Declare. (loopify, split_loop_bb): Declaration changed. * cfgloopmanip.c (split_loop_bb): Take void * as an argument instead of rtx. (loopify): Added redirect_all_edges argument. (update_single_exits_after_duplication): Export. * loop-unswitch.c (unswitch_loop): Changed due to loopify change. * tree-flow.h (tree_duplicate_loop_to_header_edge, tree_ssa_loop_version): Declare. * tree-ssa-loop-manip.c (copy_phi_node_args, rename_variables, set_phi_def_stmts, tree_duplicate_loop_to_header_edge, lv_adjust_loop_header_phi, lv_adjust_loop_entry_edge, lv_update_pending_stmts, tree_ssa_loop_version): New functions. * tree-ssa-loop-unswitch.c: New file. * Makefile.in (tree-ssa-loop-unswitch.o): Add. * timevar.def (TV_TREE_LOOP_UNSWITCH): New timevar. * tree-flow.h (tree_ssa_unswitch_loops): Declare. * tree-optimize.c (init_tree_optimization_passes): Add pass_unswitch. * tree-pass.h (pass_unswitch): Declare. * tree-ssa-loop.c (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch, pass_unswitch): New pass. * doc/passes.texi: Documen tree level loop unswitching. * gcc.dg/tree-ssa/loop-6.c: New test. From-SVN: r87943
2004-09-23re PR c++/17596 (expression parser is too slow, should be rewritten)Paolo Bonzini2-312/+227
2004-09-23 Paolo Bonzini <bonzini@gnu.org> PR c++/17596 * parser.c (cp_parser_token_tree_map_node, cp_parser_pm_expression, cp_parser_additive_expression, cp_parser_multiplicative_expression, cp_parser_shift_expression, cp_parser_relational_expression, cp_parser_equality_expression, cp_parser_and_expression, cp_parser_exclusive_or_expression, cp_parser_inclusive_or_expression, cp_parser_logical_and_expression, cp_parser_logical_or_expression): Removed. (enum cp_parser_prec, struct cp_parser_token_tree_map_node, binops, binops_by_token): New. (cp_parser_assignment_expression): Use cp_parser_binary_expression. (cp_parser_new): Initialize binops_by_token. (cp_parser_binary_expression): Rewritten. (N_CP_TTYPES): New. From-SVN: r87942
2004-09-23*** empty log message ***Steven Bosscher1-1/+1
From-SVN: r87941
2004-09-23* parser.c: Fix a comment typo.Kazu Hirata2-1/+5
From-SVN: r87940
2004-09-23* cfgexpand.c, config/s390/tpf-eh.c: Fix comment typos.Kazu Hirata3-4/+8
From-SVN: r87939
2004-09-23re PR c++/17620 (Bogus error with duplicate base class breaks boost)Nathan Sidwell4-10/+35
cp: PR c++/17620 * decl.c (xref_basetypes): Look through typedefs before checking for duplicate base. testsuite: PR c++/17620 * g++.dg/inherit/base2.C: New. From-SVN: r87938
2004-09-23re PR ada/17540 (Duplicate symbols while building Ada)Robert Dewar3-28/+79
2004-09-23 Robert Dewar <dewar@gnat.com> PR ada/17540 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here, instead do this at freeze time (we won't do it if there is an address clause). Change "pragma inline" to "pragma Inline" in information and error messages. Minor reformatting. * freeze.adb (Check_Address_Clause): Remove previous change, not the right way of doing things after all. (Freeze_Entity): For object, set Is_Public for imported entities unless there is an address clause present. From-SVN: r87936
2004-09-23Added missing entry for latest commit.Eric Botcazou1-0/+11
From-SVN: r87931
2004-09-23builtins.c (simplify_builtin_va_start): Remove.Eric Christopher4-243/+131
2004-09-22 Eric Christopher <echristo@redhat.com> * builtins.c (simplify_builtin_va_start): Remove. (simplify_builtin): Ditto. (fold_builtin_strchr): Ditto. (simplify_builtin_*): Rename remainders to fold_builtin_*. (expand_builtin): Fix up for above changes. (fold_builtin_1): Add new folders. Change for above. (expand_builtin_va_start): Call fold_builtin_next_arg. * gimplify.c (gimplify_call_expr): Fix calls to simplify_builtin. * tree.h: Remove prototype for simplify_builtin. From-SVN: r87921
2004-09-23* Correct type in last changeLog entry iconv.m4 -> iconv.hR. Kelley Cook1-1/+1
From-SVN: r87915
2004-09-23re PR debug/17389 (ICE in dwarf2out_finish, at dwarf2out.c:13566)Jan Hubicka3-17/+14
PR debug/17389 * dwarf2out.c (dwarf2out_finish): Deal with nested functions of fully inlined functions. * tree-inline.c (inline_forbidden_p_1): Nested functions can be inlined. From-SVN: r87911
2004-09-23cfgexpand.c (add_reg_br_prob_note): New function.Jan Hubicka6-5/+74
* cfgexpand.c (add_reg_br_prob_note): New function. (expand_gimple_cond_expr): Use it. (tree_expand_cfg): No longer kill the profile. * cfgrt.c (rtl_verify_flow_info_1): Check profile consistency only if it is present. * passes.c (rest_of_handle_loop_optimize): Kill the profile. * predict.c (combine_predictions_for_insn): Set the probabilities based on REG_BR_PROB note if present. * predict.c (branch_prob): Profile is read only with flag_branch_probabilities. From-SVN: r87910
2004-09-23aclocal.m4: Add in gettext's m4 includes.Kelley Cook4-219/+600
2004-09-22 Kelley Cook <kcook@gcc.gnu.org> * aclocal.m4: Add in gettext's m4 includes. (AC_ICONV, AC_LCMESSAGES, GCC_PATH_PROG): Remove. * configure.ac: Add in check for iconv.m4 * configure: Regenerate. From-SVN: r87908
2004-09-23Daily bump.GCC Administrator1-1/+1
From-SVN: r87906
2004-09-2320001012-1.c: Add prototypes for builtin functions.Eric Botcazou8-3/+20
* gcc.dg/20001012-1.c: Add prototypes for builtin functions. * gcc.dg/20001012-2.c: Likewise. * gcc.dg/20001013-1.c: Likewise. * gcc.dg/20001101-1.c: Likewise. * gcc.dg/20001102-1.c: Likewise. * gcc.dg/bf-spl1.c: Likewise. * gcc.dg/titype-1.c: Remove special-casing for SPARC. * gcc.dg/20040813-1.c: Add missing "." to the regexp. From-SVN: r87902
2004-09-22gettext-sister.m4: Renamed from gettext.m4Kelley Cook2-1/+5
config/ 2004-09-22 Kelley Cook <kcook@gcc.gnu.org> * gettext-sister.m4: Renamed from gettext.m4 * codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4, po.m4, inttypes.m4, inttypes-pri.m4, inttypes_h.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4, nls.m4, progtest.m4, stdint_h.m4, uintmax_t.m4, ulonglong.m4: Import from gettext-0.12.1 sources. gcc/ 2004-09-22 Kelley Cook <kcook@gcc.gnu.org> * aclocal.m4: Update for rename of gettext-sister.m4. libcpp/ 2004-09-22 Kelley Cook <kcook@gcc.gnu.org> * Makefile.in (aclocal.m4): Update dependencies. * configure.ac (AC_CONFIG_MACRO_DIR): New. * aclocal.m4, configure: Regenerate. intl/ 2004-09-22 Kelley Cook <kcook@gcc.gnu.org> * configure.ac (AC_CONFIG_MACRO_DIR): New. (ACLOCAL, AUTOCONF, AUTOHEADER, MAINT): Substitute. * Makefile.in: Update with maintainer mode rules. * README: Update aclocal regeneration instructions. * aclocal.m4, configure: Regenerate. From-SVN: r87900
2004-09-22re PR tree-optimization/17587 (Mauve's UnicodeBase.java fails to compile)Daniel Berlin2-1/+7
2004-09-22 Daniel Berlin <dberlin@dberlin.org> Fix PR tree-optimization/17587 * tree-ssa-pre.c (fini_pre): Commit edge inserts here. (insert_aux): Instead of here. From-SVN: r87899
2004-09-22Fix minor nit.Eric Botcazou1-1/+1
From-SVN: r87898
2004-09-22re PR tree-optimization/16721 (Accesses to volatile objects optimized away)Diego Novillo5-3/+34
PR tree-optimization/16721 * tree-dfa.c (dump_variable): Show TREE_THIS_VOLATILE. * tree-ssa-alias.c (create_memory_tag): Move setting of TREE_THIS_VOLATILE ... (get_tmt_for): ... here. testsuite/ChangeLog PR tree-optimization/16721 * testsuite/gcc.dg/tree-ssa/pr16721.c: New test. From-SVN: r87895
2004-09-22sparc.md (cmove splitter): Fix formatting.Eric Botcazou2-5/+18
* config/sparc/sparc.md (cmove splitter): Fix formatting. (conditional_trap expander): Reject inappropriate CCmodes. (conditional trap expander): Use V9 syntax if possible. From-SVN: r87894
2004-09-2220030123-1.c: Add prototypes for builtin functions.Ulrich Weigand3-0/+10
* gcc.dg/20030123-1.c: Add prototypes for builtin functions. * gcc.dg/20040305-1.c: Likewise. From-SVN: r87893
2004-09-22re PR c/16566 (ICE with flexible arrays)Joseph Myers6-20/+53
PR c/16566 * c-typeck.c (build_component_ref): Don't special-case COMPOUND_EXPR. testsuite: * gcc.c-torture/compile/pr16566-1.c, gcc.c-torture/compile/pr16566-2.c, gcc.c-torture/compile/pr16566-3.c: New tests. From-SVN: r87892
2004-09-22dominance.c (verify_dominators): Don't SEGV if recount_dominator returns NULL.Frank Ch. Eigler2-2/+11
2004-09-22 Frank Ch. Eigler <fche@redhat.com> * dominance.c (verify_dominators): Don't SEGV if recount_dominator returns NULL. From-SVN: r87883
2004-09-22c-tree.texi (TRUTH_NOT_EXPR, [...]): Mention the restriction on types.Kazu Hirata2-4/+13
* doc/c-tree.texi (TRUTH_NOT_EXPR, TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR, TRUTH_XOR_EXPR): Mention the restriction on types. From-SVN: r87881
2004-09-22cp-tree.h (unemitted_tinfo_decls): Make a VEC(tree).Nathan Sidwell4-35/+23
* cp-tree.h (unemitted_tinfo_decls): Make a VEC(tree). * decl2.c (cp_finish_file): Adjust tinfo decl emission loop. * rtti.c (unemitted_tinfo_decls): Make a VEC(tree). (init_rtti_processing): Initialize it to something realistic. (get_tinfo_decl): Adjust pushing the new decl. From-SVN: r87872
2004-09-22* config/darwin.c (darwin_make_decl_one_only)Matt Austern2-2/+7
Allow coalesced symbol to appear in static archive's table of contents From-SVN: r87871
2004-09-22re PR tree-optimization/17512 (ICE in regex.c)Kazu Hirata4-22/+24
PR tree-optimization/17512 * convert.c (convert_to_integer): Don't handle TRUTH_*_EXPR as special cases. * testsuite/gcc.c-torture/compile/20040916-1.c. From-SVN: r87870
2004-09-22dbxout.c (get_lang_number): Do not define if ↵David Edelsohn2-0/+9
DBX_OUTPUT_MAIN_SOURCE_DIRECTORY is defined. * dbxout.c (get_lang_number): Do not define if DBX_OUTPUT_MAIN_SOURCE_DIRECTORY is defined. From-SVN: r87868
2004-09-22Add PR.David Edelsohn1-0/+1
From-SVN: r87861
2004-09-22rtems.h (TARGET_OS_CPP_BUILTINS): Add builtin_define ("__USE_INIT_FINI__").Ralf Corsepius2-0/+6
2004-09-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de> * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Add builtin_define ("__USE_INIT_FINI__"). From-SVN: r87858
2004-09-22s390-protos.h (s390_emit_tpf_eh_return): Add prototype.P.J. Darcy8-7/+325
2004-09-22 P.J. Darcy <darcypj@us.ibm.com> * config/s390/s390-protos.h (s390_emit_tpf_eh_return): Add prototype. * config/s390/s390.c (s390_emit_tpf_eh_return): New function. * config/s390/s390.h (TARGET_TPF): New macro. * config/s390/s390.md ("eh_return"): New expander. * config/s390/t-tpf (LIB2ADDEH): Use unwind-dw2-fde.c rather than unwind-dw2-fde-glibc.c. Add config/s390/tpf-eh.c. (LIB2ADDEHDEP): Remove unwind-dw2-fde.c. * config/s390/tpf.h (TARGET_TPF): Define to 1. (STACK_POINTER_OFFSET): Increase to 448. (TARGET_DEFAULT): Set -mtpf-trace on as default. (TPF_LOC_DIFF_OFFSET): New macro. (ASM_PREFERRED_EH_DATA_FORMAT): Redefine to always use absolute encoding. (__isPATrange): Add prototype. (MD_FALLBACK_FRAME_STATE_FOR): Define. * config/s390/tpf-eh.c: New file. From-SVN: r87857
2004-09-22fold-const.c (fold): Avoid non INTEGER_TYPEs when widening operands in an ↵Diego Novillo3-16/+11
integer comparison. * fold-const.c (fold): Avoid non INTEGER_TYPEs when widening operands in an integer comparison. * tree-cfg.c (find_taken_edge): Call fold() to determine whether the predicate is known. From-SVN: r87855
2004-09-22aclocal.m4: Import AM_PROG_CC_C_O and AM_AUX_DIR_EXPAND.Kelley Cook7-179/+304
gcc/ 2004-09-22 Kelley Cook <kcook@gcc.gnu.org> * aclocal.m4: Import AM_PROG_CC_C_O and AM_AUX_DIR_EXPAND. * configure.ac: Call AM_PROG_CC_C_O instead of AC_PROG_CC_C_O. Create build and doc directories along with the language directories. Don't create doc directory separately. * configure: Regenerate. * Makefile.in: Create all object and executables files built with the build compiler in a build/ directory. (genobjnames): Add missing build objects. (STAGESTUFF): Don't stage the gen* programs. (ggc-none.o): Define dependencies for the target compiler. (build-print-rtl.o): Rename to build/print-rtl.o. (build-errors.o): Rename to build/errors.o. (build-varray.o): Rename to build/varray.o. (maintainerclean): Delete the contents of the build directory. ($(genobjs): %.o): Explicitly use -o. (build/insn-conditions.o): Delete specfic rule to use generic rule. (build/gengtype-lex.o): Likewise. (build/gengtype-yacc.o): Likewise. (build/gcov-iov.o): Likewise. gcc/java 2004-09-22 Kelley Cook <kcook@gcc.gnu.org> * Make-lang.in: Revert the gcc-none.o change. From-SVN: r87854
2004-09-22cp-tree.h (struct lang_type_class): Remove marked flags, add diamond_shaped ↵Nathan Sidwell5-114/+75
and repeated_base flags. * cp-tree.h (struct lang_type_class): Remove marked flags, add diamond_shaped and repeated_base flags. Reorder to keep 8-bit blocks. (TYPE_MARKED_P): New. (CLASSTYPE_DIAMOND_SHAPED_P, CLASSTYPE_REPEATED_BASE_P): New. (CLASSTYPE_MARKED_N, SET_CLASSTYPE_MARKED_N, CLEAR_CLASSTYPE_MARKED_N): Remove. (CLASSTYPE_MARKED_*, SET_CLASSTYPE_MARKED_*, CLEAR_CLASSTYPE_MARKED_*): Remove. * decl.c (xref_basetypes): Use TYPE_MARKED_P. Determine diamond shaped and repeated base properties. * lex.c (cxx_make_type): Don't clear TYPE_ALIAS_SET. * rtti.c (dfs_class_hint_mark, dfs_class_hint_unmark, class_hint_flags): Remove. (get_pseudo_ti_init): Use CLASSTYPE_REPEATED_BASE_P and CLASSTYPE_DIAMOND_SHAPED_P. From-SVN: r87853
2004-09-22vec.h (VEC_space): Return true if there _is_ space.Nathan Sidwell4-5/+15
* vec.h (VEC_space): Return true if there _is_ space. (VEC_reserve): Adjust. * java/parse.y (patch_anonymous_class): VEC_space returns true if there is space. From-SVN: r87852
2004-09-22mips.c (mips_function_value): For o32, o64, n32 and n64, use FPRs for ↵Richard Sandiford2-0/+12
scalar, complex and vector types only. * config/mips/mips.c (mips_function_value): For o32, o64, n32 and n64, use FPRs for scalar, complex and vector types only. From-SVN: r87848
2004-09-22cp-lang.c (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Moved here from cp-objcp-common.h.Ziemowit Laski3-5/+14
[gcc/cp/ChangeLog] 2004-09-21 Ziemowit Laski <zlaski@apple.com> * cp-lang.c (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Moved here from cp-objcp-common.h. (objcp_tsubst_copy_and_build): Reformat function signature. * cp-objcp-common.h (objcp_tsubst_copy_and_build): Likewise. (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Moved to cp-lang.c. From-SVN: r87846
2004-09-21tree-ssa-dom.c (opt_stats): Move so that it lives just after the opt_stats_d ↵Jeff Law2-21/+91
structure. * tree-ssa-dom.c (opt_stats): Move so that it lives just after the opt_stats_d structure. (vrp_data): Change from a varray into a hash table. (vrp_hash_elt): New structure for elements in the vrp hash table. (vrp_hash, vrp_eq):New functions for hashing and testing equality in the vrp hash table. (tree_ssa_dominator_optimize): Initialize VRP_DATA. Reorganize initialization slightly to make it easier to read. No longer need to grow/clear the varray. Instead empty and delete the hash table. (dom_opt_finalize_block): Update due to change of VRP_DATA from a varray to a hash table. (simplify_cond_and_loop_avail_expr, record_range): Similarly. From-SVN: r87845
2004-09-21tree-ssa-ccp.c (get_default_value): If we have a constant value recorded for ↵Jeff Law3-2/+43
an SSA_NAME... * tree-ssa-ccp.c (get_default_value): If we have a constant value recorded for an SSA_NAME, then use that constant as the initial lattice value. (substitute_and_fold): Transfer equivalences discovered into SSA_NAME_EQUIV. * tree.h (SSA_NAME_EQUIV): Add comments. (SET_SSA_NAME_EQUIV): Similarly. From-SVN: r87844
2004-09-22linux64.h (PROCESSOR_DEFAULT64): Default to POWER4.David Edelsohn3-3/+8
* config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to POWER4. * config/rs6000/rs6000.c (rs6000_adjust_cost): dep_insn is used. From-SVN: r87843
2004-09-22c-decl.c (implicitly_declare): Call maybe_apply_renaming_pragma.Mark Mitchell4-2/+35
* c-decl.c (implicitly_declare): Call maybe_apply_renaming_pragma. (finish_decl): Likewise. From-SVN: r87840
2004-09-21tree.def (VEC_COND_EXPR): New tree node.Devang Patel3-1/+19
* tree.def (VEC_COND_EXPR): New tree node. * tree-ssa-operands.c (get_expr_operands): Handle VEC_COND_EXPR. From-SVN: r87839
2004-09-22objc-act.c (objc_fold_objc_type_ref): New function.Ziemowit Laski3-0/+33
[gcc/objc/ChangeLog] 2004-09-21 Ziemowit Laski <zlaski@apple.com> * objc-act.c (objc_fold_objc_type_ref): New function. * objc-act.h (objc_fold_objc_type_ref): New prototype. From-SVN: r87838
2004-09-22darwin-tramp.asm: Add __ppc64__ case.Stan Shebs3-1/+14
* config/rs6000/darwin-tramp.asm: Add __ppc64__ case. * config/rs6000/darwin-world.asm: Likewise. From-SVN: r87836
2004-09-22tree-ssa.c (verify_def): Use print_generic_stmt, not debug_generic_stmt.Daniel Berlin2-8/+16
2004-09-21 Daniel Berlin <dberlin@dberlin.org> * tree-ssa.c (verify_def): Use print_generic_stmt, not debug_generic_stmt. (verify_use): Ditto. (verify_phi_args): Ditto. (verify_ssa): Ditto. From-SVN: r87835
2004-09-22Daily bump.GCC Administrator1-1/+1
From-SVN: r87833
2004-09-21varasm.c (default_assemble_integer): Return false for values wider than the ↵Paul Brook2-0/+8
target word size. * varasm.c (default_assemble_integer): Return false for values wider than the target word size. Works around GAS bug. From-SVN: r87827