fold-const.c (fold_binary_op_with_conditional_arg): Fix typo ordering ops from earlie...
[gcc.git] / gcc / ChangeLog
index 22615e178d6ab8497897a2e6c1b9229db4525e0d..ccb32deb92679467482aa00521cf0b40bc5a10c9 100644 (file)
@@ -1,3 +1,210 @@
+2005-03-07  David Edelsohn  <edelsohn@gnu.org>
+
+       * fold-const.c (fold_binary_op_with_conditional_arg): Fix typo
+       ordering ops from earlier change.
+
+2005-03-07  Per Bothner  <per@bothner.com>
+
+       Various fixes to allow us to again build if --enable-mapped-location:
+       * c-decl.c (finish_function): Use SET_EXPR_LOCATION instead of
+       unavailable annotate_with_file_line, if USE_MAPPED_LOCATION.
+       * tree-cfg.c (remove_bb): If USE_MAPPED_LOCATION, change type of
+       local variable loc. Change logic appropriately.
+       * tree-vect-transform.c (vect_finish_stmt_generation): Use
+       EXPR_LOCATION rather than EXPR_LOCUS if USE_MAPPED_LOCATION.    
+       * c-parser.c (c_parser_for_statement): Initialize loc variable.
+       * tree.h (DECL_IS_BUILTIN): Temporarily revert definition of
+       DECL_IS_BUILTIN in the USE_MAPPED_LOCATION because of jc1 issues.
+
+2005-03-07  Richard Sandiford  <rsandifo@redhat.com>
+
+       PR rtl-optimization/19683
+       * reload1.c (choose_reload_regs): Pass the number of bits, not the
+       number of bytes, to smallest_int_for_mode.  Fix arguments to
+       REG_CANNOT_CHANGE_MODE_P.
+
+2005-03-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       * reorg.c (relax_delay_slots): Check that the jump is
+       conditional before trying to invert it.
+
+2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * bb-reorder.c (max_entry_frequency, max_entry_frequency):
+       Make them static.
+
+       * calls (stack_arg_under_construction): Make it static.
+
+       * flow.c (regs_live_at_setjmp): Make it static.
+       * flow.h: Remove the corresponding prototype.
+
+       * reload1.c (reload_startobj, reload_firstobj,
+       something_needs_operands_changed, reload_inherited,
+       reload_inheritance_insn, reload_override_in,
+       reload_spill_index): Make them static.
+
+       * recog.c (verify_changes): Make it static.
+       * recog.h: Remove the corresponding prototype.
+
+       * cfgbuild.c (find_sub_basic_blocks): Remove.
+       * basic-block.h: Remove the corresponding prototype.
+       * cfgexpand.c, cfgrtl.c: Don't mention find_sub_basic_blocks
+       in comments.
+       * doc/cfg.texi: Don't mention find_sub_basic_blocks.
+
+       * tree-ssa-operands.c (check_build_stmt): Remove.
+
+       * stor-layout.c (set_alignment): Remove.
+       * tree.h: Remove the corresponding prototype.
+
+       * tree-ssa-pre.c (has_abnormal_preds): Make it static.
+
+       * tree-ssa-dce.c (control_dependence_map,
+       visited_control_parents): Make them static.
+
+       * cfghooks.c (verify_flow_info): Remove local variable
+       num_bb_notes.
+
+       * cfgrtl.c (rtl_verify_flow_info_1): Remove local variable
+       last_bb_seen.
+
+       * loop-unswitch.c (unswitch_loop): Remove local variable src.
+
+2005-03-07  David Billinghurst <David.Billinghurst@riotinto.com>
+
+       * config/i386/cygwin1.c(mingw_scan): Use xstrdup in calls to putenv.
+
+2005-03-07  Joseph S. Myers  <joseph@codesourcery.com>
+
+       * 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  <kazu@cs.umass.edu>
+
+       * 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  <edelsohn@gnu.org>
+
+       * 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  <marekm@amelek.gda.pl>
+
+       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  <kazu@cs.umass.edu>
+
+       * 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  <dvorakz@suse.cz>
+
+       * cse.c (find_best_addr): Use canon_for_address.
+
+2005-03-06  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * 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  <kazu@cs.umass.edu>
+
+       * fold-const.c (fold_binary): Avoid directly using the original
+       expression t as much as possible.
+
+2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * 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  <phython@gcc.gnu.org>
+
+       * 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  <kazu@cs.umass.edu>
+
+       * 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  <rsandifo@redhat.com>
+
+       * 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  <dpatel@apple.com>
        
        PR tree-optimization/18815
            Joseph S. Myers  <joseph@codesourcery.com>
 
        PR c++/19797
-       * elf.h, pa64-hpux.h, som.h (ASM_OUTPUT_EXTERNAL_REAL): Define.
+       * 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