OSDN Git Service

PR tree-optimization/43884
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
index de7d1b0..92f6d04 100644 (file)
@@ -1,3 +1,172 @@
+2011-01-22  Jan Hubicka  <jh@suse.cz>
+
+       PR tree-optimization/43884
+       PR lto/44334
+       * predict.c (maybe_hot_frequency_p): Use entry block frequency as an base.
+       * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
+
+2011-01-22  Anatoly Sokolov  <aesok@post.ru>
+
+       * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
+       * config/s390/s390.c (s390_register_move_cost,
+       s390_memory_move_cost): New.
+       (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
+
+2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
+
+       PR middle-end/47401
+       * except.c (sjlj_assign_call_site_values): Move setting the
+       crtl->uses_eh_lsda flag to ...
+       (sjlj_mark_call_sites): ... here.
+       (sjlj_emit_function_enter): Support NULL dispatch label.
+       (sjlj_build_landing_pads): In a function with no landing pads
+       that still has must-not-throw regions, generate code to register
+       a personality function with empty LSDA.
+
+2011-01-21  Richard Henderson  <rth@redhat.com>
+
+       * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
+
+       * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
+
+       * compare-elim.c: New file.
+       * Makefile.in (OBJS-common): Add it.
+       (compare-elim.o): New.
+       * common.opt (fcompare-elim): New.
+       * opts.c (default_options_table): Add OPT_fcompare_elim.
+       * tree-pass.h (pass_compare_elim_after_reload): New.
+       * passes.c (init_optimization_passes): Add it.
+       * recog.h: Protect against re-inclusion.
+       * target.def (TARGET_FLAGS_REGNUM): New POD hook.
+       * doc/invoke.texi (-fcompare-elim): Document it.
+       * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
+       * doc/tm.texi: Rebuild.
+
+2011-01-22  Nick Clifton  <nickc@redhat.com>
+
+       * config/rx/rx.md (cstoresf4): Pass comparison operator to
+       rx_split_fp_compare.
+
+2011-01-22  Nick Clifton  <nickc@redhat.com>
+
+       * config/rx/rx.md (UNSPEC_CONST): New.
+       (deallocate_and_return): Wrap the amount popped off the stack in
+       an UNSPEC_CONST in order to stop it being rejected by
+       -mmax-constant-size.
+       (pop_and_return): Add a "(return)" rtx.
+       (call): Drop the immediate operand.
+       (call_internal): Likewise.
+       (call_value): Likewise.
+       (call_value_internal): Likewise.
+       (sibcall_internal): Likewise.
+       (sibcall_value_internal): Likewise.
+       (sibcall): Likewise.  Generate an explicit call using
+       sibcall_internal.
+       (sibcall_value): Likewise.
+       (mov<>): FAIL if a constant operand is not legitimate.
+       (addsi3_unpsec): New pattern.
+
+       * config/rx/rx.c (rx_print_operand_address): Handle UNPSEC
+       CONSTs.
+       (ok_for_max_constant): New function.
+       (gen_safe_add): New function.
+       (rx_expand_prologue): Use gen_safe_add.
+       (rx_expand_epilogue): Likewise.
+       (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
+       UNSPEC CONSTs.
+
+2011-01-21  Jeff Law  <law@redhat.com>
+
+       PR tree-optimization/47053
+       * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
+       (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
+       statements are deleted.
+       (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
+       is nonempty, then purge dead edges and cleanup the CFG.
+
+2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
+
+       PR debug/47402
+       Temporarily revert:
+       2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
+       PR debug/47106
+       * tree-dfa.c (create_var_ann): Mark variable as used.
+
+2011-01-21  Jakub Jelinek  <jakub@redhat.com>
+
+       PR middle-end/45566
+       * except.c (convert_to_eh_region_ranges): Emit queued no-region
+       notes from other section in hot/cold partitioning even if
+       last_action is -3.  Increment call_site_base.
+
+       PR rtl-optimization/47366
+       * fwprop.c (forward_propagate_into): Return bool.  If
+       any changes are made, -fnon-call-exceptions is used and
+       REG_EH_REGION note is present, call purge_dead_edges
+       and return true if it purged anything.
+       (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
+       any EH edges were purged.
+
+2011-01-21  Jeff Law  <law@redhat.com>
+
+       PR rtl-optimization/41619
+       * caller-save.c (setup_save_areas): Break out code to determine
+       which hard regs are live across calls by examining the reload chains
+       so that it is always used.
+       Eliminate code which checked REG_N_CALLS_CROSSED.
+
+2011-01-21  Jakub Jelinek  <jakub@redhat.com>
+
+       PR tree-optimization/47355
+       * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
+       NOP has non-debug uses beyond PHIs in new_bb.
+
+2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
+
+       PR debug/47106
+       * cfgexpand.c (account_used_vars_for_block): Only account vars
+       that are annotated as used.
+       (estimated_stack_frame_size): Don't set TREE_USED.
+       * tree-dfa.c (create_var_ann): Mark variable as used.
+
+2011-01-21  Richard Guenther  <rguenther@suse.de>
+
+       PR middle-end/47395
+       * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
+
+2011-01-21  Richard Guenther  <rguenther@suse.de>
+
+       PR tree-optimization/47365
+       * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
+       (vn_reference_lookup_pieces): Adjust.
+       (vn_reference_lookup): Likewise.
+       * tree-ssa-sccvn.c (vn_walk_kind): New static global.
+       (vn_reference_lookup_3): Only look through kills if in
+       VN_WALKREWRITE mode.
+       (vn_reference_lookup_pieces): Adjust.
+       (vn_reference_lookup): Likewise.
+       (visit_reference_op_load): Likewise.
+       (visit_reference_op_store): Likewise.
+       * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
+       (compute_avail): Likewise.
+       (eliminate): Likewise.
+
+2011-01-21  Jakub Jelinek  <jakub@redhat.com>
+
+       * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
+       DECL_IGNORED_P non-reg vars if they are used.
+
+       PR tree-optimization/47391
+       * varpool.c (const_value_known_p): Return false if
+       decl is volatile.
+
+2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
+
+       PR bootstrap/47215
+       * config/i386/i386.c (ix86_local_alignment): Handle
+       case for va_list_type_node is nil.
+       (ix86_canonical_va_list_type): Likewise.
+
 2011-01-21  Alan Modra  <amodra@gmail.com>
 
        * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add