X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2FChangeLog;h=e5833947362b82e82c4e3784e01df10229900f74;hb=fbbbfe26e729cd98f6d787b1b0e9153276ed088d;hp=b89ef0a9046b02b63a597acac72586f592fc7b32;hpb=8a2947feb37068d42107322a7512c68a12410ced;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b89ef0a9046..e5833947362 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,325 @@ +2005-03-07 Kazu Hirata + + * bb-reorder.c (max_entry_frequency, max_entry_frequency): + Make them static. + + * calls (stack_arg_under_construction): Make it static. + +2005-03-07 David Billinghurst + + * config/i386/cygwin1.c(mingw_scan): Use xstrdup in calls to putenv. + +2005-03-07 Joseph S. Myers + + * config/ia64/hpux.h (LINK_SPEC): Add -z. + * config/ia64/ia64.c (ia64_function_value): Return a REG not a + PARALLEL for an empty structure. + +2005-03-07 Kazu Hirata + + * fold-const.c (fold_binary): Remove handling of RANGE_EXPR. + + * fold-const.c (fold_binary): Unroll the very first "for" + loop. + +2005-03-06 David Edelsohn + + * config/rs6000/predicates.md (branch_comparison_operator): Remove + redundant match_code test. + (scc_comparison_operator): Swap match_operand and match_code + tests. + (branch_positive_comparison_operator): Same. + (trap_comparison_operator): Use comparison_operator and swap with + match_code test. + +2005-03-06 Marek Michalkiewicz + + PR target/20288 + * config/avr/avr.c (print_operand): Add 'p' and 'r'. + (out_movhi_r_mr): Read low byte of volatile MEM first. + (out_movhi_mr_r): Write high byte of volatile MEM first. + +2005-03-05 Kazu Hirata + + * cselib.c (reg_values, reg_values_size): Make them static. + + * cse.c (cse_reg_info_table): Make it static. + + * fold-const.c (fold_unary): Use build1 instead of copy_node. + +2005-03-06 Zdenek Dvorak + + * cse.c (find_best_addr): Use canon_for_address. + +2005-03-06 Kazu Hirata + + * cse.c (fold_rtx_subreg, fold_rtx_mem): New. + (fold_rtx): Call fold_rtx_subreg and fold_rtx_mem to handle + SUBREG and MEM, respectively. + + * fold-const.c (fold_binary): Use code instead of t. + + * fold-const.c (optimize_minmax_comparison): Take decomposed + arguments code, type, op0, and op1 instead of t. + (fold_binary): Update a call to optimize_minmax_comparison. + + * fold-const.c (fold_range_test): Take decomposed arguments + code, type, op0, and op1 instead of t. + (fold_binary): Update a call to fold_range_test. + + * fold-const.c (fold_binary_op_with_conditional_arg): Take + decomposed arguments code, type, op0, and op1 instead of t. + (fold_binary): Update a call to fold_range_test. + +2005-03-06 Kazu Hirata + + * fold-const.c (fold_binary): Avoid directly using the original + expression t as much as possible. + +2005-03-05 Kazu Hirata + + * c-semantics.c (build_stmt): Use TYPE_P instead of + IS_NON_TYPE_CODE_CLASS. + * tree.h (IS_NON_TYPE_CODE_CLASS): Remove. + (NON_TYPE_CHECK): Use TYPE_P instead of + IS_NON_TYPE_CODE_CLASS. + + * fold-const.c (fold): Remove handling of binary expressions. + +2005-03-05 James A. Morrison + + * doc/c-tree.texi: Wrap comments in @r{}. + * doc/cpp.texi: Likewise. + * doc/cppinternals.texi: Likewise. + * doc/extend.texi: Likewise. + * doc/md.texi: Likewise. + * doc/objc.texi: Likewise. + * doc/sourcebuild.texi: Likewise. + * doc/tm.texi: Likewise. + * doc/tree-ssa.texi + +2005-03-05 Kazu Hirata + + * predict.c (apply_return_prediction): Standardize PHI chain + walking. + * tree-ssa.c (ssa_redirect_edge): Likewise. + + * genattrtab.c, genemit.c, genoutput.c, genrecog.c, + gensupport.c, jump.c, tree-phinodes.c, unwind-dw2-fde-glibc.c: + Update copyright. + + * tree-phinodes.c (remove_phi_node): Drop the last argument. + * tree-flow.h: Adjust the prototype for remove_phi_node. + * lambda-code.c (perfect_nestify): Adjust a call to + remove_phi_node. + * tree-cfg.c + (remove_phi_nodes_and_edges_for_unreachable_block): Likewise. + * tree-outof-ssa.c (eliminate_virtual_phis, remove_ssa_form): + Likewise. + * tree-ssa-dce.c (remove_dead_phis): Likewise. + * tree-ssa-loop-ivopts.c (remove_statement): Likewise. + * tree-ssa-pre.c (remove_dead_inserted_code): Likewise. + * tree-ssa.c (kill_redundant_phi_nodes): Likewise. + + * combine.c (simplify_and_const_int): Use gen_int_mode instead + of GEN_INT (trunc_int_for_mode (...)). + * loop-iv.c (iv_number_of_iterations): Likewise. + * postreload.c (reload_cse_move2add): Likewise. + * simplify-rtx.c (simplify_const_unary_operation, + simplify_const_binary_operation): Likewise. + * stor-layout.c (get_mode_bounds): Likewise. + + * fold-const.c (fold_binary): New. + (fold): Call fold_binary on binary expressions. + +2005-03-05 Richard Sandiford + + * doc/invoke.texi: Document new MIPS -msym32 and -mno-sym32 options. + * config/mips/mips.h (MASK_SYM32, TARGET_SYM32): New macros. + (TARGET_SWITCHES): Add -msym32 and -mno-sym32. + (ABI_HAS_64BIT_SYMBOLS): Set to false if TARGET_SYM32. + (ASM_SPEC): Pass down -msym32 and -mno-sym32. + +2005-03-04 Devang Patel + + PR tree-optimization/18815 + * tree-if-conv.c (combine_blocks): Adjust loop header edges for + loops with zero exit edges. + +2005-03-04 Devang Patel + + * doc/invoke.texi: Remove reference to webpage that does not exist. + +2005-03-04 John David Anglin + Joseph S. Myers + + PR c++/19797 + * pa/elf.h, pa64-hpux.h, som.h (ASM_OUTPUT_EXTERNAL_REAL): Define. + (ASM_OUTPUT_EXTERNAL): Call pa_hpux_asm_output_external. + * pa-protos.h (pa_hpux_asm_output_external): Add prototype. + * pa.c (get_plabel): Change argument to symbol_ref. Call + maybe_get_identifier instead of get_identifier. + (pa_hpux_asm_output_external, pa_hpux_file_end): New functions. + (struct deferred_plabel): Replace name field with symbol field. + (TARGET_ASM_FILE_END): Define as pa_hpux_file_end if + ASM_OUTPUT_EXTERNAL_REAL is defined. + (output_global_address): Use output_addr_const for output of all + symbol_refs. + (output_deferred_plabels): Use symbol_ref instead of name for address + output. + * pa.h (SYMBOL_FLAG_REFERENCED, SYMBOL_REF_REFERENCED_P, + ASM_OUTPUT_SYMBOL_REF): New macros. + * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use assemble_name_raw. Update + comment. + (ASM_WEAKEN_LABEL): Use targetm.asm_out.globalize_label to globalize + label. + +2005-03-05 Joseph S. Myers + + * config.gcc (hppa*64*-*-hpux11*): Use pa/pa-hpux1111.h for + *-*-hpux11.[1-9]*, not just for *-*-hpux11.11. + +2005-03-04 Jeff Law + + * basic-block.h (rediscover_loops_after_threading): Declare. + * tree-ssa-dom.c: Include cfgloop.h. + (tree_ssa_dominator_optimize): Discover loops and some basic + properties. Remove forwarder blocks recreated by loop header + canonicalization. Also mark backedges in the CFG. + * tree-ssa-threadupdate.c: Include cfgloop.h + (rediscover_loops_after_threading): Define. + (struct local_info): New field, JUMP_THREADED. + (prune_undesirable_thread_requests): New function. + (redirect_edges): Clear EDGE_ABNORMAL. If edges were threaded + then record that fact for the callers of redirct_edges. + (thread_block): If BB has incoming backedges, then call + prune_undesirable_thraed_requests. Note when we are + going to have to rediscover loop information. Return a + boolean indicating if any jumps were threaded. + (thread_through_all_blocks): Bubble up boolean indicating + if any jumps were threaded. + * Makefile.in (tree-ssa-dom.o): Depend on cfgloop.h + (tree-ssa-threadupdate.o): Similarly. + +2005-03-04 Kazu Hirata + + * fold-const.c (fold_ternary): Unroll the "for" loop to + extract operands. + +2005-03-04 Andrew Haley + + * unwind-dw2-fde-glibc.c (struct + unw_eh_callback_data.check_cache): New field. + (frame_hdr_cache): New. + (_Unwind_IteratePhdrCallback): Add ext_dl_phdr_info. + Cache frame header info. + +2005-03-04 Richard Sandiford + + * rtl.h (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions) + (print_c_condition): Declare. + * read-rtl.c (ptr_loc): New structure. + (ptr_locs, ptr_loc_obstack, joined_conditions) + (joined_conditions_obstack): New variables. + (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc) + (get_rtx_ptr_loc, copy_rtx_ptr_loc, print_rtx_ptr_loc) + (join_c_conditions, print_c_condition): New functions. + (apply_macro_to_string): Associate the new string with the same + source location as the old one. + (add_condition_to_string): Use join_c_conditions. + (read_string): Use set_rtx_ptr_loc to record a filename and line + number for the string. + (read_rtx): Initialize the new variables above. + * genattrtab.c (write_test_expr, write_attr_value): Use + print_c_condition. + * genconditions.c (write_header): Don't define MAYBE_EVAL. Move its + comment above the GCC_VERSION check. + (write_one_condition): Use print_rtx_ptr_loc and print_c_condition. + Inline the definition of MAYBE_EVAL. + * genemit.c (gen_expand, gen_split): Use print_rtx_ptr_loc. + * genoutput.c (process_template): Likewise. + * genpreds.c (write_predicate_subfunction): Likewise. + (write_predicate_expr): Use print_c_condition. + * genrecog.c (write_cond): Likewise. + * gensupport.c (process_rtx): Use join_c_conditions to join the + conditions of a define_insn_and_split. Record a source location + for the string after the "&&". + (alter_test_for_insn): Use join_c_conditions. + +2005-03-04 Andrew Pinski + + Revert for now: + 2005-03-03 James A. Morrison + PR tree-optimization/15784 + * fold-const.c (fold): Fold ~A + 1 to -1. Fold -A - 1 + and -1 - A to ~A. + +2005-03-04 Ben Elliston + + * gcc.c (option_map): Add --coverage. + (LINK_COMMAND_SPEC): Pass -lgcov for `coverage'. + (cc1_options): Pass -fprofile-arcs -ftest-coverage for `coverage'. + * config/darwin.h: Pass -lgcov for `coverage'. + * doc/invoke.texi (Debugging Options): Document --coverage. + +2005-03-04 Kazu Hirata + + * gcse.c (bypass_block): Use find_edge wherever possible. + +2005-03-03 Daniel Berlin + + Fix PR debug/20253 + + * c-opts.c (c_common_parse_file): Call start_source_file + and end_source_file at the approriate times. + + * dwarf2out.c (dwarf2out_finish): Don't auto-end + the main file, it will be done for us now. + +2005-03-04 Kazu Hirata + + * fold-const.c (fold_ternary): New. + (fold): Call fold_ternary on ternary expressions. Remove + handling of ternary expressions. + +2005-03-03 James A. Morrison + + PR tree-optimization/15784 + * fold-const.c (fold): Fold ~A + 1 to -1. Fold -A - 1 + and -1 - A to ~A. + +2005-03-03 David Edelsohn + + * config/rs6000/predicates.md (branch_comparison_operator): + Convert from C block to conditional format. + +2005-03-03 Jan Hubicka + + * tree-dfa.c (add_referenced_var): Don't walk initializer of external + and non-constant public variables. + +2005-03-03 Kazu Hirata + + * tree-cfg.c (stmt_starts_bb_p): Clean up by replacing code + with LABEL_EXPR. + + * cfgexpand.c (construct_exit_block): Use EDGE_PRED instead of + EDGE_I. + + * tree-phinodes.c (remove_phi_node): Clean up by factoring out + calls to release_ssa_name and release_phi_node. + + * fold-const.c (fold): Remove handling of unary expressions. + + * fold-const.c (fold_unary): Avoid directly using the original + expression t as much as possible. + +2005-03-03 Roger Sayle + Andrew Pinski + + * jump.c (redirect_exp_1): If nlabel is a NULL pointer create a + RETURN rtx, and not a LABEL_REF containing a NULL pointer. + 2005-03-03 Hans-Peter Nilsson Describe special registers SRP and MOF as allocatable registers. @@ -31,7 +353,8 @@ (CRIS_MOF_REGNUM): New define_constants. ("*movsi_internal", "movhi", "movqi", "movsf"): Add alternatives for special registers. - ("reload_inhi", "reload_outhi", "reload_inqi", + ("reload_inhi", "reload_outhi", "reload_inqi", "reload_outqi"): + New patterns. ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3") ("mulsidi3", "umulsidi3", "smulsi3_highpart", "umulsi3_highpart"): Adjust for MOF being properly described as a register.