1. 14 Nov, 2013 31 commits
  2. 13 Nov, 2013 9 commits
    • gimple-walk.h: New File. · 5be5c238
      
      	* gimple-walk.h: New File.  Relocate prototypes from gimple.h.
      	(struct walk_stmt_info):  Relocate here from gimple.h.
      	* gimple-iterator.h: New File.  Relocate prototypes from gimple.h.
      	(struct gimple_stmt_iterator_d): Relocate here from gimple.h.
      	(gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
      	gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
      	gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
      	gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
      	gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
      	* gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
      	(gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
      	gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
      	gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
      	gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
      	gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
      	(struct walk_stmt_info): Move to gimple-walk.h.
      	(gimple_seq_set_location): Move to gimple.c
      	* gimple-walk.c: New File.
      	(walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
      	walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
      	walk_stmt_load_store_ops): Relocate here from gimple.c.
      	* gimple-iterator.c: Include gimple-iterator.h.
      	* gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
      	walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
      	walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
      	gimple-walk.c.
      	(gimple_seq_set_location): Relocate from gimple.h.
      	* tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
      	* tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
      	* gengtype.c (open_base_files): Add gimple-iterator.h to include list.
      	* Makefile.in (OBJS): Add gimple-walk.o
      
      	* asan.c: Update Include list as required for gimple-iterator.h and
      	gimple-walk.h.
      	* cfgexpand.c: Likewise.
      	* cfgloop.c: Likewise.
      	* cfgloopmanip.c: Likewise.
      	* cgraph.c: Likewise.
      	* cgraphbuild.c: Likewise.
      	* cgraphunit.c: Likewise.
      	* gimple-fold.c: Likewise.
      	* gimple-low.c: Likewise.
      	* gimple-pretty-print.c: Likewise.
      	* gimple-ssa-isolate-paths.c: Likewise.
      	* gimple-ssa-strength-reduction.c: Likewise.
      	* gimple-streamer-in.c: Likewise.
      	* gimple-streamer-out.c: Likewise.
      	* gimplify.c: Likewise.
      	* graphite-blocking.c: Likewise.
      	* graphite-clast-to-gimple.c: Likewise.
      	* graphite-dependences.c: Likewise.
      	* graphite-interchange.c: Likewise.
      	* graphite-optimize-isl.c: Likewise.
      	* graphite-poly.c: Likewise.
      	* graphite-scop-detection.c: Likewise.
      	* graphite-sese-to-poly.c: Likewise.
      	* graphite.c: Likewise.
      	* ipa-inline-analysis.c: Likewise.
      	* ipa-profile.c: Likewise.
      	* ipa-prop.c: Likewise.
      	* ipa-pure-const.c: Likewise.
      	* ipa-split.c: Likewise.
      	* lto-streamer-in.c: Likewise.
      	* lto-streamer-out.c: Likewise.
      	* omp-low.c: Likewise.
      	* predict.c: Likewise.
      	* profile.c: Likewise.
      	* sese.c: Likewise.
      	* tracer.c: Likewise.
      	* trans-mem.c: Likewise.
      	* tree-call-cdce.c: Likewise.
      	* tree-cfg.c: Likewise.
      	* tree-cfgcleanup.c: Likewise.
      	* tree-complex.c: Likewise.
      	* tree-data-ref.c: Likewise.
      	* tree-dfa.c: Likewise.
      	* tree-eh.c: Likewise.
      	* tree-emutls.c: Likewise.
      	* tree-if-conv.c: Likewise.
      	* tree-inline.c: Likewise.
      	* tree-into-ssa.c: Likewise.
      	* tree-loop-distribution.c: Likewise.
      	* tree-nested.c: Likewise.
      	* tree-nrv.c: Likewise.
      	* tree-object-size.c: Likewise.
      	* tree-outof-ssa.c: Likewise.
      	* tree-parloops.c: Likewise.
      	* tree-predcom.c: Likewise.
      	* tree-profile.c: Likewise.
      	* tree-scalar-evolution.c: Likewise.
      	* tree-sra.c: Likewise.
      	* tree-ssa-ccp.c: Likewise.
      	* tree-ssa-coalesce.c: Likewise.
      	* tree-ssa-copy.c: Likewise.
      	* tree-ssa-copyrename.c: Likewise.
      	* tree-ssa-dce.c: Likewise.
      	* tree-ssa-dom.c: Likewise.
      	* tree-ssa-dse.c: Likewise.
      	* tree-ssa-forwprop.c: Likewise.
      	* tree-ssa-ifcombine.c: Likewise.
      	* tree-ssa-live.c: Likewise.
      	* tree-ssa-loop-ch.c: Likewise.
      	* tree-ssa-loop-im.c: Likewise.
      	* tree-ssa-loop-ivcanon.c: Likewise.
      	* tree-ssa-loop-ivopts.c: Likewise.
      	* tree-ssa-loop-manip.c: Likewise.
      	* tree-ssa-loop-niter.c: Likewise.
      	* tree-ssa-loop-prefetch.c: Likewise.
      	* tree-ssa-loop.c: Likewise.
      	* tree-ssa-math-opts.c: Likewise.
      	* tree-ssa-phiopt.c: Likewise.
      	* tree-ssa-phiprop.c: Likewise.
      	* tree-ssa-pre.c: Likewise.
      	* tree-ssa-propagate.c: Likewise.
      	* tree-ssa-reassoc.c: Likewise.
      	* tree-ssa-sink.c: Likewise.
      	* tree-ssa-strlen.c: Likewise.
      	* tree-ssa-structalias.c: Likewise.
      	* tree-ssa-tail-merge.c: Likewise.
      	* tree-ssa-ter.c: Likewise.
      	* tree-ssa-threadedge.c: Likewise.
      	* tree-ssa-threadupdate.c: Likewise.
      	* tree-ssa-uncprop.c: Likewise.
      	* tree-ssa-uninit.c: Likewise.
      	* tree-ssa.c: Likewise.
      	* tree-stdarg.c: Likewise.
      	* tree-switch-conversion.c: Likewise.
      	* tree-tailcall.c: Likewise.
      	* tree-vect-data-refs.c: Likewise.
      	* tree-vect-generic.c: Likewise.
      	* tree-vect-loop-manip.c: Likewise.
      	* tree-vect-loop.c: Likewise.
      	* tree-vect-patterns.c: Likewise.
      	* tree-vect-slp.c: Likewise.
      	* tree-vect-stmts.c: Likewise.
      	* tree-vectorizer.c: Likewise.
      	* tree-vrp.c: Likewise.
      	* tree.c: Likewise.
      	* tsan.c: Likewise.
      	* value-prof.c: Likewise.
      	* vtable-verify.c: Likewise.
      
      	* config/aarch64/aarch64-builtins.c: Include gimple-iterator.h.
      	* config/rs6000/rs6000.c: Include gimple-iterator.h and gimple-walk.h.
      	* testsuite/g++.dg/plugin/selfassign.c: Include gimple-iterator.h.
      	* testsuite/gcc.dg/plugin/selfassign.c: Likewise.
      
      From-SVN: r204763
      Andrew Macleod committed
    • gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment fix. · d35e43b9
      * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment fix.
      
      From-SVN: r204762
      Steven Bosscher committed
    • re PR middle-end/59119 (Segfault in -fisolate-erroneous-paths pass) · 56d338c9
      	* PR middle-end/59119
      	* gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
      	function, extracted from gimple_ssa_isolate_erroneous_paths.
      	(find_explicit_erroneous_behaviour): Similarly.
      	(insert_trap_and_remove_trailing_statements): Remove statements
      	in reverse order.
      
      	* PR middle-end/59119
      	* gcc.c-torture/compile/pr59119.c: New test.
      
      From-SVN: r204760
      Jeff Law committed
    • typo fix · 98eaa66f
      From-SVN: r204759
      Steven Bosscher committed
    • cfgrtl.c (can_fallthru): Reorder code to move tablejump check up. · d7b6661b
      
      	* cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
      	Make that check explicit.  BB_HEAD cannot be NULL, remove check for it.
      	* haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
      	looking at INSN_CODE.
      	* reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
      	active_insn_p object, respect basic block boundaries.
      	* reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
      	follows immediately after the jump table data label.
      	* config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
      	* config/sh/sh.c (barrier_align): Likewise.  Rearrange code such
      	that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
      
      From-SVN: r204758
      Steven Bosscher committed
    • re PR sanitizer/59009 (libsanitizer merge from upstream r191666 breaks bootstrap… · c3d77f3a
      re PR sanitizer/59009 (libsanitizer merge from upstream r191666 breaks bootstrap on powerpc64-linux and aarch64-linux)
      
      	PR sanitizer/59009
      	* sanitizer_common/sanitizer_platform_limits_posix.cc: Temporarily
      	ifdef out more source.
      
      From-SVN: r204757
      Peter Bergner committed
    • re PR ipa/58862 (LTO profiledbootstrap failure: lto1: ICE in edge_badness, at ipa-inline.c:1008) · 4c7d0777
      2013-11-13  Teresa Johnson  <tejohnson@google.com>
      
      	PR ipa/58862
      	* predict.c (drop_profile): Error is currently too strict.
      	(handle_missing_profiles): Pass call_count to drop_profile.
      
      From-SVN: r204756
      Teresa Johnson committed
    • re PR ipa/58862 (LTO profiledbootstrap failure: lto1: ICE in edge_badness, at ipa-inline.c:1008) · 51f5c118
      2013-11-13  Teresa Johnson  <tejohnson@google.com>
      
      	PR ipa/58862
      	* ipa-inline.c (edge_badness): Fix overflow.
      
      From-SVN: r204755
      Teresa Johnson committed
    • re PR rtl-optimization/59036 (Performance degradation after r204212 on 32-bit x86 targets.) · bf08fb16
      2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
      
      	PR rtl-optimization/59036
      	* ira-color.c (struct allocno_color_data): Add new members
      	first_thread_allocno, next_thread_allocno, thread_freq.
      	(sorted_copies): New static var.
      	(allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move
      	up.
      	(allocno_thread_conflict_p, merge_threads)
      	(form_threads_from_copies, form_threads_from_bucket)
      	(form_threads_from_colorable_allocno, init_allocno_threads): New
      	functions.
      	(bucket_allocno_compare_func): Add comparison by thread frequency
      	and threads.
      	(add_allocno_to_ordered_bucket): Rename to
      	add_allocno_to_ordered_colorable_bucket.  Remove parameter.
              (push_only_colorable): Call form_threads_from_bucket.
      	(color_pass): Call init_allocno_threads.  Use
      	consideration_allocno_bitmap instead of coloring_allocno_bitmap
      	for nuillify allocno color data.
      	(ira_initiate_assign, ira_finish_assign): Allocate/free
      	sorted_copies.
      	(coalesce_allocnos): Use static sorted copies.
      
      From-SVN: r204752
      Vladimir Makarov committed