1. 02 May, 2013 1 commit
    • Follow-on patch to r197595 to complete the replacement of truncating divides in... · 8b47039c
      Follow-on patch to r197595 to complete the replacement of truncating divides
      in profile scaling code with rounding divide equivalents using helper routines
      in basic-block.h. 
      
      In addition to bootstrap and profiledbootstrap builds and tests (with and
      without LTO), I built and tested performance of the SPEC cpu2006 benchmarks
      with FDO on a Nehalem system. I didn't see any performance changes that
      looked significant.
      
      2013-05-02  Teresa Johnson  <tejohnson@google.com>
      
      	* loop-unswitch.c (unswitch_loop): Use helper routines with rounding
              divides.
      	* cfg.c (update_bb_profile_for_threading): Ditto.
      	* tree-inline.c (copy_bb): Ditto.
      	(copy_edges_for_bb): Ditto.
      	(initialize_cfun): Ditto.
      	(copy_cfg_body): Ditto.
      	(expand_call_inline): Ditto.
      	* ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
      	(estimate_node_size_and_time): Ditto.
      	(inline_merge_summary): Ditto.
      	* cgraphclones.c (cgraph_clone_edge): Ditto.
      	(cgraph_clone_node): Ditto.
      	* sched-rgn.c (compute_dom_prob_ps): Ditto.
      	(compute_trg_info): Ditto.
      
      From-SVN: r198532
      Teresa Johnson committed
  2. 30 Apr, 2013 1 commit
    • function.h (loops_for_fn): New inline function. · 0fc822d0
      2013-04-30  Richard Biener  <rguenther@suse.de>
      
      	* function.h (loops_for_fn): New inline function.
      	(set_loops_for_fn): Likewise.
      	* cfgloop.h (place_new_loop): Add struct function parameter.
      	(get_loop): Likewise.
      	(get_loops): Likewise.
      	(number_of_loops): Likewise.
      	(fel_next): Adjust.
      	(fel_init): Likewise.
      	* cfg.c (get_loop_copy): Adjust.
      	* cfgloop.c (flow_loops_dump): Likewise.
      	(record_loop_exits): Likewise.
      	(verify_loop_structure): Likewise.
      	* cfgloopanal.c (mark_irreducible_loops): Likewise.
      	(estimate_reg_pressure_cost): Likewise.
      	(mark_loop_exit_edges): Likewise.
      	* cfgloopmanip.c (place_new_loop): Likewise.
      	(add_loop): Likewise.
      	(duplicate_loop): Likewise.
      	* graph.c (draw_cfg_nodes): Likewise.
      	* graphite-clast-to-gimple.c (translate_clast_user): Likewise.
      	* graphite-sese-to-poly.c (build_scop_scattering): Likewise.
      	(extract_affine_chrec): Likewise.
      	(build_scop_iteration_domain): Likewise.
      	* graphite.c (graphite_initialize): Likewise.
      	* ira-build.c (create_loop_tree_nodes): Likewise.
      	(more_one_region_p): Likewise.
      	(rebuild_regno_allocno_maps): Likewise.
      	(mark_loops_for_removal): Likewise.
      	(mark_all_loops_for_removal): Likewise.
      	(remove_unnecessary_regions): Likewise.
      	(ira_build): Likewise.
      	* ira-emit.c (setup_entered_from_non_parent_p): Likewise.
      	* loop-init.c (fix_loop_structure): Likewise.
      	(gate_rtl_move_loop_invariants): Likewise.
      	(gate_rtl_unswitch): Likewise.
      	(gate_rtl_unroll_and_peel_loops): Likewise.
      	(rtl_doloop): Likewise.
      	* lto-streamer-in.c (input_cfg): Likewise.
      	* lto-streamer-out.c (output_cfg): Likewise.
      	* modulo-sched.c (sms_schedule): Likewise.
      	* predict.c (tree_estimate_probability): Likewise.
      	(tree_estimate_probability_driver): Likewise.
      	(estimate_loops): Likewise.
      	* tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
      	(move_sese_region_to_fn): Likewise.
      	(debug_loop_num): Likewise.
      	* tree-chrec.c (chrec_evaluate): Likewise.
      	(hide_evolution_in_other_loops_than_loop): Likewise.
      	(chrec_component_in_loop_num): Likewise.
      	(reset_evolution_in_loop): Likewise.
      	(evolution_function_is_invariant_rec_p): Likewise.
      	* tree-if-conv.c (main_tree_if_conversion): Likewise.
      	* tree-inline.c (copy_loops): Likewise.
      	(copy_cfg_body): Likewise.
      	(tree_function_versioning): Likewise.
      	* tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
      	* tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
      	Likewise.
      	(add_to_evolution_1): Likewise.
      	(scev_const_prop): Likewise.
      	* tree-scalar-evolution.h (get_chrec_loop): Likewise.
      	* tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
      	* tree-ssa-loop-im.c (analyze_memory_references): Likewise.
      	(tree_ssa_lim_initialize): Likewise.
      	* tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
      	(verify_loop_closed_ssa): Likewise.
      	* tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
      	(tree_ssa_loop_im): Likewise.
      	(tree_ssa_loop_unswitch): Likewise.
      	(tree_vectorize): Likewise.
      	(check_data_deps): Likewise.
      	(tree_ssa_loop_ivcanon): Likewise.
      	(tree_ssa_loop_bounds): Likewise.
      	(tree_complete_unroll): Likewise.
      	(tree_complete_unroll_inner): Likewise.
      	(tree_parallelize_loops): Likewise.
      	(tree_ssa_loop_prefetch): Likewise.
      	(tree_ssa_loop_ivopts): Likewise.
      	* tree-ssa.c (execute_update_addresses_taken): Liekwise.
      	* tree-vectorizer.c (vectorize_loops): Likewise.
      
      From-SVN: r198441
      Richard Biener committed
  3. 08 Apr, 2013 1 commit
    • First phase of unifying the computation of profile scale factors/probabilities… · 8ddb5a29
      First phase of unifying the computation of profile scale factors/probabilities and the actual scaling to use rounding divides...
      
      First phase of unifying the computation of profile scale factors/probabilities
      and the actual scaling to use rounding divides:
      - Add new macro GCOV_COMPUTE_SCALE to basic-block.h to compute the scale
      factor/probability via a rounding divide.
      - Change all locations that already perform rounding divides (inline or via RDIV)
      to use the appropriate helper: GCOV_COMPUTE_SCALE, apply_probability or
      combine_probabilities.
      - Change ipa-cp.c truncating divides to use rounding divides.
      - Add comments to all other locations (currently using truncating divides) to
      switch them to one of the helpers so they use a rounding divide.
      
      Next phase will be to replace the locations using truncating divides, marked
      with a comment here, into rounding divides via the helper methods.
      
      2013-04-08  Teresa Johnson  <tejohnson@google.com>
      
      	* basic-block.h (GCOV_COMPUTE_SCALE): Define.
      	* ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
              methods.
      	(estimate_edge_size_and_time): Add comment to suggest using rounding
      	methods.
      	(estimate_node_size_and_time): Ditto.
      	(remap_edge_change_prob): Use helper rounding divide methods.
      	* value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
      	(gimple_mod_pow2_value_transform): Ditto.
      	(gimple_mod_subtract_transform): Ditto.
      	(gimple_ic_transform): Ditto.
      	(gimple_stringops_transform): Ditto.
      	* stmt.c (conditional_probability): Ditto.
      	(emit_case_dispatch_table): Ditto.
      	* lto-cgraph.c (merge_profile_summaries): Ditto.
      	* tree-optimize.c (execute_fixup_cfg): Ditto.
      	* cfgcleanup.c (try_forward_edges): Ditto.
      	* cfgloopmanip.c (scale_loop_profile): Ditto.
      	(loopify): Ditto.
      	(duplicate_loop_to_header_edge): Ditto.
      	(lv_adjust_loop_entry_edge): Ditto.
      	* tree-vect-loop.c (vect_transform_loop): Ditto.
      	* profile.c (compute_branch_probabilities): Ditto.
      	* cfgbuild.c (compute_outgoing_frequencies): Ditto.
      	* lto-streamer-in.c (input_cfg): Ditto.
      	* gimple-streamer-in.c (input_bb): Ditto.
      	* ipa-cp.c (update_profiling_info): Ditto.
      	(update_specialized_profile): Ditto.
      	* tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
      	* cfg.c (update_bb_profile_for_threading): Add comment to suggest using
              rounding methods.
      	* sched-rgn.c (compute_dom_prob_ps): Ditto.
      	(compute_trg_info): Ditto.
      	* cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
      	(purge_dead_edges): Ditto.
      	* loop-unswitch.c (unswitch_loop): Ditto.
      	* cgraphclones.c (cgraph_clone_edge): Ditto.
      	(cgraph_clone_node): Ditto.
      	* tree-inline.c (copy_bb): Ditto.
      	(copy_edges_for_bb): Ditto.
      	(initialize_cfun): Ditto.
      	(copy_cfg_body): Ditto.
      	(expand_call_inline): Ditto.
      
      From-SVN: r197595
      Teresa Johnson committed
  4. 29 Mar, 2013 1 commit
    • Add uniform debug dump function names. · 7b3b6ae4
      Add some overloaded functions that provide uniform debug dump
      function names.  These names are:
      
        debug: the general debug dumper
        debug_verbose: for more details
        debug_raw: for the gory details
        debug_head: for the heads of declarations, e.g. function heads
        debug_body: for the bodies of declarations, e.g. function bodies
      
      Not all types have the last four versions.
      
      The debug functions come in two flavors, those that take pointers
      to the type, and those that take references to the type.  The first
      handles printing of '<nil>' for null pointers.  The second assumes
      a valid reference, and prints the content.
      
      
      Example uses are as follows:
      
        cp_token t, *p;
        debug (t);
        debug (p);
      
      From the debugger, use
      
        call debug (t)
      
      
      The functions sets implemented are:
      
      debug (only)
      
          basic_block_def, const bitmap_head_def, cp_binding_level,
          cp_parser, cp_token, data_reference, die_struct, edge_def,
          gimple_statement_d, ira_allocno, ira_allocno_copy, live_range,
          lra_live_range, omega_pb_d, pt_solution, const rtx_def, sreal,
          tree_live_info_d, _var_map,
      
          vec<cp_token, va_gc>, vec<data_reference_p>, vec<ddr_p>,
          vec<rtx>, vec<tree, va_gc>,
      
      debug and debug_raw
      
          simple_bitmap_def
      
      debug and debug_verbose
      
          expr_def, struct loop, vinsn_def
      
      debug, debug_raw, debug_verbose, debug_head, debug_body
      
          const tree_node
      
      
      This patch is somewhat different from the original plan at
      gcc.gnu.org/wiki/cxx-conversion/debugging-dumps.  The reason
      is that gdb has an incomplete implementation of C++ call syntax;
      requiring explicit specification of template arguments and explicit
      specification of function arguments even when they have default
      values.  So, the original plan would have required typing
      
        call dump <cp_token> (t, 0, 0, stderr)
      
      which is undesireable.  Instead instead of templates, we overload
      plain functions.  This adds a small burden of manually adding
      the pointer version of dump for each type.  Instead of default
      function arguments, we simply assume the default values.  Most of
      the underlying dump functions did not use the options and indent
      parameters anyway.  Several provide FILE* parameters, but we expect
      debugging to use stderr anyway.  So, the explicit specification of
      arguments was not as valuable as we thought initially.  Finally,
      a change of name from dump to debug reflect the implicit output
      to stderr.
      
      
      Index: gcc/ChangeLog
      
      2013-03-28  Lawrence Crowl  <crowl@google.com>
      
      	* Makefile.in: Add several missing include dependences.
      	(DUMPFILE_H): New.
      	(test-dump.o): New.  This object is not added to any executable,
      	but is present for ad-hoc testing.
      	* bitmap.c
      	(debug (const bitmap_head_def &)): New.
      	(debug (const bitmap_head_def *)): New.
      	* bitmap.h
      	(extern debug (const bitmap_head_def &)): New.
      	(extern debug (const bitmap_head_def *)): New.
      	* cfg.c
      	(debug (edge_def &)): New.
      	(debug (edge_def *)): New.
      	* cfghooks.c
      	(debug (basic_block_def &)): New.
      	(debug (basic_block_def *)): New.
      	* dumpfile.h
      	(dump_node (const_tree, int, FILE *)): Correct source file.
      	* dwarf2out.c
      	(debug (die_struct &)): New.
      	(debug (die_struct *)): New.
      	* dwarf2out.h
      	(extern debug (die_struct &)): New.
      	(extern debug (die_struct *)): New.
      	* gimple-pretty-print.c
      	(debug (gimple_statement_d &)): New.
      	(debug (gimple_statement_d *)): New.
      	* gimple-pretty-print.h
      	(extern debug (gimple_statement_d &)): New.
      	(extern debug (gimple_statement_d *)): New.
      	* ira-build.c
      	(debug (ira_allocno_copy &)): New.
      	(debug (ira_allocno_copy *)): New.
      	(debug (ira_allocno &)): New.
      	(debug (ira_allocno *)): New.
      	* ira-int.h
      	(extern debug (ira_allocno_copy &)): New.
      	(extern debug (ira_allocno_copy *)): New.
      	(extern debug (ira_allocno &)): New.
      	(extern debug (ira_allocno *)): New.
      	* ira-lives.c
      	(debug (live_range &)): New.
      	(debug (live_range *)): New.
      	* lra-int.h
      	(debug (lra_live_range &)): New.
      	(debug (lra_live_range *)): New.
      	* lra-lives.c
      	(debug (lra_live_range &)): New.
      	(debug (lra_live_range *)): New.
      	* omega.c
      	(debug (omega_pb_d &)): New.
      	(debug (omega_pb_d *)): New.
      	* omega.h
      	(extern debug (omega_pb_d &)): New.
      	(extern debug (omega_pb_d *)): New.
      	* print-rtl.c
      	(debug (const rtx_def &)): New.
      	(debug (const rtx_def *)): New.
      	* print-tree.c
      	(debug_tree (tree): Move within file.
      	(debug_raw (const tree_node &)): New.
      	(debug_raw (const tree_node *)): New.
      	(dump_tree_via_hooks (const tree_node *, int)): New.
      	(debug (const tree_node &)): New.
      	(debug (const tree_node *)): New.
      	(debug_verbose (const tree_node &)): New.
      	(debug_verbose (const tree_node *)): New.
      	(debug_head (const tree_node &)): New.
      	(debug_head (const tree_node *)): New.
      	(debug_body (const tree_node &)): New.
      	(debug_body (const tree_node *)): New.
      	(debug_vec_tree (tree): Move and reimplement in terms of dump.
      	(debug (vec<tree, va_gc> &)): New.
      	(debug (vec<tree, va_gc> *)): New.
      	* rtl.h
      	(extern debug (const rtx_def &)): New.
      	(extern debug (const rtx_def *)): New.
      	* sbitmap.c
      	(debug_raw (simple_bitmap_def &)): New.
      	(debug_raw (simple_bitmap_def *)): New.
      	(debug (simple_bitmap_def &)): New.
      	(debug (simple_bitmap_def *)): New.
      	* sbitmap.h
      	(extern debug (simple_bitmap_def &)): New.
      	(extern debug (simple_bitmap_def *)): New.
      	(extern debug_raw (simple_bitmap_def &)): New.
      	(extern debug_raw (simple_bitmap_def *)): New.
      	* sel-sched-dump.c
      	(debug (vinsn_def &)): New.
      	(debug (vinsn_def *)): New.
      	(debug_verbose (vinsn_def &)): New.
      	(debug_verbose (vinsn_def *)): New.
      	(debug (expr_def &)): New.
      	(debug (expr_def *)): New.
      	(debug_verbose (expr_def &)): New.
      	(debug_verbose (expr_def *)): New.
      	(debug (vec<rtx> &)): New.
      	(debug (vec<rtx> *)): New.
      	* sel-sched-dump.h
      	(extern debug (vinsn_def &)): New.
      	(extern debug (vinsn_def *)): New.
      	(extern debug_verbose (vinsn_def &)): New.
      	(extern debug_verbose (vinsn_def *)): New.
      	(extern debug (expr_def &)): New.
      	(extern debug (expr_def *)): New.
      	(extern debug_verbose (expr_def &)): New.
      	(extern debug_verbose (expr_def *)): New.
      	(extern debug (vec<rtx> &)): New.
      	(extern debug (vec<rtx> *)): New.
      	* sel-sched-ir.h
      	(_list_iter_cond_expr): Make inline instead of static.
      	* sreal.c
      	(debug (sreal &)): New.
      	(debug (sreal *)): New.
      	* sreal.h
      	(extern debug (sreal &)): New.
      	(extern debug (sreal *)): New.
      	* tree.h
      	(extern debug_raw (const tree_node &)): New.
      	(extern debug_raw (const tree_node *)): New.
      	(extern debug (const tree_node &)): New.
      	(extern debug (const tree_node *)): New.
      	(extern debug_verbose (const tree_node &)): New.
      	(extern debug_verbose (const tree_node *)): New.
      	(extern debug_head (const tree_node &)): New.
      	(extern debug_head (const tree_node *)): New.
      	(extern debug_body (const tree_node &)): New.
      	(extern debug_body (const tree_node *)): New.
      	(extern debug (vec<tree, va_gc> &)): New.
      	(extern debug (vec<tree, va_gc> *)): New.
      	* tree-cfg.c
      	(debug (struct loop &)): New.
      	(debug (struct loop *)): New.
      	(debug_verbose (struct loop &)): New.
      	(debug_verbose (struct loop *)): New.
      	* tree-dump.c: Add header dependence.
      	* tree-flow.h
      	(extern debug (struct loop &)): New.
      	(extern debug (struct loop *)): New.
      	(extern debug_verbose (struct loop &)): New.
      	(extern debug_verbose (struct loop *)): New.
      	* tree-data-ref.c
      	(debug (data_reference &)): New.
      	(debug (data_reference *)): New.
      	(debug (vec<data_reference_p> &)): New.
      	(debug (vec<data_reference_p> *)): New.
      	(debug (vec<ddr_p> &)): New.
      	(debug (vec<ddr_p> *)): New.
      	* tree-data-ref.h
      	(extern debug (data_reference &)): New.
      	(extern debug (data_reference *)): New.
      	(extern debug (vec<data_reference_p> &)): New.
      	(extern debug (vec<data_reference_p> *)): New.
      	(extern debug (vec<ddr_p> &)): New.
      	(extern debug (vec<ddr_p> *)): New.
      	* tree-ssa-alias.c
      	(debug (pt_solution &)): New.
      	(debug (pt_solution *)): New.
      	* tree-ssa-alias.h
      	(extern debug (pt_solution &)): New.
      	(extern debug (pt_solution *)): New.
      	* tree-ssa-alias.c
      	(debug (_var_map &)): New.
      	(debug (_var_map *)): New.
      	(debug (tree_live_info_d &)): New.
      	(debug (tree_live_info_d *)): New.
      	* tree-ssa-alias.h
      	(extern debug (_var_map &)): New.
      	(extern debug (_var_map *)): New.
      	(extern debug (tree_live_info_d &)): New.
      	(extern debug (tree_live_info_d *)): New.
      
      Index: gcc/cp/ChangeLog
      
      2013-03-28  Lawrence Crowl  <crowl@google.com>
      
      	* Make-lang.in
      	(CXX_PARSER_H): Add header dependence.
      	* cp-tree.h
      	(extern debug (cp_binding_level &)): New.
      	(extern debug (cp_binding_level *)): New.
      	* name-lookup.h
      	(debug (cp_binding_level &)): New.
      	(debug (cp_binding_level *)): New.
      	* parser.c
      	(debug (cp_parser &)): New.
      	(debug (cp_parser *)): New.
      	(debug (cp_token &)): New.
      	(debug (cp_token *)): New.
      	(debug (vec<cp_token, va_gc> &)): New.
      	(debug (vec<cp_token, va_gc> *)): New.
      	* parser.c: Add header dependence.
      	(extern debug (cp_parser &)): New.
      	(extern debug (cp_parser *)): New.
      	(extern debug (cp_token &)): New.
      	(extern debug (cp_token *)): New.
      	(extern debug (vec<cp_token, va_gc> &)): New.
      	(extern debug (vec<cp_token, va_gc> *)): New.
      
      From-SVN: r197224
      Lawrence Crowl committed
  5. 10 Jan, 2013 1 commit
  6. 18 Nov, 2012 1 commit
    • This patch rewrites the old VEC macro-based interface into a new one based on… · 9771b263
      This patch rewrites the old VEC macro-based interface into a new one based on the template class 'vec'.
      
      This patch rewrites the old VEC macro-based interface into a new one
      based on the template class 'vec'.  The user-visible changes are
      described in http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec.
      
      I have tested the patch pretty extensively:
      
      - Regular bootstraps on x86_64, ppc, ia64, sparc and hppa.
      - Bootstraps with --enable-checking=release
      - Bootstraps with --enable-checking=gc,gcac
      - Basic builds on all targets (using contrib/config-list.mk).
      
      We no longer access the vectors via VEC_* macros.  The pattern is
      "VEC_operation (T, A, V, args)" becomes "V.operation (args)".
      
      The only thing I could not do is create proper ctors and dtors for the
      vec class.  Since these vectors are stored in unions, we
      have to keep them as PODs (C++03 does not allow non-PODs in unions).
      
      This means that creation and destruction must be explicit.  There is a
      new method vec<type, allocation, layout>::create() and another vec<type,
      allocation, layout>::destroy() to allocate the internal vector.
      
      For vectors that must be pointers, there is a family of free functions
      that implement the operations that need to tolerate NULL vectors.
      These functions all start with the prefix 'vec_safe_'.  See the wiki
      page for details.
      
      The gengtype change removes the special handling for VEC() that used
      to exist in gengtype. Additionally, it allows gengtype to recognize
      templates of more than one argument and introduces the concept of an
      undefined type (useful for template arguments that may or may not be
      types).
      
      When a TYPE_UNDEFINED is reached, gengtype will ignore it if it
      happens inside a type marked with GTY((user)).  Otherwise, it will
      emit an error.
      
      Finally, gengtype rejects root types marked GTY((user)) that are not
      first class pointers.
      
      2012-11-16  Diego Novillo  <dnovillo@google.com>
      
      	VEC API overhaul (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
      
      	* vec.c (register_overhead): Convert it into
      	member function of vec_prefix.
      	(release_overhead): Likewise.
      	(calculate_allocation): Likewise.
      	(vec_heap_free): Remove.
      	(vec_gc_o_reserve_1): Remove.
      	(vec_heap_o_reserve_1): Remove.
      	(vec_stack_o_reserve_1): Remove.
      	(vec_stack_o_reserve_exact): Remove.
      	(register_stack_vec): New.
      	(stack_vec_register_index): New.
      	(unregister_stack_vec): New.
      	(vec_assert_fail): Remove.
      	* vec.h: Conditionally include ggc.h.  Document conditional
      	hackery.
      	Update top-level documentation.
      	(ALONE_VEC_CHECK_INFO): Remove.
      	(VEC_CHECK_INFO): Remove.
      	(ALONE_VEC_CHECK_DECL): Remove.
      	(VEC_CHECK_DECL): Remove.
      	(ALONE_VEC_CHECK_PASS): Remove.
      	(VEC_CHECK_PASS): Remove.
      	(VEC_ASSERT): Remove.
      	(vec_prefix): Add friends va_gc, va_gc_atomic, va_heap and
      	va_stack.
      	Mark fields alloc_ and num_ as protected.
      	(struct vec_t): Remove.  Remove all function members.
      	(struct vl_embed): Declare.
      	(struct vl_ptr): Declare.
      	(free): Remove.
      	(reserve_exact): Remove.
      	(reserve): Remove.
      	(safe_splice): Remove.
      	(safe_push): Remove.
      	(safe_grow): Remove.
      	(safe_grow_cleared): Remove.
      	(safe_insert): Remove.
      	(DEF_VEC_I): Remove.
      	(DEF_VEC_ALLOC_I): Remove.
      	(DEF_VEC_P): Remove.
      	(DEF_VEC_ALLOC_P): Remove.
      	(DEF_VEC_O): Remove.
      	(DEF_VEC_ALLOC_O): Remove.
      	(DEF_VEC_ALLOC_P_STACK): Remove.
      	(DEF_VEC_ALLOC_O_STACK): Remove.
      	(DEF_VEC_ALLOC_I_STACK): Remove.
      	(DEF_VEC_A): Remove.
      	(DEF_VEC_ALLOC_A): Remove.
      	(vec_stack_p_reserve_exact_1): Remove.
      	(vec_stack_o_reserve): Remove.
      	(vec_stack_o_reserve_exact): Remove.
      	(VEC_length): Remove.
      	(VEC_empty): Remove.
      	(VEC_address): Remove.
      	(vec_address): Remove.
      	(VEC_last): Remove.
      	(VEC_index): Remove.
      	(VEC_iterate): Remove.
      	(VEC_embedded_size): Remove.
      	(VEC_embedded_init): Remove.
      	(VEC_free): Remove.
      	(VEC_copy): Remove.
      	(VEC_space): Remove.
      	(VEC_reserve): Remove.
      	(VEC_reserve_exact): Remove.
      	(VEC_splice): Remove.
      	(VEC_safe_splice): Remove.
      	(VEC_quick_push): Remove.
      	(VEC_safe_push): Remove.
      	(VEC_pop): Remove.
      	(VEC_truncate): Remove.
      	(VEC_safe_grow): Remove.
      	(VEC_replace): Remove.
      	(VEC_quick_insert): Remove.
      	(VEC_safe_insert): Remove.
      	(VEC_ordered_remove): Remove.
      	(VEC_unordered_remove): Remove.
      	(VEC_block_remove): Remove.
      	(VEC_lower_bound): Remove.
      	(VEC_alloc): Remove.
      	(VEC_qsort): Remove.
      
      	(va_heap): Declare.
      	(va_heap::default_layout): New typedef to vl_ptr.
      	(va_heap::reserve): New.
      	(va_heap::release): New.
      	(va_gc): Declare.
      	(va_gc::default_layout): New typedef to vl_embed.
      	(va_gc::reserve): New.
      	(va_gc::release): New.
      	(va_gc_atomic): Declare.  Inherit from va_gc.
      	(va_stack): Declare.
      	(va_stack::default_layout): New typedef to vl_ptr.
      	(va_stack::alloc): New.
      	(va_stack::reserve): New.
      	(va_stack::release): New.
      	(register_stack_vec): Declare.
      	(stack_vec_register_index): Declare.
      	(unregister_stack_vec): Declare.
      
      	(vec<T, A = va_heap, L = typename A::default_layout>): Declare
      	empty vec template.
      	(vec<T, A, vl_embed>): Partial specialization for embedded
      	layout.
      	(vec<T, A, vl_embed>::allocated): New.
      	(vec<T, A, vl_embed>::length): New.
      	(vec<T, A, vl_embed>::is_empty): New.
      	(vec<T, A, vl_embed>::address): New.
      	(vec<T, A, vl_embed>::operator[]): New.
      	(vec<T, A, vl_embed>::last New.
      	(vec<T, A, vl_embed>::space): New.
      	(vec<T, A, vl_embed>::iterate): New.
      	(vec<T, A, vl_embed>::iterate): New.
      	(vec<T, A, vl_embed>::copy): New.
      	(vec<T, A, vl_embed>::splice): New.
      	(vec<T, A, vl_embed>::quick_push New.
      	(vec<T, A, vl_embed>::pop New.
      	(vec<T, A, vl_embed>::truncate): New.
      	(vec<T, A, vl_embed>::quick_insert): New.
      	(vec<T, A, vl_embed>::ordered_remove): New.
      	(vec<T, A, vl_embed>::unordered_remove): New.
      	(vec<T, A, vl_embed>::block_remove): New.
      	(vec<T, A, vl_embed>::qsort): New.
      	(vec<T, A, vl_embed>::lower_bound): New.
      	(vec<T, A, vl_embed>::embedded_size): New.
      	(vec<T, A, vl_embed>::embedded_init): New.
      	(vec<T, A, vl_embed>::quick_grow): New.
      	(vec<T, A, vl_embed>::quick_grow_cleared): New.
      	(vec_safe_space): New.
      	(vec_safe_length): New.
      	(vec_safe_address): New.
      	(vec_safe_is_empty): New.
      	(vec_safe_reserve): New.
      	(vec_safe_reserve_exact): New.
      	(vec_alloc): New.
      	(vec_free): New.
      	(vec_safe_grow): New.
      	(vec_safe_grow_cleared): New.
      	(vec_safe_iterate): New.
      	(vec_safe_push): New.
      	(vec_safe_insert): New.
      	(vec_safe_truncate): New.
      	(vec_safe_copy): New.
      	(vec_safe_splice): New.
      
      	(vec<T, A, vl_ptr>): New partial specialization for the space
      	efficient layout.
      	(vec<T, A, vl_ptr>::exists): New.
      	(vec<T, A, vl_ptr>::is_empty): New.
      	(vec<T, A, vl_ptr>::length): New.
      	(vec<T, A, vl_ptr>::address): New.
      	(vec<T, A, vl_ptr>::operator[]): New.
      	(vec<T, A, vl_ptr>::operator!=): New.
      	(vec<T, A, vl_ptr>::operator==): New.
      	(vec<T, A, vl_ptr>::last): New.
      	(vec<T, A, vl_ptr>::space): New.
      	(vec<T, A, vl_ptr>::iterate): New.
      	(vec<T, A, vl_ptr>::copy): New.
      	(vec<T, A, vl_ptr>::reserve): New.
      	(vec<T, A, vl_ptr>::reserve_exact): New.
      	(vec<T, A, vl_ptr>::splice): New.
      	(vec<T, A, vl_ptr>::safe_splice): New.
      	(vec<T, A, vl_ptr>::quick_push): New.
      	(vec<T, A, vl_ptr>::safe_push): New.
      	(vec<T, A, vl_ptr>::pop): New.
      	(vec<T, A, vl_ptr>::truncate): New.
      	(vec<T, A, vl_ptr>::safe_grow): New.
      	(vec<T, A, vl_ptr>::safe_grow_cleared): New.
      	(vec<T, A, vl_ptr>::quick_grow): New.
      	(vec<T, A, vl_ptr>::quick_grow_cleared): New.
      	(vec<T, A, vl_ptr>::quick_insert): New.
      	(vec<T, A, vl_ptr>::safe_insert): New.
      	(vec<T, A, vl_ptr>::ordered_remove): New.
      	(vec<T, A, vl_ptr>::unordered_remove): New.
      	(vec<T, A, vl_ptr>::block_remove): New.
      	(vec<T, A, vl_ptr>::qsort): New.
      	(vec<T, A, vl_ptr>::lower_bound): New.
      	(vec_stack_alloc): Define.
      	(FOR_EACH_VEC_SAFE_ELT): Define.
      	* vecir.h: Remove.  Update all users.
      	* vecprim.h: Remove.  Update all users.
      	Move uchar to coretypes.h.
      
      	* Makefile.in (VEC_H): Add $(GGC_H).
      	Remove vecir.h and vecprim.h dependencies everywhere.
      
      2012-11-16  Diego Novillo  <dnovillo@google.com>
      
      	* gengtype-lex.l (VEC): Remove.
      	Add characters in the set [\!\>\.-].
      	* gengtype-parse.c (token_names): Remove "VEC".
      	(require_template_declaration): Remove handling of VEC_TOKEN.
      	(type): Likewise.
      	Call create_user_defined_type when parsing GTY((user)).
      	* gengtype-state.c (type_lineloc): handle TYPE_UNDEFINED.
      	(write_state_undefined_type): New.
      	(write_state_type): Call write_state_undefined_type for
      	TYPE_UNDEFINED.
      	(read_state_type): Call read_state_undefined_type for
      	TYPE_UNDEFINED.
      	* gengtype.c (dbgprint_count_type_at): Handle TYPE_UNDEFINED.
      	(create_user_defined_type): Make extern.
      	(type_for_name): Factor out of resolve_typedef.
      	(create_undefined_type): New
      	(resolve_typedef): Call it when we cannot find a previous
      	typedef and the type is not a template.
      	(find_structure): Accept TYPE_UNDEFINED.
      	(set_gc_used_type): Add argument ALLOWED_UNDEFINED_TYPES,
      	default to false.
      	Emit an error for TYPE_UNDEFINED unless LEVEL is GC_UNUSED or
      	ALLOWED_UNDEFINED_TYPES is set.
      	Set ALLOWED_UNDEFINED_TYPES to true for TYPE_USER_STRUCT.
      	(filter_type_name): Accept templates with more than one
      	argument.
      	(output_mangled_typename): Handle TYPE_UNDEFINED
      	(walk_type): Likewise.
      	(write_types_process_field): Likewise.
      	(write_func_for_structure): If CHAIN_NEXT is set, ORIG_S
      	should not be a user-defined type.
      	(write_types_local_user_process_field): Handle TYPE_ARRAY,
      	TYPE_NONE and TYPE_UNDEFINED.
      	(write_types_local_process_field): Likewise.
      	(contains_scalar_p): Return 0 for TYPE_USER_STRUCT.
      	(write_root): Reject user-defined types that are not pointers.
      	Handle TYPE_NONE, TYPE_UNDEFINED, TYPE_UNION, TYPE_LANG_STRUCT
      	and TYPE_PARAM_STRUCT.
      	(output_typename): Handle TYPE_NONE, TYPE_UNDEFINED, and
      	TYPE_ARRAY.
      	(dump_typekind): Handle TYPE_UNDEFINED.
      	* gengtype.h (enum typekind): Add TYPE_UNDEFINED.
      	(create_user_defined_type): Declare.
      	(enum gty_token): Remove VEC_TOKEN.
      
      2012-11-16  Diego Novillo  <dnovillo@google.com>
      
      	Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
      
      	* coretypes.h (uchar): Define.
      	* alias.c: Use new vec API in vec.h.
      	* asan.c: Likewise.
      	* attribs.c: Likewise.
      	* basic-block.h: Likewise.
      	* bb-reorder.c: Likewise.
      	* builtins.c: Likewise.
      	* calls.c: Likewise.
      	* cfg.c: Likewise.
      	* cfganal.c: Likewise.
      	* cfgcleanup.c: Likewise.
      	* cfgexpand.c: Likewise.
      	* cfghooks.c: Likewise.
      	* cfghooks.h: Likewise.
      	* cfgloop.c: Likewise.
      	* cfgloop.h: Likewise.
      	* cfgloopanal.c: Likewise.
      	* cfgloopmanip.c: Likewise.
      	* cfgrtl.c: Likewise.
      	* cgraph.c: Likewise.
      	* cgraph.h: Likewise.
      	* cgraphclones.c: Likewise.
      	* cgraphunit.c: Likewise.
      	* combine.c: Likewise.
      	* compare-elim.c: Likewise.
      	* coverage.c: Likewise.
      	* cprop.c: Likewise.
      	* data-streamer.h: Likewise.
      	* dbxout.c: Likewise.
      	* dce.c: Likewise.
      	* df-core.c: Likewise.
      	* df-problems.c: Likewise.
      	* df-scan.c: Likewise.
      	* dominance.c: Likewise.
      	* domwalk.c: Likewise.
      	* domwalk.h: Likewise.
      	* dse.c: Likewise.
      	* dwarf2cfi.c: Likewise.
      	* dwarf2out.c: Likewise.
      	* dwarf2out.h: Likewise.
      	* emit-rtl.c: Likewise.
      	* except.c: Likewise.
      	* except.h: Likewise.
      	* expr.c: Likewise.
      	* expr.h: Likewise.
      	* final.c: Likewise.
      	* fold-const.c: Likewise.
      	* function.c: Likewise.
      	* function.h: Likewise.
      	* fwprop.c: Likewise.
      	* gcc.c: Likewise.
      	* gcse.c: Likewise.
      	* genattr.c: Likewise.
      	* genattrtab.c: Likewise.
      	* genautomata.c: Likewise.
      	* genextract.c: Likewise.
      	* genopinit.c: Likewise
      	* ggc-common.c: Likewise.
      	* ggc.h: Likewise.
      	* gimple-low.c: Likewise.
      	* gimple-ssa-strength-reduction.c: Likewise.
      	* gimple-streamer-in.c: Likewise.
      	* gimple.c: Likewise.
      	* gimple.h: Likewise.
      	* gimplify.c: Likewise.
      	* graph.c: Likewise.
      	* graphds.c: Likewise.
      	* graphds.h: 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-poly.h: Likewise.
      	* graphite-scop-detection.c: Likewise.
      	* graphite-scop-detection.h: Likewise.
      	* graphite-sese-to-poly.c: Likewise.
      	* graphite.c: Likewise.
      	* godump.c: Likewise.
      	* haifa-sched.c: Likewise.
      	* hw-doloop.c: Likewise.
      	* hw-doloop.h: Likewise.
      	* ifcvt.c: Likewise.
      	* insn-addr.h: Likewise.
      	* ipa-cp.c: Likewise.
      	* ipa-inline-analysis.c: Likewise.
      	* ipa-inline-transform.c: Likewise.
      	* ipa-inline.c: Likewise.
      	* ipa-inline.h: Likewise.
      	* ipa-prop.c: Likewise.
      	* ipa-prop.h: Likewise.
      	* ipa-pure-const.c: Likewise.
      	* ipa-ref-inline.h: Likewise.
      	* ipa-ref.c: Likewise.
      	* ipa-ref.h: Likewise.
      	* ipa-reference.c: Likewise.
      	* ipa-split.c: Likewise.
      	* ipa-utils.c: Likewise.
      	* ipa-utils.h: Likewise.
      	* ipa.c: Likewise.
      	* ira-build.c: Likewise.
      	* ira-color.c: Likewise.
      	* ira-emit.c: Likewise.
      	* ira-int.h: Likewise.
      	* ira.c: Likewise.
      	* loop-invariant.c: Likewise.
      	* loop-unroll.c: Likewise.
      	* lower-subreg.c: Likewise.
      	* lra-lives.c: Likewise.
      	* lra.c: Likewise.
      	* lto-cgraph.c: Likewise.
      	* lto-section-out.c: Likewise.
      	* lto-streamer-in.c: Likewise.
      	* lto-streamer-out.c: Likewise.
      	* lto-streamer.h: Likewise.
      	* lto-symtab.c: Likewise.
      	* mcf.c: Likewise.
      	* modulo-sched.c: Likewise.
      	* omp-low.c: Likewise.
      	* opts-common.c: Likewise.
      	* opts-global.c: Likewise.
      	* opts.c: Likewise.
      	* opts.h: Likewise.
      	* passes.c: Likewise.
      	* predict.c: Likewise.
      	* print-tree.c: Likewise.
      	* profile.c: Likewise.
      	* profile.h: Likewise.
      	* read-rtl.c: Likewise.
      	* ree.c: Likewise.
      	* reg-stack.c: Likewise.
      	* regrename.c: Likewise.
      	* regrename.h: Likewise.
      	* reload.c: Likewise.
      	* reload.h: Likewise.
      	* reload1.c: Likewise.
      	* rtl.h: Likewise.
      	* sched-deps.c: Likewise.
      	* sched-int.h: Likewise.
      	* sdbout.c: Likewise.
      	* sel-sched-dump.c: Likewise.
      	* sel-sched-ir.c: Likewise.
      	* sel-sched-ir.h: Likewise.
      	* sel-sched.c: Likewise.
      	* sese.c: Likewise.
      	* sese.h: Likewise.
      	* statistics.h: Likewise.
      	* stmt.c: Likewise.
      	* stor-layout.c: Likewise.
      	* store-motion.c: Likewise.
      	* tlink.c: Likewise.
      	* toplev.c: Likewise.
      	* trans-mem.c: Likewise.
      	* tree-browser.c: Likewise.
      	* tree-call-cdce.c: Likewise.
      	* tree-cfg.c: Likewise.
      	* tree-cfgcleanup.c: Likewise.
      	* tree-chrec.c: Likewise.
      	* tree-chrec.h: Likewise.
      	* tree-complex.c: Likewise.
      	* tree-data-ref.c: Likewise.
      	* tree-data-ref.h: Likewise.
      	* tree-dfa.c: Likewise.
      	* tree-diagnostic.c: Likewise.
      	* tree-dump.c: Likewise.
      	* tree-eh.c: Likewise.
      	* tree-emutls.c: Likewise.
      	* tree-flow.h: Likewise.
      	* tree-if-conv.c: Likewise.
      	* tree-inline.c: Likewise.
      	* tree-inline.h: Likewise.
      	* tree-into-ssa.c: Likewise.
      	* tree-iterator.c: Likewise.
      	* tree-loop-distribution.c: Likewise.
      	* tree-mudflap.c: Likewise.
      	* tree-optimize.c: Likewise.
      	* tree-outof-ssa.c: Likewise.
      	* tree-parloops.c: Likewise.
      	* tree-phinodes.c: Likewise.
      	* tree-predcom.c: Likewise.
      	* tree-pretty-print.c: Likewise.
      	* tree-scalar-evolution.c: Likewise.
      	* tree-sra.c: Likewise.
      	* tree-ssa-address.c: Likewise.
      	* tree-ssa-alias.c: Likewise.
      	* tree-ssa-ccp.c: Likewise.
      	* tree-ssa-coalesce.c: Likewise.
      	* tree-ssa-dce.c: Likewise.
      	* tree-ssa-dom.c: Likewise.
      	* tree-ssa-forwprop.c: Likewise.
      	* tree-ssa-live.c: Likewise.
      	* tree-ssa-live.h: 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-math-opts.c: Likewise.
      	* tree-ssa-operands.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-sccvn.c: Likewise.
      	* tree-ssa-sccvn.h: Likewise.
      	* tree-ssa-strlen.c: Likewise.
      	* tree-ssa-structalias.c: Likewise.
      	* tree-ssa-tail-merge.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-ssanames.c: Likewise.
      	* tree-stdarg.c: Likewise.
      	* tree-streamer-in.c: Likewise.
      	* tree-streamer-out.c: Likewise.
      	* tree-streamer.c: Likewise.
      	* tree-streamer.h: Likewise.
      	* tree-switch-conversion.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-vectorizer.h: Likewise.
      	* tree-vrp.c: Likewise.
      	* tree.c: Likewise.
      	* tree.h: Likewise.
      	* value-prof.c: Likewise.
      	* value-prof.h: Likewise.
      	* var-tracking.c: Likewise.
      	* varasm.c: Likewise.
      	* varpool.c: Likewise.
      	* vmsdbgout.c: Likewise.
      	* config/bfin/bfin.c: Likewise.
      	* config/c6x/c6x.c: Likewise.
      	* config/darwin.c: Likewise.
      	* config/i386/i386.c: Likewise.
      	* config/ia64/ia64.c: Likewise.
      	* config/mep/mep.c: Likewise.
      	* config/mips/mips.c: Likewise.
      	* config/pa/pa.c: Likewise.
      	* config/rs6000/rs6000-c.c: Likewise.
      	* config/rs6000/rs6000.c: Likewise.
      	* config/rx/rx.c: Likewise.
      	* config/spu/spu-c.c: Likewise.
      	* config/vms/vms.c: Likewise.
      	* config/vxworks.c: Likewise.
      	* config/epiphany/resolve-sw-modes.c: Likewise.
      
      From-SVN: r193595
      Diego Novillo committed
  7. 01 Nov, 2012 1 commit
    • This patch normalizes more bitmap function names. · d7c028c0
        sbitmap.h
      
          TEST_BIT -> bitmap_bit_p
          SET_BIT -> bitmap_set_bit
          SET_BIT_WITH_POPCOUNT -> bitmap_set_bit_with_popcount
          RESET_BIT -> bitmap_clear_bit
          RESET_BIT_WITH_POPCOUNT -> bitmap_clear_bit_with_popcount
      
        basic-block.h
      
          sbitmap_intersection_of_succs -> bitmap_intersection_of_succs
          sbitmap_intersection_of_preds -> bitmap_intersection_of_preds
          sbitmap_union_of_succs -> bitmap_union_of_succs
          sbitmap_union_of_preds -> bitmap_union_of_preds
      
      The sbitmap.h functions also needed their numeric paramter changed
      from unsigned int to int to match the bitmap functions.
      
      Callers updated to match.
      
      Tested on x86-64, config-list.mk testing.
      
      
      Index: gcc/ChangeLog
      
      2012-11-01  Lawrence Crowl  <crowl@google.com>
      
      	* sbitmap.h (TEST_BIT): Rename bitmap_bit_p, normalizing parameter
      	type. Update callers to match.
      	(SET_BIT): Rename bitmap_set_bit, normalizing parameter type. Update
      	callers to match.
      	(SET_BIT_WITH_POPCOUNT): Rename bitmap_set_bit_with_popcount,
      	normalizing parameter type. Update callers to match.
      	(RESET_BIT): Rename bitmap_clear_bit, normalizing parameter type.
      	Update callers to match.
      	(RESET_BIT_WITH_POPCOUNT): Rename bitmap_clear_bit_with_popcount,
      	normalizing parameter type. Update callers to match.
      	* basic-block.h (sbitmap_intersection_of_succs): Rename
      	bitmap_intersection_of_succs. Update callers to match.
      	* basic-block.h (sbitmap_intersection_of_preds): Rename
      	bitmap_intersection_of_preds. Update callers to match.
      	* basic-block.h (sbitmap_union_of_succs): Rename
      	bitmap_union_of_succs. Update callers to match.
      	* basic-block.h (sbitmap_union_of_preds): Rename
      	bitmap_union_of_preds. Update callers to match.
      
      From-SVN: r193066
      Lawrence Crowl committed
  8. 25 Oct, 2012 1 commit
    • Change hash_table to support a comparator type different from the value type… · 5831a5f0
      Change hash_table to support a comparator type different from the value type stored in the hash table.
      
      Change hash_table to support a comparator type different from the
      value type stored in the hash table.  The 'find' functions now may
      take a different type from the value type.  This requires introducing
      a second typedef into the Descriptor conceptual type.  Change the
      Descriptor concept to use typedefs value_type and compare_type instead
      of T.  Change all users to match.
      
      Add usage documentation to hash-table.h.
      
      Tested on x86-64.
      
      
      Index: gcc/ChangeLog
      
      2012-10-25  Lawrence Crowl  <crowl@google.com>
      
      	* hash-table.h: Add usage documentation.
      	(template struct typed_free_remove): Clarify documentation. 
      	Rename template parameter.
      	(struct typed_noop_remove): Likewise.
      	(descriptor concept): Change typedef T to value_type.
      	Add typedef compare_type.  Use more precise template parameter name,
      	Descriptor instead of Descr.  Update users to match.
      	(struct hash_table): Change 'find' parameters to use compare_type
      	instead of the value type.
      
      From-SVN: r192823
      Lawrence Crowl committed
  9. 09 Oct, 2012 1 commit
    • Change more non-GTY hash tables to use the new type-safe template hash table. · 703c8606
      Constify member function parameters that can be const.
      Correct a couple of expressions in formerly uninstantiated templates.
      
      The new code is 0.362% faster in bootstrap, with a 99.5% confidence of
      being faster.
      
      Tested on x86-64.
      
      
      Index: gcc/java/ChangeLog
      
      2012-10-01  Lawrence Crowl  <crowl@google.com>
      
      	* Make-lang.in (JAVA_OBJS): Add dependence on hash-table.o.
      	(JCFDUMP_OBJS): Add dependence on hash-table.o.
      	(jcf-io.o): Add dependence on hash-table.h.
      	* jcf-io.c (memoized_class_lookups): Change to use type-safe hash table.
      
      Index: gcc/c/ChangeLog
      
      2012-10-09  Lawrence Crowl  <crowl@google.com>
      
      	* Make-lang.in (c-decl.o): Add dependence on hash-table.h.
      	* c-decl.c (detect_field_duplicates_hash): Change to new type-safe
      	hash table.
      
      Index: gcc/objc/ChangeLog
      
      2012-10-01  Lawrence Crowl  <crowl@google.com>
      
      	* Make-lang.in (OBJC_OBJS): Add dependence on hash-table.o.
      	(objc-act.o): Add dependence on hash-table.h.
      	* objc-act.c (objc_detect_field_duplicates): Change to new type-safe
      	hash table.
      
      Index: gcc/ChangeLog
      
      2012-10-09  Lawrence Crowl  <crowl@google.com>
      
      	* Makefile.in (fold-const.o): Add depencence on hash-table.h.
      	(dse.o): Likewise.
      	(cfg.o): Likewise.
      	* fold-const.c (fold_checksum_tree): Change to new type-safe hash table.
      	* (print_fold_checksum): Likewise.
      	* cfg.c (var bb_original): Likewise.
      	* (var bb_copy): Likewise.
      	* (var loop_copy): Likewise.
      	* hash-table.h (template hash_table): Constify parameters for find...
      	and remove_elt... member functions.
              (hash_table::empty) Correct size expression.
              (hash_table::clear_slot) Correct deleted entry assignment.
      	* dse.c (var rtx_group_table): Change to new type-safe hash table.
      
      Index: gcc/cp/ChangeLog
      
      2012-10-09  Lawrence Crowl  <crowl@google.com>
      
      	* Make-lang.in (class.o): Add dependence on hash-table.h.
      	(tree.o): Likewise.
      	(semantics.o): Likewise.
      	* class.c (fixed_type_or_null): Change to new type-safe hash table.
      	* tree.c (verify_stmt_tree): Likewise.
      	(verify_stmt_tree_r): Likewise.
      	* semantics.c (struct nrv_data): Likewise.
      
      From-SVN: r192273
      Lawrence Crowl committed
  10. 29 Aug, 2012 1 commit
  11. 24 Aug, 2012 1 commit
    • predict.c (maybe_hot_frequency_p): New parameter fun. · 2eb712b4
      2012-08-24  Martin Jambor  <mjambor@suse.cz>
      
      	* predict.c (maybe_hot_frequency_p): New parameter fun.  Use its decl
      	instead of current_function_decl, use profile_status_for_function and
      	ENTRY_BLOCK_PTR_FOR_FUNCTION with fun instead of their cfun variants.
      	(maybe_hot_count_p): New parameter fun, use
      	profile_status_for_function instead of its cfun_variant.
      	(maybe_hot_bb_p): New parameter fun, checking-assert it, pass it to
      	all callees.
      	(maybe_hot_edge_p): Pass cfun to maybe_hot_count_p and
      	maybe_hot_frequency_p.
      	(probably_never_executed_bb_p): New parameter fun, use its decl
      	instead of current_function_decl.
      	(optimize_bb_for_size_p): Pass cfun to maybe_hot_bb_p.
      	(rtl_profile_for_bb): Likewise.
      	(compute_function_frequency): Pass cfun to maybe_hot_bb_p and
      	probably_never_executed_bb_p.
      	* tree-ssa-operands.c (ssa_operands_active): New operator fun.  Use it
      	instead of cfun.
      	(update_stmt_operands): Pass cfun as an argument of
      	ssa_operands_active.
      	(swap_tree_operands): Likewise.
      	* gimple-iterator.c (update_modified_stmt): Likewise.
      	(update_modified_stmts): Likewise.
      	* tree-flow-inline.h (delink_stmt_imm_use): Likewise.
      	* tree-ssa.c (delete_tree_ssa): Likewise.
      	* bb-reorder.c (bb_to_key): Pass cfun to probably_never_executed_bb_p.
      	(push_to_next_round_p): Likewise.
      	(find_rarely_executed_basic_blocks_and_crossing_edges ): Likewise.
      	* cfg.c: Inlude tree.h.
      	(check_bb_profile): Use profile_status_for_function,
      	EXIT_BLOCK_PTR_FOR_FUNCTION and ENTRY_BLOCK_PTR_FOR_FUNCTION with
      	DECL_STRUCT_FUNCTION (current_function_decl) instead of their cfun
      	variants.
      	(dump_bb_info): Pass DECL_STRUCT_FUNCTION (current_function_decl) to
      	maybe_hot_bb_p and probably_never_executed_bb_p.
      	* gimple-pretty-print.c (gimple_dump_bb_buff): Checking-assert that
      	DECL_STRUCT_FUNCTION (current_function_decl) is not NULL.  Pass it to
      	dump_histograms_for_stmt.
      	(dump_gimple_mem_ops): Pass DECL_STRUCT_FUNCTION (current_function_decl)
      	as an argument to dump_gimple_mem_ops.
      	* tree-cfg.c (dump_function_to_file): Rename parameter fn to fndecl.
      	Do not change cfun.  Change and restore current_function_decl.
      	* Makefile.in (cfg.o): Include TREE_H in dependencies.
      
      From-SVN: r190645
      Martin Jambor committed
  12. 13 Aug, 2012 1 commit
    • basic-block.h (struct basic_block): Remove loop_depth member, move flags and… · 391886c8
      basic-block.h (struct basic_block): Remove loop_depth member, move flags and index members next to each other.
      
      2012-08-13  Richard Guenther  <rguenther@suse.de>
      
      	* basic-block.h (struct basic_block): Remove loop_depth
      	member, move flags and index members next to each other.
      	* cfgloop.h (bb_loop_depth): New inline function.
      	* cfghooks.c (split_block): Do not set loop_depth.
      	(duplicate_block): Likewise.
      	* cfgloop.c (flow_loop_nodes_find): Likewise.
      	(flow_loops_find): Likewise.
      	(add_bb_to_loop): Likewise.
      	(remove_bb_from_loops): Likewise.
      	* cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
      	* gimple-streamer-in.c (input_bb): Do not stream loop_depth.
      	* gimple-streamer-out.c (output_bb): Likewise.
      	* bt-load.c: Include cfgloop.h.
      	(migrate_btr_defs): Use bb_loop_depth.
      	* cfg.c (dump_bb_info): Likewise.
      	* final.c (compute_alignments): Likewise.
      	* ira.c (update_equiv_regs): Likewise.
      	* tree-ssa-copy.c (init_copy_prop): Likewise.
      	* tree-ssa-dom.c (loop_depth_of_name): Likewise.
      	* tree-ssa-forwprop.c: Include cfgloop.h.
      	(forward_propagate_addr_expr): Use bb_loop_depth.
      	* tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
      	* tree-ssa-sink.c (select_best_block): Likewise.
      	* ipa-inline-analysis.c: Include cfgloop.h.
      	(estimate_function_body_sizes): Use bb_loop_depth.
      	* Makefile.in (tree-ssa-forwprop.o): Depend on $(CFGLOOP_H).
      	(ipa-inline-analysis.o): Likewise.
      	(bt-load.o): Likewise.
      
      	* gcc.dg/tree-prof/update-loopch.c: Adjust.
      
      From-SVN: r190346
      Richard Guenther committed
  13. 07 Aug, 2012 1 commit
    • cfg.c (debug_bb): Do not set TDF_BLOCKS. · f8923f7e
      gcc/
      	* cfg.c (debug_bb): Do not set TDF_BLOCKS.
      	* cfghooks.c (dump_bb): Honor ~TDF_BLOCKS.
      	* pretty-print.c (pp_base_flush): Do not add a newline, and do not
      	clear pp_needs_newline.
      	* pretty-print.h (pp_newline_and_flush): New macro with the behavior
      	of pp_base_flush before the above change.
      	* langhooks.c (lhd_print_error_function): Use pp_newline_and_flush
      	instead of pp_flush.
      	* diagnostic.c (diagnostic_finish): Likewise.
      	(diagnostic_report_diagnostic): Likewise.
      	(verbatim): Likewise.
      	(error_recursion): Likewise.
      	* tree-pretty-print.c (print_generic_stmt): Likewise.
      	(print_generic_stmt_indented): LIkewise.
      	* gimple-pretty-print.c (print_gimple_stmt): Likewise.
      	(print_gimple_seq): Likewise.
      	(gimple_dump_bb_buff): Likewise.
      
      c-family/
      	* c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
      	instead of separate pp_newline and pp_flush.
      	(print_c_tree): Likewise.
      
      cp/
      	* error.c (print_instantiation_context): Pretty-print a newline before
      	diagnostic_flush_buffer.
      	* cxx-pretty-print.c (pp_cxx_function_definition): Use
      	pp_newline_and_flush instead of separate pp_newline and pp_flush.
      
      testsuite/
      	* gcc.dg/tree-prof/update-loopch.c: Ask for dump with blocks info.
      	* gcc.dg/tree-ssa/attr-hotcold-2.c: Likewise.
      	* gcc.dg/tree-ssa/pr18133-1.c: Likewise.
      
      From-SVN: r190215
      Steven Bosscher committed
  14. 20 Jul, 2012 1 commit
    • basic-block.h (BB_FLAGS_TO_PRESERVE): New define. · c4669594
      gcc/
      	* basic-block.h (BB_FLAGS_TO_PRESERVE): New define.
      	(brief_dump_cfg): Update prototype to take flags argument.
      	(check_bb_profile): Remove prototype.
      	* tracer.c (tracer): Update brief_dump_cfg calls.
      	* cfghooks.c (dump_bb): Do not pass TDF_COMMENT to dump_bb_info.
      	Call dump_bb_info before and after the cfghook dump_bb.  Terminate
      	the dump with a newline.
      	(dump_flow_info): Do not call check_bb_profile.
      	* cfg.c (clear_bb_flags): Update using BB_FLAGS_TO_PRESERVE.
      	(check_bb_profile): Make static.  Take indent and flags arguments.
      	(dump_bb_info): Always dump loop depth.  With TDF_DETAILS, call
      	check_bb_profile.  Print one edge per line.
      	(brief_dump_cfg): Take a flags argument, and filter out
      	TDF_COMMENT and TDF_DETAILS.
      	* pretty-print.c (pp_base_newline): Set pp_needs_newline to false.
      	* gimple-pretty-print.c (dump_gimple_bb_header): Do not use dump_bb_info
      	here, it is already called from dump_bb.  Idem for check_bb_profile.
      	(dump_gimple_bb_footer): Likewise.
      	(gimple_dump_bb_buff): Call pp_flush after dump_gimple_stmt to
      	avoid broken dumps for statement histograms.
      	(gimple_dump_bb): Handle ENTRY_BLOCK and EXIT_BLOCK.  Do
      	not call pp_flush here, the buffer should be empty.
      	* sched-rgn.c (debug_region): Pass TDF_BLOCKS to dump_bb.
      	* sched-vis.c (debug_bb_slim): Likewise.
      	* tree-cfg.c (remove_bb): Pass dump_flags to dump_bb.
      	(gimple_debug_bb): Pass TDF_BLOCKS to dump_bb.
      	(gimple_dump_cfg): Do brief_dump_cfg with TDF_COMMENT.
      	(dump_function_to_file): Do not call check_bb_profile on
      	ENTRY_BLOCK and EXIT_BLOCK, check_bb_profile doesn't handle them.
      	Use dump_bb instead of gimple_dump_bb.
      	(print_loops_bb): Use dump_bb instead of gimple_dump_bb.
      	* passes.c (execute_function_dump): Always call print_rtl_with_bb
      	for RTL dumps.
      	* cfgrtl.c (print_rtl_with_bb): Handle printing without an up-to-date
      	CFG.  With TDF_BLOCKS and TDF_DETAILS, do DF dumps at the top and bottom
      	of each basic block.
      
      testsuite/
      	* gcc.dg/tree-prof/update-loopch.c: Look for counts on the dumps of
      	the basic block and check loop depth.
      	* gcc.dg/tree-ssa/pr18133-1.c: Dump details, not blocks.  Update
      	matching patterns and comments.
      	* gcc.dg/tree-ssa/20031021-1.c: Fix check patterns.
      	* gcc.dg/tree-ssa/vector-2.c: Likewise.
      
      From-SVN: r189717
      Steven Bosscher committed
  15. 17 Jul, 2012 2 commits
    • fix botched commit · b0bf98a1
      From-SVN: r189591
      Steven Bosscher committed
    • dumpfile.h (TDF_COMMENT): New define. · a315c44c
      	* dumpfile.h (TDF_COMMENT): New define.
      	* basic-block.h (EDGE_FALLTHRU, EDGE_ABNORMAL, EDGE_ABNORMAL_CALL,
      	EDGE_EH, EDGE_FAKE, EDGE_DFS_BACK, EDGE_CAN_FALLTHRU,
      	EDGE_IRREDUCIBLE_LOOP, EDGE_SIBCALL, EDGE_LOOP_EXIT, EDGE_TRUE_VALUE,
      	EDGE_FALSE_VALUE, EDGE_EXECUTABLE, EDGE_CROSSING, EDGE_PRESERVE):
      	Move to new file cfg-flags.h.
      	(enum cfg_edge_flags): New enum, using cfg-flags.h.
      	(EDGE_ALL_FLAGS): Compute value automatically.
      	(BB_NEW, BB_REACHABLE, BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK,
      	BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION,
      	BB_DUPLICATED, BB_NON_LOCAL_GOTO_TARGET, BB_RTL,
      	BB_FORWARDER_BLOCK, BB_NONTHREADABLE_BLOCK, BB_MODIFIED, BB_VISITED,
      	BB_IN_TRANSACTION): Move to new file cfg-flags.h.
      	(enum bb_flags): Rename to cfg_bb_flags.  Use cfg-flags.h.
      	(BB_ALL_FLAGS): New, compute value automatically.
      	(dump_bb_info): Update prototype.
      	(dump_edge_info): Update prototype.
      	* cfg-flags.h: New file.
      	* cfg.c (dump_edge_info): Take flags argument.  Be verbose only if
      	TDF_DETAILS and not TDF_SLIM.  Include cfg-flags.h for bitnames.
      	Check that the edge flags are within the range of EDGE_ALL_FLAGS.
      	(debug_bb): Update dump_bb call.
      	(dump_cfg_bb_info): Remove.
      	(dump_bb_info): New function.  Use cfg-flags.h for bitnames.
      	Adjust verbosity using TDF_* flags.  Check that the basic block flags
      	are within the range of BB_ALL_FLAGS.
      	(brief_dump_cfg): Use dump_bb_info instead of dump_cfg_bb_info.
      	* cfghooks.h (struct cfghooks): Update dump_bb hook, take a FILE
      	first for consistency with other dump functions.
      	(dump_bb): Update prototype accordingly.
      	* cfghooks.c: Include dumpfile.h.
      	(verify_flow_info): Update dump_edge_info calls.
      	(dump_bb): Take a flags argument and pass it around.
      	Use dump_bb_info to dump common information about a basic block.
      	(dump_flow_info): Moved here from cfgrtl.c.  Make IL agnostic.
      	(debug_flow_info): Moved here from cfgrtl.c.
      	* profile.c (is_edge_inconsistent): Update dump_bb calls.
      	* loop-invariant.c (find_defs): Update print_rtl_with_bb call.
      	* rtl.h (debug_bb_n_slim, debug_bb_slim, print_rtl_slim,
      	print_rtl_slim_with_bb): Remove prototypes.
      	(dump_insn_slim): Adjust prototype to take a const_rtx.
      	(print_rtl_with_bb): Adjust prototype.
      	* sched-rgn.c (debug_region): Use dump_bb instead of debug_bb_n_slim.
      	* sched-vis.c (dump_insn_slim): Take a const_rtx.
      	(debug_insn_slim): Prototype here near DEBUG_FUNCTION marker.
      	(print_rtl_slim_with_bb): Remove.
      	(print_rtl_slim): Rename to debug_rtl_slim.  Print only insn info,
      	not basic block info (print_rtl_with_bb with TDF_SLIM should be used
      	for that.  Prototype here near DEBUG_FUNCTION marker.
      	(debug_bb_slim): Prototype here near DEBUG_FUNCTION marker.
      	Use dump_bb.
      	(debug_bb_n_slim): Prototype here near DEBUG_FUNCTION marker.
      	* tree-cfg.c (gimple_can_merge_blocks_p): Use EDGE_COMPLEX.
      	(remove_bb): Update dump_bb call.
      	(gimple_debug_bb): Use dump_bb.
      	(dump_function_to_file): Update gimple_dump_bb call.
      	(print_loops_bb): Likewise.
      	* tree-flow.h (gimple_dump_bb): Update prototype.
      	* gimple-pretty-print.c (dump_bb_header): Rename to
      	dump_gimple_bb_header.  Write to a stream instead of a pretty
      	printer.  Use dump_bb_info to dump basic block info.
      	(dump_bb_end): Rename to dump_gimple_bb_footer.  Write to a
      	stream instead of a pretty printer.  Use dump_bb_info.
      	(gimple_dump_bb_buff): Do not call dump_bb_header and dump_bb_end.
      	(gimple_dump_bb): Do it here with dump_gimple_bb_header and
      	dump_gimple_bb_footer.
      	* cfgrtl.c (rtl_dump_bb): Update prototype.  Only dump DF if the
      	dump flags have TDF_DETAILS.  Use dump_insn_slim if TDF_SLIM.
      	(print_rtl_with_bb): Take a flags argument and pass it around.
      	Use dump_insn_slim if TDF_SLIM.
      	(dump_bb_info): Removed and re-incarnated in cfg.c.
      	(dump_flow_info): Moved to cfghooks.c.
      	(debug_flow_info): Moved to cfghooks.c.
      	* passes.c (execute_function_dump): Unconditionally use
      	print_rtl_with_bb for RTL dumps, now that it understands TDF_SLIM.
      	* final.c (dump_basic_block_info): Update dump_edge_info calls.
      	* tree-vrp.c (dump_asserts_for): Likewise.
      	* ifcvt.c (if_convert): Unconditionally use print_rtl_with_bb.
      	* tree-if-conv.c (if_convertible_bb_p): Don't look at
      	EDGE_ABNORMAL_CALL, it has no meaning in the GIMPLE world.
      	* trans-mem.c (make_tm_edge): Don't set EDGE_ABNORMAL_CALL,
      	for the same reason.
      	* config/rl78/rl78.c (rl78_reorg): Update print_rtl_with_bb calls.
      
      From-SVN: r189590
      Steven Bosscher committed
  16. 16 Jul, 2012 1 commit
    • system.h (dump_file): Do not define. · 7ee2468b
      gcc/
      	* system.h (dump_file): Do not define.
      	* tree-pass.h: Include dumpfile.h, which is a new file containing...
      	(enum tree_dump_index, TDF_*, get_dump_file_name, dump_enabled_p,
      	dump_initialized_p, dump_begin, dump_end, dump_node, dump_switch_p,
      	dump_flag_name, dump_file, dump_flags, dump_file_name,
      	get_dump_file_info, struct dump_file_info): all of this, moved to...
      	* dumpfile.h: Here, new file.
      	* tree-dump.h: Include dumpfile.h, but not tree-pass.h.
      	(dump_stmt): Remove prototype for C++ specific function.
      	(dump_enumerated_decls): Move prototype from here...
      	* tree-flow.h (dump_enumerated_decls): ... to here.
      	(get_ref_base_and_extent) Move prototype from here ...
      	* tree.h (get_ref_base_and_extent) ... to here.
      	* tree-ssa-live.c: Do not inclde tree-pretty-print.h, because
      	gimple-pretty-print.h is enough.  Do not include tree-dump.h,
      	include timevar.h and dumpfile.h instead.
      	(struct numbered_tree_d, compare_decls_by_uid,
      	dump_enumerated_decls_push, dump_enumerated_decls): Move from here ...
      	* tree-dfa.c:(struct numbered_tree_d, compare_decls_by_uid,
      	dump_enumerated_decls_push, dump_enumerated_decls):... to here.
      	Do not include timevar.h.
      	* tree.c: Do not include timevar.h.
      	* tree-cfg.c: Do not include langhooks.h, tree-pretty-print.h, and
      	timevar.h.
      	(dump_cfg_stats): Use current_function_name.
      	(gimple_cfg2vcg): Likewise.
      	(dump_function_to_file): Likewise.
      	* df-scan.c: Do not include tree-pass.h and timevar.h.
      	Include dumpfile.h.
      	(df_entry_block_bitmap_verify, df_exit_block_bitmap_verify): Do not
      	use print_current_pass.
      	* df-problems.c: Include dumpfile.h.
      	Always define REG_DEAD_DEBUGGING, avoid #ifdef code, because it
      	leads to errors in the code not selected.
      	(df_note_compute): Do not print_rtl_with_bb here.  Fix compilation
      	bug if REG_DEAD_DEBUGGING is not 0, get_insns is not available here.
      	* lcm.c: Include dumpfile.h.
      	Remove obsolete include of insn-attr.h.
      	* dojump.c (do_compare_rtx_and_jump): Remove failure printing for
      	missing probability notes.
      	* stmt.c: Include dumpfile.h.
      	(emit_case_decision_tree): Re-enable printing expand details only
      	if TDF_DETAILS.
      	* alias.c, auto-inc-dec.c, bb-reorder.c, caller-save.c, cfg.c, 
      	cfgcleanup.c, cfgexpand.c, cfgloop.c, cfgloopmanip.c, cgraph.c, 
      	cgraphclones.c, cgraphunit.c, combine.c, combine-stack-adj.c, 
      	coverage.c, cprop.c, cse.c, cselib.c, dbgcnt.c, dce.c, df-core.c, 
      	dse.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, final.c, 
      	function.c, fwprop.c, gcse.c, gimple-fold.c, 
      	gimple-pretty-print.c, gimple-ssa-strength-reduction.c, 
      	gimplify.c, graphite-blocking.c, graphite-clast-to-gimple.c, 
      	graphite-dependences.c, graphite-interchange.c, 
      	graphite-optimize-isl.c, graphite-poly.c, 
      	graphite-sese-to-poly.c, haifa-sched.c, hw-doloop.c, ifcvt.c, 
      	ipa.c, ipa-cp.c, ipa-inline-analysis.c, ipa-inline.c, 
      	ipa-inline-transform.c, ipa-prop.c, ipa-pure-const.c, 
      	ipa-reference.c, ipa-split.c, ipa-utils.c, ira.c, ira-emit.c, 
      	jump.c, loop-doloop.c, loop-init.c, loop-invariant.c, loop-iv.c, 
      	loop-unroll.c, loop-unswitch.c, lower-subreg.c, 
      	lto-section-out.c, lto-streamer-in.c, matrix-reorg.c, mcf.c, 
      	mode-switching.c, modulo-sched.c, omega.c, omp-low.c, passes.c, 
      	plugin.c, postreload.c, postreload-gcse.c, predict.c, print-rtl.c, 
      	print-tree.c, profile.c, recog.c, ree.c, regcprop.c, reginfo.c, 
      	regmove.c, regrename.c, reg-stack.c, reload1.c, reorg.c, 
      	sched-rgn.c, sched-vis.c, sel-sched.c, sel-sched-ir.c, 
      	store-motion.c, tracer.c, trans-mem.c, tree-affine.c, 
      	tree-call-cdce.c, tree-cfgcleanup.c, tree-chrec.c, 
      	tree-data-ref.c, tree-diagnostic.c, tree-dump.c,
      	tree-eh.c, tree-flow-inline.h, tree-if-conv.c, tree-into-ssa.c, 
      	tree-mudflap.c, tree-nrv.c, tree-object-size.c, 
      	tree-optimize.c, tree-outof-ssa.c, tree-predcom.c, 
      	tree-pretty-print.c, tree-profile.c, tree-scalar-evolution.c, 
      	tree-sra.c, tree-ssa-address.c, tree-ssa-alias.c, tree-ssa.c, 
      	tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-copy.c, 
      	tree-ssa-copyrename.c,, tree-ssa-dce.c, tree-ssa-dom.c, 
      	tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-ifcombine.c, 
      	tree-ssa-loop.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c, 
      	tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, 
      	tree-ssa-loop-manip.c, tree-ssa-loop-niter.c, 
      	tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c, 
      	tree-ssa-math-opts.c, tree-ssa-operands.c, tree-ssa-phiopt.c, 
      	tree-ssa-phiprop.c, tree-ssa-pre.c, tree-ssa-propagate.c, 
      	tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-sink.c, 
      	tree-ssa-structalias.c, tree-ssa-tail-merge.c, tree-ssa-ter.c, 
      	tree-ssa-threadedge.c, tree-ssa-threadupdate.c, 
      	tree-ssa-uncprop.c, tree-ssa-uninit.c, 
      	tree-switch-conversion.c, tree-tailcall.c, 
      	tree-vect-data-refs.c, tree-vect-loop.c, 
      	tree-vect-loop-manip.c, tree-vectorizer.c, 
      	tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c, 
      	tree-vrp.c, value-prof.c, var-tracking.c, web.c: Include tree-pass.h
      	only if needed.  If tree-pass.h is included, do not include timevar.h
      	and dumpfile.h.  If tree-pass.h is not included but dump_file, or
      	dump_flags, or the TDF_* flags are used, include dumpfile.h.
      	If gimple-pretty-print.h is included, don't include tree-pretty-print.h.
      	Remove assorted unnecessary includes.
      
      	* config/mn10300/mn10300.c, config/c6x/c6x.c, config/ia64/ia64.c,
      	config/arm/arm.c, config/bfin/bfin.c, config/frv/frv.c,
      	config/spu/spu.c, config/mep/mep.c, config/i386/i386.c:
      	Include dumpfile.h.
      	* config/rl78/rl78.c: Include dumpfile.h instead of tree-pass.h.
      	* arm/t-arm, avr/t-avr, i386/t-i386, ia64/t-ia64, mep/t-mep,
      	spu/t-spu-elf: Fix dependencies.
      
      c-family/
      	* c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
      	* c-ada-spec.c: Likewise.
      	* c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
      
      c/
      	* c-decl.c: Include dumpfile.h instead of tree-dump.h.
      	* Make-lang.in: Fix dependencies.
      
      cp/
      	* dump.c (dump_stmt): Moved here from c-dump.c.
      	* optimize.c: Include dumpfile.h instead of tree-dump.h.
      	* class.c: Likewise.
      	* decl2.c: Likewise.
      	* Make-lang.in: Fix dependencies.
      
      fortran/
      	* f95-lang.c: Include dumpfile.h instead of tree-dump.h.
      	* Make-lang.in: Fix dependencies.
      
      java/
      	* java-gimplify.c Include dumpfile.h instead of tree-dump.h
      	* Make-lang.in: Fix dependencies.
      
      lto/
      	* lto.c: Do not include timevar.h.
      	* Make-lang.in: Fix dependencies.
      
      ada/
      	* gcc-interface/utils.c: Include timevar.h.
      	* Make-lang.in: Fix dependencies.
      
      From-SVN: r189519
      Steven Bosscher committed
  17. 08 Jul, 2012 1 commit
    • basic-block.h: Re-group most prototypes per file. · 532aafad
      gcc/
      	* basic-block.h: Re-group most prototypes per file.
      	(struct edge_list): Remove num_blocks field.
      	(dump_bb_info): Adjust prototypes.
      	(dump_reg_info): Move prototype to regs.h.
      	* function.h: Do not include tree.h.
      	Include vec.h, vecir.h, input.h and machmode.h to compensate.
      	(function_name): New prototype.
      	* gimple.h: Include tree.h to compensate for basic-block.h change.
      	* langhooks.h: Note that tree.h is only necessary for enum tree_code.
      	* regs.h (dump_reg_info): Prototype here.
      	* regset.h: Adjust file reference in comment.
      	(debug_regset): Remove prototype.
      	* rtl.h: Include flags.h for flag_var_tracking_assignments.
      	(MAY_HAVE_DEBUG_INSNS): Define as flag_var_tracking_assignments
      	instead of no-longer-available tree.h's MAY_HAVE_DEBUG_STMTS.
      	(dump_reg_info, dump_flow_info): Remove prototypes.
      	* bb-reorder.c (set_edge_can_fallthru_flag): Move from cfganal.c
      	to here, the only user.  Make static.
      	(reorder_basic_blocks): Call dump_reg_info before dump_flow_info.
      	* cfg.c: Do not include tm.h, tree.h, rtl.h, hard-reg-set.h, regs.h,
      	flags.h, function.h, except.h, diagnostic-core.h, tm_p.h, timevar.h,
      	tree-pass.h, cfgloop.h, and tree-flow.h.
      	Include basic-block.h, the first header I'd expect to be included.
      	(reg_obstack): Move to df-core.c.
      	(free_edge): Remove bogus ATTRIBUTE_UNUSED.
      	(remove_edge_raw): Do not call tree-ssa's redirect_edge_var_map_clear.
      	(redirect_edge_succ_nodup): Move to cfghooks.c.
      	(dump_regset, debug_regset): Move to df-core.c.
      	(dump_bb_info): Move to cfgrtl.c.
      	(dump_reg_info): Move to regstat.c.
      	(dump_flow_info): Move to cfgrtl.c.
      	(debug_flow_info): Likewise.
      	(dump_edge_info): Do not look at cfun, a CFG without cfun is nonsense.
      	* cfganal.c: Do not include tm.h, rtl.h, obstack.h, hard-reg-set.h,
      	insn-config.h, recog.h, diagnostic-core.h, tm_p.h, and cfgloop.h.
      	(flow_active_insn_p, forwarder_block_p, can_fallthru,
      	could_fall_through): Move to cfgrtl.c.
      	(set_edge_can_fallthru_flag): Moved to bb-reorder.c.
      	(create_edge_list): Do not set edge_list's removed num_blocks.
      	(print_edge_list): Look at n_basic_blocks instead of num_blocks.
      	(flow_nodes_print): Remove.
      	(flow_edge_list_print): Remove.
      	(inverted_post_order_compute): Use FOR_ALL_BB.
      	*cfgrtl.c (dump_flow_info): Moved from cfg.c.
      	Do not call dump_reg_info.
      	(debug_flow_info): Moved from cfg.c
      	(dump_bb_info): Moved from cfg.c.  Take 'verbose' argument
      	to avoid looking at TDF_* flags from tree-pass.h.
      	(flow_active_insn_p, forwarder_block_p, can_fallthru,
      	could_fall_through): Moved from cfganal.c.
      	(print_rtl_with_bb): Adjust dump_bb_info calls.
      	* cfghooks.c (redirect_edge_succ_nodup): Moved from cfg.c.
      	(remove_edge): Call redirect_edge_var_map_clear if IR_GIMPLE.
      	(cfgcleanup.c): Look at MAY_HAVE_DEBUG_INSNS, not MAY_HAVE_DEBUG_STMTS.
      	* cselib.c: Include tree.h with a FIXME.
      	* df-core.c (reg_obstack): Moved from cfg.c.
      	(dump_regset): Likewise.
      	(debug_regset): Likewise.  Make a DEBUG_FUNCTION.
      	* final.c (compute_alignments): Call dump_reg_info before
      	dump_flow_info.
      	* function.c (function_name): New function.
      	(current_function_name): Use it.
      	* ifcvt.c (rest_of_handle_if_conversion): Call dump_reg_info before
      	dump_flow_info.
      	* ira-conflicts.c: Include tree.h with a note.
      	* regstat.c (dump_reg_info): Moved here from cfg.c.
      	* loop-init.c: Include regs.h instead of hard-reg-set.h.
      	(rtl_loop_init): Call dump_reg_info before dump_flow_info.
      	(rtl_loop_done): Likewise.
      	* mcf.c: Include tree.h before langhooks.h.
      	* predict.c (maybe_hot_count_p): Assert we have cfun.
      	(probably_never_executed_bb_p): Likewise.
      	* profile.c (compute_branch_probabilities): Use gimple_dump_cfg
      	instead of dump_flow_info.
      	* sched-deps.c: Include tree.h with a FIXME.
      	(call_may_noreturn_p): Add FIXME note why this function has to
      	look at function decls instead of function decl flags.
      	* sched-vis.c: Include tree.h with a FIXME.
      	(print_rtl_slim): Adjust dump_bb_info uses.
      	* statistics.c (statistics_fini_pass_2): Use current_function_name
      	to avoid including tree.h.
      	(statistics_counter_event): Use function_name for the same reason.
      	(statistics_histogram_event): Likewise.
      	* tracer.c (tracer): Remove bogus gcc_assert.  Use brief_dump_cfg
      	instead of dump_flow_info.
      	* var-tracking.c (variable_tracking_main_1): Call dump_reg_info
      	before dump_flow_info.
      	* doc/cfg.texi: Update CFG documentation.
      	* Makefile.in (RTL_H): Depend on FLAGS_H.
      	(GIMPLE_H): Depend on TREE_H.
      	(FUNCTION_H): Depend on VEC_H, vecir.h, INPUT_H and MACHMODE_H,
      	but no longer on TREE_H.
      	(C_COMMON_H): Depend on TREE_H.
      	(cselib.o, cse.o, cfganal.o, loop-init.o, ira-conflicts.o,
      	sched-deps.o, sched-vis.o): Fixup dependencies.
      
      c-family/
      	* c-common.h: Include tree.h.
      
      cp/
      	* decl.c (cp_finish_decl): Add FIXME at add_local_decl call site.
      
      From-SVN: r189359
      Steven Bosscher committed
  18. 31 May, 2012 2 commits
    • output.h (__gcc_host_wide_int__): Move to hwint.h. · be7a421e
      	* output.h (__gcc_host_wide_int__): Move to hwint.h.
      	(decl_default_tls_model): Move to tree.h
      	(dump_file): Move to system.h.
      	(default_stabs_asm_out_destructor, default_stabs_asm_out_constructor,
      	dbxout_int, dbxout_stabd, dbxout_begin_stabn, dbxout_begin_stabn_sline,
      	dbxout_begin_empty_stabs, dbxout_begin_simple_stabs,
      	dbxout_begin_simple_stabs_desc, dbxout_stab_value_zero,
      	dbxout_stab_value_zero, dbxout_stab_value_label_diff,
      	dbxout_stab_value_internal_label,
      	dbxout_stab_value_internal_label_diff): Move from here ...
      	* dbxout.h: ... to here.
      	* system.h (dump_file): Moved here from output.h.
      	* hwint.h (__gcc_host_wide_int__): Moved here from output.h.
      	* tree.h (decl_default_tls_model): Moved here from output.h.
      	* varasm.c (default_stabs_asm_out_destructor,
      	default_stabs_asm_out_constructor): Move from here ...
      	* dbxout.c: ... to here.
      
      	* gcov-dump.c (dump_file): Rename to dump_gcov_file.  Update callers.
      
      	* collect2.h (dump_file): Rename to dump_ld_file.
      	* collect2.c: Likewise.
      	* tlink.c: Likewise.
      
      	* alias.c: Do not include output.h.
      	* auto-inc-dec.c: Likewise.
      	* bt-load.c: Likewise.
      	* caller-save.c: Likewise.
      	* cfg.c: Likewise.
      	* cfgbuild.c: Likewise.
      	* cfgcleanup.c: Likewise.
      	* cfglayout.c: Likewise.
      	* cfgloop.c: Likewise.
      	* cfgloopanal.c: Likewise.
      	* cfgloopmanip.c: Likewise.
      	* cfgrtl.c: Likewise.
      	* cgraph.c: Likewise.
      	* cgraphclones.c: Likewise.
      	* combine-stack-adj.c: Likewise.
      	* combine.c: Likewise.
      	* cprop.c: Likewise.
      	* cse.c: Likewise.
      	* cselib.c: Likewise.
      	* dbgcnt.c: Likewise.
      	* df-problems.c: Likewise.
      	* df-scan.c: Likewise.
      	* dojump.c: Likewise.
      	* fwprop.c: Likewise.
      	* gcse.c: Likewise.
      	* graph.c: Likewise.
      	* haifa-sched.c: Likewise.
      	* hw-doloop.c: Likewise.
      	* ipa-inline-transform.c: Likewise.
      	* ipa-pure-const.c: Likewise.
      	* ipa-reference.c: Likewise.
      	* ipa-utils.c: Likewise.
      	* ira-build.c: Likewise.
      	* ira-emit.c: Likewise.
      	* lcm.c: Likewise.
      	* loop-doloop.c: Likewise.
      	* loop-invariant.c: Likewise.
      	* loop-iv.c: Likewise.
      	* loop-unroll.c: Likewise.
      	* loop-unswitch.c: Likewise.
      	* lto-cgraph.c: Likewise.
      	* lto-section-in.c: Likewise.
      	* lto-streamer-in.c: Likewise.
      	* mcf.c: Likewise.
      	* mode-switching.c: Likewise.
      	* postreload-gcse.c: Likewise.
      	* postreload.c: Likewise.
      	* predict.c: Likewise.
      	* profile.c: Likewise.
      	* ree.c: Likewise.
      	* reg-stack.c: Likewise.
      	* regcprop.c: Likewise.
      	* regmove.c: Likewise.
      	* regstat.c: Likewise.
      	* reload1.c: Likewise.
      	* sched-ebb.c: Likewise.
      	* sel-sched-dump.c: Likewise.
      	* simplify-rtx.c: Likewise.
      	* stor-layout.c: Likewise.
      	* store-motion.c: Likewise.
      	* tracer.c: Likewise.
      	* tree-affine.c: Likewise.
      	* tree-cfg.c: Likewise.
      	* tree-cfgcleanup.c: Likewise.
      	* tree-dfa.c: Likewise.
      	* tree-into-ssa.c: Likewise.
      	* tree-nomudflap.c: Likewise.
      	* tree-optimize.c: Likewise.
      	* tree-pretty-print.c: Likewise.
      	* tree-profile.c: Likewise.
      	* tree-ssa-address.c: Likewise.
      	* tree-ssa-ccp.c: Likewise.
      	* tree-ssa-copy.c: Likewise.
      	* tree-ssa-dom.c: Likewise.
      	* tree-ssa-loop-ch.c: Likewise.
      	* tree-ssa-loop-im.c: Likewise.
      	* tree-ssa-loop-manip.c: Likewise.
      	* tree-ssa-loop-niter.c: Likewise.
      	* tree-ssa-loop-prefetch.c: Likewise.
      	* tree-ssa-loop-unswitch.c: Likewise.
      	* tree-ssa-loop.c: Likewise.
      	* tree-ssa-propagate.c: Likewise.
      	* tree-ssa-structalias.c: Likewise.
      	* tree-ssa-tail-merge.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.
      	* value-prof.c: Likewise.
      	* var-tracking.c: Likewise.
      	* web.c: Likewise.
      
      	* config/m32r/m32r.c: Include dbxout.h.
      	* config/pa/pa.c: Likewise.
      	* config/rs6000/rs6000.c: Likewise.
      
      	* Makefile.in: Fix dependencies.
      	* config/rs6000/t-rs5000: Likewise.
      
      c-family/
      	* c-ada-spec.c: Do not include output.h.
      	* c-semantics.c: Likewise.
      
      cp/
      	* call.c: Do not include output.h.
      	* class.c: Likewise.
      	* except.c: Likewise.
      	* friend.c: Likewise.
      	* init.c: Likewise.
      	* lex.c: Likewise.
      	* method.c: Likewise.
      	* parser.c: Likewise.
      	* pt.c: Likewise.
      	* rtti.c: Likewise.
      	* search.c: Likewise.
      
      objc/
      	* objc-act.c: Do not include output.h.
      
      fortran/
      	* trans-common.c: Do not include output.h.
      	* trans-decl.c: Likewise.
      
      java/
      	* resource.c: Do not include output.h.
      
      From-SVN: r188082
      Steven Bosscher committed
    • re PR tree-optimization/52558 (write introduction incorrect wrt the C++11 memory model) · 039496da
              PR tree-optimization/52558
              * cfg.c (alloc_aux_for_edge): Fix comment.
              (alloc_aux_for_edge): Remove static.
              * basic-block.h (alloc_aux_for_edge): Protoize.
              * tree-ssa-loop-im.c (execute_sm_if_changed): New.
              (execute_sm_if_changed_flag): New.
              (execute_sm_if_changed_flag_set): New.
              (execute_sm): Do not generate data races unless requested.
              (tree_ssa_lim_initialize): Call alloc_aux_for_edges.
              (tree_ssa_lim_finalize): Call free_aux_for_edges.
              * gimple.h (block_in_transaction): New.
              (gimple_in_transaction): Use block_in_transaction.
      
      From-SVN: r188081
      Aldy Hernandez committed
  19. 27 Apr, 2012 1 commit
  20. 23 Jul, 2011 1 commit
  21. 20 Jul, 2011 1 commit
  22. 23 Mar, 2011 1 commit
  23. 30 Nov, 2010 1 commit
    • diagnostic-core.h: Include bversion.h. · 7c475d11
      	* diagnostic-core.h: Include bversion.h.
      	* toplev.h: Don't include input.h or bversion.h.
      	(parse_optimize_options): Don't declare here.
      	* alias.c, auto-inc-dec.c, c-aux-info.c, c-convert.c, c-parser.c,
      	caller-save.c, cfg.c, cfganal.c, cfgbuild.c, cfgcleanup.c,
      	combine-stack-adj.c, config/arm/pe.c, config/darwin-c.c,
      	config/host-darwin.c, config/i386/host-cygwin.c,
      	config/i386/host-mingw32.c, config/i386/msformat-c.c,
      	config/i386/netware.c, config/i386/nwld.c,
      	config/i386/winnt-cxx.c, config/i386/winnt-stubs.c,
      	config/ia64/ia64-c.c, config/m32c/m32c-pragma.c,
      	config/mep/mep-pragma.c, config/microblaze/microblaze-c.c,
      	config/rs6000/host-darwin.c, config/rs6000/rs6000-c.c,
      	config/score/score3.c, config/score/score7.c,
      	config/sh/symbian-base.c, config/sh/symbian-c.c,
      	config/sh/symbian-cxx.c, config/sol2-c.c, config/sol2.c,
      	config/v850/v850-c.c, config/vxworks.c, convert.c, cppbuiltin.c,
      	cselib.c, dbgcnt.c, ddg.c, dfp.c, dominance.c, emit-rtl.c,
      	fixed-value.c, fwprop.c, ggc-common.c, gimple.c, gimplify.c,
      	graphite-blocking.c, graphite-clast-to-gimple.c,
      	graphite-dependences.c, graphite-flattening.c,
      	graphite-interchange.c, graphite-poly.c,
      	graphite-scop-detection.c, graphite.c, haifa-sched.c,
      	implicit-zee.c, integrate.c, ipa-pure-const.c, ipa-reference.c,
      	ira-build.c, ira-conflicts.c, ira-costs.c, ira-lives.c, jump.c,
      	lists.c, loop-doloop.c, loop-iv.c, lto-cgraph.c, lto-compress.c,
      	lto-opts.c, lto-section-in.c, lto-section-out.c,
      	lto-streamer-out.c, lto-symtab.c, modulo-sched.c, optabs.c,
      	params.c, postreload-gcse.c, postreload.c, predict.c, profile.c,
      	regcprop.c, reginfo.c, regmove.c, reorg.c, resource.c,
      	sched-deps.c, sched-ebb.c, sched-rgn.c, sdbout.c,
      	sel-sched-dump.c, sel-sched-ir.c, sese.c, stmt.c, targhooks.c,
      	tree-cfgcleanup.c, tree-mudflap.c, tree-nomudflap.c,
      	tree-object-size.c, tree-outof-ssa.c, tree-phinodes.c,
      	tree-profile.c, tree-sra.c, tree-ssa-ccp.c, tree-ssa-coalesce.c,
      	tree-ssa-live.c, tree-ssa-loop-prefetch.c, tree-ssa-loop.c,
      	tree-ssa-operands.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
      	tree-vect-patterns.c, value-prof.c, var-tracking.c, web.c: Don't
      	include toplev.h.
      	* Makefile.in (TOPLEV_H): Remove.  All uses changed to use
      	toplev.h.  Dependencies for above files and c-family files changed
      	to remove $(TOPLEV_H) or toplev.h.
      	(C_TREE_H): Don't include $(TOPLEV_H).
      	(DIAGNOSTIC_CORE_H): Use $(INPUT_H) instead of input.h.  Add
      	bversion.h.
      	* config/arm/t-pe, config/arm/t-wince-pe, config/i386/t-cygming,
      	config/ia64/t-ia64, config/mep/t-mep, config/score/t-score-elf,
      	config/t-darwin, config/t-sol2,
      	config/t-vxworks, config/v850/t-v850, config/v850/t-v850e:
      	Dependencies for above files changed to remove $(TOPLEV_H) or
      	toplev.h.
      
      c-family:
      	* c-common.h (parse_optimize_options): Declare.
      	* c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
      	c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
      
      cp:
      	* cp-gimplify.c, cp-lang.c, cvt.c, cxx-pretty-print.c, error.c,
      	except.c, expr.c, friend.c, init.c, mangle.c, name-lookup.c,
      	optimize.c, parser.c, rtti.c, tree.c, typeck2.c: Don't include
      	toplev.h.
      	* Make-lang.in: Dependencies for above files changed to remove
      	toplev.h.
      
      java:
      	* expr.c, lang.c, mangle.c, mangle_name.c, typeck.c,
      	verify-glue.c: Don't include toplev.h.
      	* Make-lang.in: Dependencies for above files changed to remove
      	toplev.h.
      
      lto:
      	* Make-lang.in (lto/lto-object.o): Depend on toplev.h instead of
      	$(TOPLEV_H).
      
      From-SVN: r167293
      Joseph Myers committed
  24. 10 Aug, 2010 1 commit
  25. 08 Jul, 2010 1 commit
    • toplev.h: Do not include diagnostic-core.h. · 718f9c0f
      2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
      
      	* toplev.h: Do not include diagnostic-core.h.
      	Include diagnostic-core.h in every file that includes toplev.h.
      	* c-tree.h: Do not include toplev.h.
      	* pretty-print.h: Update comment.
      	* Makefile.in: Update dependencies.
      	* alias.c: Include diagnostic-core.h in every file that includes
      	toplev.h.
      	* attribs.c: Likewise.
      	* auto-inc-dec.c: Likewise.
      	* bb-reorder.c: Likewise.
      	* bt-load.c: Likewise.
      	* caller-save.c: Likewise.
      	* calls.c: Likewise.
      	* cfg.c: Likewise.
      	* cfganal.c: Likewise.
      	* cfgbuild.c: Likewise.
      	* cfgcleanup.c: Likewise.
      	* cfghooks.c: Likewise.
      	* cfgloop.c: Likewise.
      	* combine.c: Likewise.
      	* config/alpha/alpha.c: Likewise.
      	* config/arc/arc.c: Likewise.
      	* config/arm/arm.c: Likewise.
      	* config/arm/pe.c: Likewise.
      	* config/avr/avr.c: Likewise.
      	* config/bfin/bfin.c: Likewise.
      	* config/cris/cris.c: Likewise.
      	* config/crx/crx.c: Likewise.
      	* config/darwin-c.c: Likewise.
      	* config/darwin.c: Likewise.
      	* config/fr30/fr30.c: Likewise.
      	* config/frv/frv.c: Likewise.
      	* config/h8300/h8300.c: Likewise.
      	* config/host-darwin.c: Likewise.
      	* config/i386/i386.c: Likewise.
      	* config/i386/netware.c: Likewise.
      	* config/i386/nwld.c: Likewise.
      	* config/i386/winnt-cxx.c: Likewise.
      	* config/i386/winnt-stubs.c: Likewise.
      	* config/i386/winnt.c: Likewise.
      	* config/ia64/ia64-c.c: Likewise.
      	* config/ia64/ia64.c: Likewise.
      	* config/iq2000/iq2000.c: Likewise.
      	* config/lm32/lm32.c: Likewise.
      	* config/m32c/m32c-pragma.c: Likewise.
      	* config/m32c/m32c.c: Likewise.
      	* config/m32r/m32r.c: Likewise.
      	* config/m68hc11/m68hc11.c: Likewise.
      	* config/m68k/m68k.c: Likewise.
      	* config/mcore/mcore.c: Likewise.
      	* config/mep/mep-pragma.c: Likewise.
      	* config/mep/mep.c: Likewise.
      	* config/mmix/mmix.c: Likewise.
      	* config/mn10300/mn10300.c: Likewise.
      	* config/moxie/moxie.c: Likewise.
      	* config/pa/pa.c: Likewise.
      	* config/pdp11/pdp11.c: Likewise.
      	* config/picochip/picochip.c: Likewise.
      	* config/rs6000/rs6000-c.c: Likewise.
      	* config/rs6000/rs6000.c: Likewise.
      	* config/rx/rx.c: Likewise.
      	* config/s390/s390.c: Likewise.
      	* config/score/score.c: Likewise.
      	* config/score/score3.c: Likewise.
      	* config/score/score7.c: Likewise.
      	* config/sh/sh.c: Likewise.
      	* config/sh/symbian-base.c: Likewise.
      	* config/sh/symbian-c.c: Likewise.
      	* config/sh/symbian-cxx.c: Likewise.
      	* config/sol2-c.c: Likewise.
      	* config/sol2.c: Likewise.
      	* config/sparc/sparc.c: Likewise.
      	* config/spu/spu.c: Likewise.
      	* config/stormy16/stormy16.c: Likewise.
      	* config/v850/v850-c.c: Likewise.
      	* config/v850/v850.c: Likewise.
      	* config/vax/vax.c: Likewise.
      	* config/vxworks.c: Likewise.
      	* config/xtensa/xtensa.c: Likewise.
      	* convert.c: Likewise.
      	* cse.c: Likewise.
      	* cselib.c: Likewise.
      	* dbgcnt.c: Likewise.
      	* dbxout.c: Likewise.
      	* ddg.c: Likewise.
      	* dominance.c: Likewise.
      	* emit-rtl.c: Likewise.
      	* explow.c: Likewise.
      	* expmed.c: Likewise.
      	* fixed-value.c: Likewise.
      	* fold-const.c: Likewise.
      	* fwprop.c: Likewise.
      	* gcse.c: Likewise.
      	* ggc-common.c: Likewise.
      	* ggc-page.c: Likewise.
      	* ggc-zone.c: Likewise.
      	* gimple-low.c: Likewise.
      	* gimplify.c: Likewise.
      	* graph.c: Likewise.
      	* haifa-sched.c: Likewise.
      	* ifcvt.c: Likewise.
      	* implicit-zee.c: Likewise.
      	* integrate.c: Likewise.
      	* ira-build.c: Likewise.
      	* ira-color.c: Likewise.
      	* ira-conflicts.c: Likewise.
      	* ira-costs.c: Likewise.
      	* ira-lives.c: Likewise.
      	* ira.c: Likewise.
      	* lists.c: Likewise.
      	* loop-doloop.c: Likewise.
      	* loop-iv.c: Likewise.
      	* lto-opts.c: Likewise.
      	* lto-symtab.c: Likewise.
      	* main.c: Likewise.
      	* modulo-sched.c: Likewise.
      	* optabs.c: Likewise.
      	* params.c: Likewise.
      	* plugin.c: Likewise.
      	* postreload-gcse.c: Likewise.
      	* postreload.c: Likewise.
      	* predict.c: Likewise.
      	* profile.c: Likewise.
      	* real.c: Likewise.
      	* regcprop.c: Likewise.
      	* reginfo.c: Likewise.
      	* regmove.c: Likewise.
      	* reorg.c: Likewise.
      	* resource.c: Likewise.
      	* rtl.c: Likewise.
      	* rtlanal.c: Likewise.
      	* sched-deps.c: Likewise.
      	* sched-ebb.c: Likewise.
      	* sched-rgn.c: Likewise.
      	* sdbout.c: Likewise.
      	* sel-sched-dump.c: Likewise.
      	* sel-sched-ir.c: Likewise.
      	* simplify-rtx.c: Likewise.
      	* stmt.c: Likewise.
      	* stor-layout.c: Likewise.
      	* store-motion.c: Likewise.
      	* targhooks.c: Likewise.
      	* tree-cfg.c: Likewise.
      	* tree-cfgcleanup.c: Likewise.
      	* tree-dump.c: Likewise.
      	* tree-eh.c: Likewise.
      	* tree-inline.c: Likewise.
      	* tree-nomudflap.c: Likewise.
      	* tree-object-size.c: Likewise.
      	* tree-optimize.c: Likewise.
      	* tree-outof-ssa.c: Likewise.
      	* tree-phinodes.c: Likewise.
      	* tree-profile.c: Likewise.
      	* tree-ssa-ccp.c: Likewise.
      	* tree-ssa-coalesce.c: Likewise.
      	* tree-ssa-live.c: Likewise.
      	* tree-ssa-loop-niter.c: Likewise.
      	* tree-ssa-loop-prefetch.c: Likewise.
      	* tree-ssa-loop.c: Likewise.
      	* tree-ssa-structalias.c: Likewise.
      	* tree-ssa-uninit.c: Likewise.
      	* tree-ssa.c: Likewise.
      	* tree-vect-data-refs.c: Likewise.
      	* tree-vect-loop-manip.c: Likewise.
      	* tree-vect-loop.c: Likewise.
      	* tree-vect-patterns.c: Likewise.
      	* tree-vect-stmts.c: Likewise.
      	* tree-vrp.c: Likewise.
      	* varasm.c: Likewise.
      	* vec.c: Likewise.
      	* web.c: Likewise.
      	* xcoffout.c: Likewise.
      
      c-family/
      	* c-common.h: Include diagnostic-core.h. Error if already
      	included.
      	* c-semantics.c: Do not define GCC_DIAG_STYLE here.
      cp/
      	* cp-tree.h: Do not include toplev.h.
      	
      java/
      	* boehm.c: Include diagnostic-core.h in every file that includes
      	toplev.h.
      	* class.c: Likewise.
      	* constants.c: Likewise.
      	* decl.c: Likewise.
      	* except.c: Likewise.
      	* expr.c: Likewise.
      	* jcf-parse.c: Likewise.
      	* mangle.c: Likewise.
      	* mangle_name.c: Likewise.
      	* resource.c: Likewise.
      	* typeck.c: Likewise.
      	* verify-glue.c: Likewise.
      ada/
      	* gcc-interface/utils.c: Include diagnostic-core.h in every file
      	that includes toplev.h.
      lto/
      	* lto-coff.c: Include diagnostic-core.h in every file that
      	includes toplev.h.
      	* lto-elf.c: Likewise.
      	* lto-lang.c: Likewise.
      	* lto-macho.c: Likewise.
      
      From-SVN: r161943
      Manuel López-Ibáñez committed
  26. 08 Jun, 2010 1 commit
    • utils.c (init_gnat_to_gnu): Use typed GC allocation. · a9429e29
      gcc/ada:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* gcc-interface/utils.c (init_gnat_to_gnu): Use typed GC
      	allocation.
      	(init_dummy_type): Likewise.
      	(gnat_pushlevel): Likewise.
      
      	* gcc-interface/trans.c (Attribute_to_gnu): Likewise.
      	(Subprogram_Body_to_gnu): Likewise.
      	(Compilation_Unit_to_gnu): Likewise.
      	(start_stmt_group): Likewise.
      	(extract_encoding): Likewise.
      	(decode_name): Likewise.
      
      	* gcc-interface/misc.c (gnat_printable_name): Likewise.
      
      	* gcc-interface/decl.c (annotate_value): Likewise.
      
      	* gcc-interface/ada-tree.h (struct lang_type): Add variable_size
      	GTY option.
      	(struct lang_decl): Likewise.
      	(SET_TYPE_LANG_SPECIFIC): Use typed GC allocation.
      	(SET_DECL_LANG_SPECIFIC): Likewise.
      
      gcc/c-family:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* c-pragma.c (push_alignment): Use typed GC allocation.
      	(handle_pragma_push_options): Likewise.
      
      	* c-common.c (parse_optimize_options): Likewise.
      
      	* c-common.h (struct sorted_fields_type): Add variable_size GTY
      	option.
      
      gcc/cp:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* typeck2.c (abstract_virtuals_error): Likewise.
      
      	* pt.c (maybe_process_partial_specialization): Likewise.
      	(register_specialization): Likewise.
      	(add_pending_template): Likewise.
      	(lookup_template_class): Likewise.
      	(push_tinst_level): Likewise.
      
      	* parser.c (cp_lexer_new_main): Likewise.
      	(cp_lexer_new_from_tokens): Likewise.
      	(cp_token_cache_new): Likewise.
      	(cp_parser_context_new): Likewise.
      	(cp_parser_new): Likewise.
      	(cp_parser_nested_name_specifier_opt): Likewise.
      	(cp_parser_template_id): Likewise.
      
      	* name-lookup.c (binding_entry_make): Likewise.
      	(binding_table_construct): Likewise.
      	(binding_table_new): Likewise.
      	(cxx_binding_make): Likewise.
      	(pushdecl_maybe_friend): Likewise.
      	(begin_scope): Likewise.
      	(push_to_top_level): Likewise.
      
      	* lex.c (init_reswords): Likewise.
      	(retrofit_lang_decl): Likewise.
      	(cxx_dup_lang_specific_decl): Likewise.
      	(copy_lang_type): Likewise.
      	(cxx_make_type): Likewise.
      
      	* decl.c (make_label_decl): Likewise.
      	(check_goto): Likewise.
      	(start_preparsed_function): Likewise.
      	(save_function_data): Likewise.
      
      	* cp-tree.h (TYPE_SET_PTRMEMFUNC_TYPE): Likewise.
      
      	* cp-objcp-common.c (decl_shadowed_for_var_insert): Likewise.
      
      	* class.c (finish_struct_1): Likewise.
      
      	* cp-tree.h (struct lang_type): Add variable_size GTY option.
      	(struct lang_decl): Likewise.
      
      	* parser.c (cp_parser_new): Update comment to not reference
      	ggc_alloc.
      
      gcc/fortran:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* trans-types.c (gfc_get_nodesc_array_type): Use typed GC
      	allocation.
      	(gfc_get_array_type_bounds): Likewise.
      
      	* trans-decl.c (gfc_allocate_lang_decl): Likewise.
      	(gfc_find_module): Likewise.
      
      	* f95-lang.c (pushlevel): Likewise.
      
      	* trans.h (struct lang_type): Add variable_size GTY option.
      	(struct lang_decl): Likewise.
      
      gcc/java:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* jcf-reader.c (jcf_parse_constant_pool): Use typed GC allocation.
      
      	* jcf-parse.c (java_parse_file): Likewise.
      	(process_zip_dir): Likewise.
      
      	* java-tree.h (MAYBE_CREATE_VAR_LANG_DECL_SPECIFIC): Likewise.
      	(MAYBE_CREATE_TYPE_TYPE_LANG_SPECIFIC): Likewise.
      
      	* expr.c (add_type_assertion): Likewise.
      
      	* decl.c (make_binding_level): Likewise.
      	(java_dup_lang_specific_decl): Likewise.
      
      	* constants.c (set_constant_entry): Likewise.
      	(cpool_for_class): Likewise.
      
      	* class.c (add_method_1): Likewise.
      	(java_treetreehash_new): Likewise.
      
      	* java-tree.h (struct lang_type): Add variable_size GTY option.
      	(struct lang_decl): Likewise.
      
      	* jch.h (struct cpool_entry): Likewise.
      
      	* java-tree.h (java_treetreehash_create): Remove parameter ggc.
      
      	* except.c (prepare_eh_table_type): Update
      	java_treetreehash_create call.
      
      	* class.c (add_method_1): Update java_treetreehash_create call.
      	(java_treetreehash_create): Remove parameter gc.  Use
      	htab_create_ggc.
      
      gcc/lto:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* lto.c (lto_read_in_decl_state): Use typed GC allocation.
      	(lto_file_read): Likewise.
      	(new_partition): Likewise.
      	(read_cgraph_and_symbols): Likewise.
      
      gcc/objc:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* objc-act.h (ALLOC_OBJC_TYPE_LANG_SPECIFIC): Use typed GC
      	allocation.
      
      	* objc-act.c (objc_volatilize_decl): Likewise.
      	(objc_build_string_object): Likewise.
      	(hash_init): Likewise.
      	(hash_enter): Likewise.
      	(hash_add_attr): Likewise.
      	(add_class): Likewise.
      	(start_class): Likewise.
      
      gcc/objcp:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* objcp-decl.h (ALLOC_OBJC_TYPE_LANG_SPECIFIC): Use typed GC
      	allocation.
      
      gcc:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
      
      	* doc/gty.texi (GTY Options): Document typed GC allocation and
      	variable_size GTY option.
      
      	* ggc-internal.h: New.
      
      	* ggc.h: Update copyright year.
      	(digit_string): Move to stringpool.c.
      	(ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
      	(gt_pch_save_stringpool, gt_pch_fixup_stringpool)
      	(gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
      	(init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
      	(ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
      	(ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
      	(ggc_force_collect, ggc_get_size, ggc_statistics)
      	(ggc_print_common_statistics): Move to ggc-internal.h.
      	(digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
      	(ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
      	(GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
      	(ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
      	(ggc_min_heapsize_heuristic, ggc_alloc_zone)
      	(ggc_alloc_zone_pass_stat): Remove.
      	(ggc_internal_alloc_stat, ggc_internal_alloc)
      	(ggc_internal_cleared_alloc_stat): New.
      	(GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
      	(ggc_internal_vec_alloc_stat)
      	(ggc_internal_cleared_vec_alloc_stat)
      	(ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
      	(ggc_alloc_atomic_stat, ggc_alloc_atomic)
      	(ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
      	(ggc_cleared_alloc_ptr_array_two_args): New.
      	(htab_create_ggc, splay_tree_new_ggc): Redefine.
      	(ggc_splay_alloc): Change the type of the first argument to
      	enum gt_types_enum.
      	(ggc_alloc_string): Make macro.
      	(ggc_alloc_string_stat): New.
      	(ggc_strdup): Redefine.
      	(rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
      	(ggc_alloc_rtvec_sized): New.
      	(ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
      	(ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
      	(ggc_internal_cleared_alloc_zone_stat)
      	(ggc_internal_zone_alloc_stat)
      	(ggc_internal_zone_cleared_alloc_stat)
      	(ggc_internal_zone_vec_alloc_stat)
      	(ggc_alloc_zone_rtx_def_stat)
      	(ggc_alloc_zone_tree_node_stat)
      	(ggc_alloc_zone_cleared_tree_node_stat)
      	(ggc_alloc_cleared_gimple_statement_d_stat): New.
      
      	* ggc-common.c: Include ggc-internal.h.
      	(ggc_internal_cleared_alloc_stat): Rename from
      	ggc_alloc_cleared_stat.
      	(ggc_realloc_stat): Use ggc_internal_alloc_stat.
      	(ggc_calloc): Remove.
      	(ggc_cleared_alloc_htab_ignore_args): New.
      	(ggc_cleared_alloc_ptr_array_two_args): New.
      	(ggc_splay_alloc): Add obj_type parameter.
      	(init_ggc_heuristics): Formatting fixes.
      
      	* ggc-none.c: Update copyright year.
      	(ggc_alloc_stat): Rename to ggc_alloc_stat.
      	(ggc_alloc_cleared_stat): Rename to
      	ggc_internal_cleared_alloc_stat.
      	(struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
      
      	* ggc-page.c: Update copyright year.  Include ggc-internal.h.
      	Remove references to ggc_alloc in comments.
      	(ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
      	(ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
      	(new_ggc_zone, destroy_ggc_zone): Remove.
      	(struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
      
      	* ggc-zone.c: Include ggc-internal.h.  Remove references to
      	ggc_alloc in comments.
      	(ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
      	(ggc_internal_alloc_zone_pass_stat): New.
      	(ggc_internal_cleared_alloc_zone_stat): New.
      	(ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
      	(ggc_alloc_stat): Rename ggc_internal_alloc_stat.
      	(new_ggc_zone, destroy_ggc_zone): Remove.
      
      	* stringpool.c: Update copyright year.  Include ggc-internal.h
      	(digit_vector): Make static.
      	(digit_string): Moved from ggc.h.
      	(stringpool_ggc_alloc): Use ggc_alloc_atomic.
      	(ggc_alloc_string): Rename to ggc_alloc_string_stat.
      
      	* Makefile.in (GGC_INTERNAL_H): New.
      	(ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
      	$(GGC_INTERNAL_H) to dependencies.
      
      	* gentype.c: Update copyright year.
      	(walk_type): Accept variable_size GTY option.
      	(USED_BY_TYPED_GC_P): New macro.
      	(write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
      	whitespace at the end of strings.
      	(get_type_specifier, variable_size_p): New functions.
      	(alloc_quantity, alloc_zone): New enums.
      	(write_typed_alloc_def): New function.
      	(write_typed_struct_alloc_def): Likewise.
      	(write_typed_typed_typedef_alloc_def): Likewise.
      	(write_typed_alloc_defns): Likewise.
      	(output_typename, write_splay_tree_allocator_def): Likewise.
      	(write_splay_tree_allocators): Likewise.
      	(main): Call write_typed_alloc_defns and
      	write_splay_tree_allocators.
      
      	* lto-streamer.h (lto_file_decl_data_ptr): New.
      
      	* passes.c (order): Define using cgraph_node_ptr.
      
      	* strinpool.c (struct string_pool_data): Declare nested_ptr using
      	ht_identifier_ptr.
      
      	* gimple.h (union gimple_statement_d): Likewise.
      
      	* rtl.h (struct rtx_def): Likewise.
      	(struct rtvec_def): Likewise.
      
      	* tree.h (union tree_node): Likewise.
      
      	* tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
      
      	* cfgloop.c (record_loop_exits): Use htab_create_ggc.
      
      	* tree-scalar-evolution.c (scev_initialize): Likewise.
      
      	* alias.c (record_alias_subset): Update splay_tree_new_ggc call.
      
      	* dwarf2asm.c (dw2_force_const_mem): Likewise.
      
      	* omp-low.c (lower_omp_critical): Likewise.
      
      	* bitmap.h (struct bitmap_head_def): Update comment to not
      	reference ggc_alloc.
      
      	* config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
      
      	* ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
      
      	* ipa-prop.c (duplicate_ggc_array): Rename to
      	duplicate_ipa_jump_func_array.  Use typed GC allocation.
      	(ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
      
      	* gimple.c (gimple_alloc_stat): Use
      	ggc_alloc_cleared_gimple_statement_d_stat.
      
      	* varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
      
      	* tree.c (make_node_stat): Use
      	ggc_alloc_zone_cleared_tree_node_stat.
      	(make_tree_vec_stat): Likewise.
      	(build_vl_exp_stat): Likewise.
      	(copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
      	(make_tree_binfo_stat): Likewise.
      	(tree_cons_stat): Likewise.
      
      	* rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
      	(shallow_copy_rtx_stat): Likewise.
      	(make_node_stat): Likewise.
      
      	* lto-symtab.c: Fix comment.
      
      	* tree-cfg.c (create_bb): Update comment to not reference
      	ggc_alloc_cleared.
      	* tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is
      	value.
      
      	* varpool.c (varpool_node): Use typed GC allocation.
      	(varpool_extra_name_alias): Likewise.
      
      	* varasm.c (emutls_decl): Likewise.
      	(get_unnamed_section): Likewise.
      	(get_noswitch_section): Likewise.
      	(get_section): Likewise.
      	(get_block_for_section): Likewise.
      	(build_constant_desc): Likewise.
      	(create_constant_pool): Likewise.
      	(force_const_mem): Likewise.
      
      	* tree.c (build_vl_exp_stat): Likewise.
      	(build_real): Likewise.
      	(build_string): Likewise.
      	(decl_debug_expr_insert): Likewise.
      	(decl_value_expr_insert): Likewise.
      	(type_hash_add): Likewise.
      	(build_omp_clause): Likewise.
      
      	* tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
      
      	* tree-ssa.c (init_tree_ssa): Likewise.
      
      	* tree-ssa-structalias.c (heapvar_insert): Likewise.
      
      	* tree-ssa-operands.c (ssa_operand_alloc): Likewise.
      
      	* tree-ssa-loop-niter.c (record_estimate): Likewise.
      
      	* tree-ssa-alias.c (get_ptr_info): Likewise.
      
      	* tree-scalar-evolution.c (new_scev_info_str): Likewise.
      
      	* tree-phinodes.c (allocate_phi_node): Likewise.
      
      	* tree-iterator.c (tsi_link_before): Likewise.
      	(tsi_link_after): Likewise.
      
      	* tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
      
      	* tree-dfa.c (create_var_ann): Likewise.
      
      	* tree-cfg.c (create_bb): Likewise.
      
      	* toplev.c (alloc_for_identifier_to_locale): Likewise.
      	(general_init): Likewise.
      
      	* stringpool.c (stringpool_ggc_alloc): Likewise.
      	(gt_pch_save_stringpool): Likewise.
      
      	* sese.c (if_region_set_false_region): Likewise.
      
      	* passes.c (do_per_function_toporder): Likewise.
      
      	* optabs.c (set_optab_libfunc): Likewise.
      	(set_conv_libfunc): Likewise.
      
      	* lto-symtab.c (lto_symtab_register_decl): Likewise.
      
      	* lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
      	(input_eh_region): Likewise.
      	(input_eh_lp): Likewise.
      	(make_new_block): Likewise.
      	(unpack_ts_real_cst_value_fields): Likewise.
      
      	* lto-section-in.c (lto_new_in_decl_state): Likewise.
      
      	* lto-cgraph.c (input_node_opt_summary): Likewise.
      
      	* loop-init.c (loop_optimizer_init): Likewise.
      
      	* lambda.h (lambda_vector_new): Likewise.
      
      	* lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
      
      	* ira.c (update_equiv_regs): Likewise.
      
      	* ipa.c (cgraph_node_set_new): Likewise.
      	(cgraph_node_set_add): Likewise.
      	(varpool_node_set_new): Likewise.
      	(varpool_node_set_add): Likewise.
      
      	* ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
      	(duplicate_ipa_jump_func_array): Likewise.
      	(ipa_read_node_info): Likewise.
      
      	* ipa-cp.c (ipcp_create_replace_map): Likewise.
      
      	* integrate.c (get_hard_reg_initial_val): Likewise.
      
      	* gimple.c (gimple_alloc_stat): Likewise.
      	(gimple_build_omp_for): Likewise.
      	(gimple_seq_alloc): Likewise.
      	(gimple_copy): Likewise.
      
      	* gimple-iterator.c (gsi_insert_before_without_update): Likewise.
      	(gsi_insert_after_without_update): Likewise.
      
      	* function.c (add_frame_space): Likewise.
      	(insert_temp_slot_address): Likewise.
      	(assign_stack_temp_for_type): Likewise.
      	(allocate_struct_function): Likewise.
      	(types_used_by_var_decl_insert): Likewise.
      
      	* except.c (init_eh_for_function): Likewise.
      	(gen_eh_region): Likewise.
      	(gen_eh_region_catch): Likewise.
      	(gen_eh_landing_pad): Likewise.
      	(add_call_site): Likewise.
      
      	* emit-rtl.c (get_mem_attrs): Likewise.
      	(get_reg_attrs): Likewise.
      	(start_sequence): Likewise.
      	(init_emit): Likewise.
      
      	* dwarf2out.c (new_cfi): Likewise.
      	(queue_reg_save): Likewise.
      	(dwarf2out_frame_init): Likewise.
      	(new_loc_descr): Likewise.
      	(find_AT_string): Likewise.
      	(new_die): Likewise.
      	(add_var_loc_to_decl): Likewise.
      	(clone_die): Likewise.
      	(clone_as_declaration): Likewise.
      	(break_out_comdat_types): Likewise.
      	(new_loc_list): Likewise.
      	(loc_descriptor): Likewise.
      	(add_loc_descr_to_each): Likewise.
      	(add_const_value_attribute): Likewise.
      	(tree_add_const_value_attribute): Likewise.
      	(add_comp_dir_attribute): Likewise.
      	(add_name_and_src_coords_attributes): Likewise.
      	(lookup_filename): Likewise.
      	(store_vcall_insn): Likewise.
      	(dwarf2out_init): Likewise.
      
      	* dbxout.c (dbxout_init): Likewise.
      
      	* config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
      
      	* config/sparc/sparc.c (sparc_init_machine_status): Likewise.
      
      	* config/score/score7.c (score7_output_external): Likewise.
      
      	* config/score/score3.c (score3_output_external): Likewise.
      
      	* config/s390/s390.c (s390_init_machine_status): Likewise.
      
      	* config/rs6000/rs6000.c (builtin_function_type): Likewise.
      	(rs6000_init_machine_status): Likewise.
      	(output_toc): Likewise.
      
      	* config/pa/pa.c (pa_init_machine_status): Likewise.
      	(get_deferred_plabel): Likewise.
      
      	* config/moxie/moxie.c (moxie_init_machine_status): Likewise.
      
      	* config/mmix/mmix.c (mmix_init_machine_status): Likewise.
      
      	* config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
      
      	* config/mep/mep.c (mep_init_machine_status): Likewise.
      	(mep_note_pragma_flag): Likewise.
      
      	* config/m32c/m32c.c (m32c_init_machine_status): Likewise.
      
      	* config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
      
      	* config/ia64/ia64.c (ia64_init_machine_status): Likewise.
      
      	* config/i386/winnt.c (i386_pe_record_external_function): Likewise.
      	(i386_pe_maybe_record_exported_symbol): Likewise.
      
      	* config/i386/i386.c (get_dllimport_decl): Likewise.
      	(ix86_init_machine_status): Likewise.
      	(assign_386_stack_local): Likewise.
      
      	* config/frv/frv.c (frv_init_machine_status): Likewise.
      
      	* config/darwin.c (machopic_indirection_name): Likewise.
      
      	* config/cris/cris.c (cris_init_machine_status): Likewise.
      
      	* config/bfin/bfin.c (bfin_init_machine_status): Likewise.
      
      	* config/avr/avr.c (avr_init_machine_status): Likewise.
      
      	* config/arm/arm.c (arm_init_machine_status): Likewise.
      
      	* config/alpha/alpha.c (alpha_init_machine_status): Likewise.
      	(alpha_need_linkage): Likewise.
      	(alpha_use_linkage): Likewise.
      
      	* cgraph.c (cgraph_allocate_node): Likewise.
      	(cgraph_create_edge_1): Likewise.
      	(cgraph_create_indirect_edge): Likewise.
      	(cgraph_add_asm_node): Likewise.
      
      	* cfgrtl.c (init_rtl_bb_info): Likewise.
      
      	* cfgloop.c (alloc_loop): Likewise.
      	(rescan_loop_exit): Likewise.
      
      	* cfg.c (init_flow): Likewise.
      	(alloc_block): Likewise.
      	(unchecked_make_edge): Likewise.
      
      	* c-parser.c (c_parse_init): Likewise.
      	(c_parse_file): Likewise.
      
      	* c-decl.c (bind): Likewise.
      	(record_inline_static): Likewise.
      	(push_scope): Likewise.
      	(make_label): Likewise.
      	(lookup_label_for_goto): Likewise.
      	(finish_struct): Likewise.
      	(finish_enum): Likewise.
      	(c_push_function_context): Likewise.
      
      	* bitmap.c (bitmap_element_allocate): Likewise.
      	(bitmap_gc_alloc_stat): Likewise.
      
      	* alias.c (record_alias_subset): Likewise.
      	(init_alias_analysis): Likewise.
      
      include:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* splay-tree.h: Update copyright years.
      	(splay_tree_s): Document fields.
      	(splay_tree_new_typed_alloc): New.
      
      	* hashtab.h: Update copyright years.
      	(htab_create_typed_alloc): New.
      
      libcpp:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* include/symtab.h (ht_identifier_ptr): New.
      
      libiberty:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* splay-tree.c: Update copyright years.
      	(splay_tree_new_typed_alloc): New.
      	(splay_tree_new_with_allocator): Use it.
      
      	* hashtab.c: Update copyright years.
      	(htab_create_typed_alloc): New.
      	(htab_create_alloc): Use it.
      
      	* functions.texi: Regenerate.
      
      From-SVN: r160425
      Laurynas Biveinis committed
  27. 29 May, 2010 1 commit
    • tree-vrp.c (debug_value_range, [...]): Annotate with DEBUG_FUNCTION. · 24e47c76
      	* tree-vrp.c (debug_value_range, debug_all_value_ranges,
      	debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
      	* tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
      	debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
      	debug_names_replaced_by, debug_update_ssa): Likewise.	
      	* sbitmap.c (debug_sbitmap): Likewise.
      	* genrecog.c (debug_decision, debug_decision_list): Likewise.
      	* tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
      	debug_tree_chain): Likewise.
      	* tree-loop-distribution.c (debug_rdg_partitions): Likewise.
      	* cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
      	* optabs.c  (debug_optab_libfuncs): Likewise.
      	(verify_loop_closed_ssa): Likewise.
      	* value-prof.c (verify_histograms): Likewise.
      	* reload.c (debug_reload_to_stream, debug_reload): Likewise.
      	* bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
      	* cfghooks.c (verify_flow_info): Likewise.
      	* fold-const.c (debug_fold_checksum): Likewise.
      	* omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
      	* cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
      	Likewise.
      	* omega.c (debug_omega_problem): Likewise.
      	* cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
      	* tree-ssa-ccp.c (debug_lattice_value): Likewise.
      	* dominance.c (verify_dominators, debug_dominance_info,
      	debug_dominance_tree): Likewise.
      	* df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
      	* df_regno_debug, df_ref_debug,
      	debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
      	debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
      	* tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
      	* sel-sched.c (debug_state): Likewise.
      	* tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for): Likewise.
      	* cfganal.c (print_edge_list, verify_edge_list): Likewise.
      	* dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
      	* tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
      	* gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq): Likewise.
      	* c-pretty-print.c (debug_c_tree): Likewise.
      	* sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
      	debug_av_set, debug_lv_set, debug_ilist, debug_blist, debug_insn_vector,
      	debug_hard_reg_set, debug_mem_addr_value): Likewise.
      	* ebitmap.c (debug_ebitmap): Likewise.
      	* function.c (debug_find_var_in_block_tree): Likewise.
      	* print-rtl.c (debug_rtx): Likewise.
      	(debug_rtx_count): Likewise.
      	(debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
      	* stor-layout.c (debug_rli): Likewise.
      	* ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
      	* tree-data-ref.c (debug_data_references, debug_data_dependence_relations,
      	debug_data_reference, debug_data_dependence_relation, debug_rdg_vertex,
      	debug_rdg_component, debug_rdg): Likewise.
      	* tree-affine.c (debug_aff): Likewise.
      	* tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats): Likewise.
      	* except.c (debug_eh_tree, verify_eh_tree): Likewise.
      	* emit-rtl.c (verify_rtl_sharing): Likewise.
      	* tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
      	debug_value_expressions): Likewise.
      	* tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
      	* sese.c (debug_rename_map, debug_ivtype_map): Likewise.
      	* print-tree.c (debug_tree, debug_vec_tree): Likewise.
      	* cfglayout.c (verify_insn_chain): Likewise.
      	* graphite-clast-to-gimple.c (debug_clast_name_indexes,
      	debug_clast_stmt, debug_generated_program): Likewise.
      	* ggc-page.c (debug_print_page_list): Likewise.
      	* tree-ssa-ter.c (debug_ter): Likewise.
      	* graphite-dependences.c (debug_pddr): Likewise.
      	* sched-deps.c (debug_ds): Likewise.
      	* tree-ssa.c (verify_ssa): Likewise.
      	* graphite-poly.c (debug_scattering_function, debug_iteration_domain,
      	debug_scattering_functions, debug_iteration_domains, debug_pdr,
      	debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context, debug_scop,
      	debug_cloog, debug_scop_params, debug_lst): Likewise.
      	* tree-inline.c (debug_find_tree): Likewise.
      	* graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
      	debug_ppl_powerset_matrix): Likewise.
      	* var-tracking.c (debug_dv): Likewise.
      	* system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
      	* cfgloop.c (verify_loop_structure): Likewise.
      	* plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
      	* c-common.c (verify_sequence_points): Likewise.
      	* sched-rgn.c (debug_regions, debug_region, debug_candidate,
      	debug_candidates, debug_rgn_dependencies): Likewise.
      	* tree-ssa-structalias.c (debug_constraint, debug_constraints,
      	* debug_constraint_graph, debug_solution_for_var,
      	debug_sa_points_to_info): Likewise.
      	* sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
      	Likewie.
      	* tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
      	debug_loops, debug_loop, debug_loop_num): Likewise.
      	* passes.c (debug_pass): Likewise.
      	(dump_properties): Likewise; add cfglayout property.
      	(debug_properties): Likewise.
      	* tree-ssa-reassoc.c (debug_ops_vector): Likewise.
      	* varpool.c (debug_varpool): Likewise.
      	* regcprop.c (debug_value_data): Likewise.
      	* tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
      	debug_immediate_uses_for): Likewise.
      
      From-SVN: r160036
      Jan Hubicka committed
  28. 24 Feb, 2010 1 commit
  29. 25 Nov, 2009 1 commit
    • Remove trailing white spaces. · b8698a0f
      2009-11-25  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* alias.c: Remove trailing white spaces.
      	* alloc-pool.c: Likewise.
      	* alloc-pool.h: Likewise.
      	* attribs.c: Likewise.
      	* auto-inc-dec.c: Likewise.
      	* basic-block.h: Likewise.
      	* bb-reorder.c: Likewise.
      	* bt-load.c: Likewise.
      	* builtins.c: Likewise.
      	* builtins.def: Likewise.
      	* c-common.c: Likewise.
      	* c-common.h: Likewise.
      	* c-cppbuiltin.c: Likewise.
      	* c-decl.c: Likewise.
      	* c-format.c: Likewise.
      	* c-lex.c: Likewise.
      	* c-omp.c: Likewise.
      	* c-opts.c: Likewise.
      	* c-parser.c: Likewise.
      	* c-pretty-print.c: Likewise.
      	* c-tree.h: Likewise.
      	* c-typeck.c: Likewise.
      	* caller-save.c: Likewise.
      	* calls.c: Likewise.
      	* cfg.c: Likewise.
      	* cfganal.c: Likewise.
      	* cfgexpand.c: Likewise.
      	* cfghooks.c: Likewise.
      	* cfghooks.h: Likewise.
      	* cfglayout.c: Likewise.
      	* cfgloop.c: Likewise.
      	* cfgloop.h: Likewise.
      	* cfgloopmanip.c: Likewise.
      	* cfgrtl.c: Likewise.
      	* cgraph.c: Likewise.
      	* cgraph.h: Likewise.
      	* cgraphbuild.c: Likewise.
      	* cgraphunit.c: Likewise.
      	* cif-code.def: Likewise.
      	* collect2.c: Likewise.
      	* combine.c: Likewise.
      	* convert.c: Likewise.
      	* coverage.c: Likewise.
      	* crtstuff.c: Likewise.
      	* cse.c: Likewise.
      	* cselib.c: Likewise.
      	* dbgcnt.c: Likewise.
      	* dbgcnt.def: Likewise.
      	* dbgcnt.h: Likewise.
      	* dbxout.c: Likewise.
      	* dce.c: Likewise.
      	* ddg.c: Likewise.
      	* ddg.h: Likewise.
      	* defaults.h: Likewise.
      	* df-byte-scan.c: Likewise.
      	* df-core.c: Likewise.
      	* df-problems.c: Likewise.
      	* df-scan.c: Likewise.
      	* df.h: Likewise.
      	* dfp.c: Likewise.
      	* diagnostic.c: Likewise.
      	* diagnostic.h: Likewise.
      	* dominance.c: Likewise.
      	* domwalk.c: Likewise.
      	* double-int.c: Likewise.
      	* double-int.h: Likewise.
      	* dse.c: Likewise.
      	* dwarf2asm.c: Likewise.
      	* dwarf2asm.h: Likewise.
      	* dwarf2out.c: Likewise.
      	* ebitmap.c: Likewise.
      	* ebitmap.h: Likewise.
      	* emit-rtl.c: Likewise.
      	* et-forest.c: Likewise.
      	* except.c: Likewise.
      	* except.h: Likewise.
      	* expmed.c: Likewise.
      	* expr.c: Likewise.
      	* expr.h: Likewise.
      	* final.c: Likewise.
      	* flags.h: Likewise.
      	* fold-const.c: Likewise.
      	* function.c: Likewise.
      	* function.h: Likewise.
      	* fwprop.c: Likewise.
      	* gcc.c: Likewise.
      	* gcov-dump.c: Likewise.
      	* gcov-io.c: Likewise.
      	* gcov-io.h: Likewise.
      	* gcov.c: Likewise.
      	* gcse.c: Likewise.
      	* genattr.c: Likewise.
      	* genattrtab.c: Likewise.
      	* genautomata.c: Likewise.
      	* genchecksum.c: Likewise.
      	* genconfig.c: Likewise.
      	* genflags.c: Likewise.
      	* gengtype-parse.c: Likewise.
      	* gengtype.c: Likewise.
      	* gengtype.h: Likewise.
      	* genmddeps.c: Likewise.
      	* genmodes.c: Likewise.
      	* genopinit.c: Likewise.
      	* genpreds.c: Likewise.
      	* gensupport.c: Likewise.
      	* ggc-common.c: Likewise.
      	* ggc-page.c: Likewise.
      	* ggc-zone.c: Likewise.
      	* ggc.h: Likewise.
      	* gimple-iterator.c: Likewise.
      	* gimple-low.c: Likewise.
      	* gimple-pretty-print.c: Likewise.
      	* gimple.c: Likewise.
      	* gimple.def: Likewise.
      	* gimple.h: Likewise.
      	* gimplify.c: Likewise.
      	* graphds.c: Likewise.
      	* graphite-clast-to-gimple.c: Likewise.
      	* gthr-nks.h: Likewise.
      	* gthr-posix.c: Likewise.
      	* gthr-posix.h: Likewise.
      	* gthr-posix95.h: Likewise.
      	* gthr-single.h: Likewise.
      	* gthr-tpf.h: Likewise.
      	* gthr-vxworks.h: Likewise.
      	* gthr.h: Likewise.
      	* haifa-sched.c: Likewise.
      	* hard-reg-set.h: Likewise.
      	* hooks.c: Likewise.
      	* hooks.h: Likewise.
      	* hosthooks.h: Likewise.
      	* hwint.h: Likewise.
      	* ifcvt.c: Likewise.
      	* incpath.c: Likewise.
      	* init-regs.c: Likewise.
      	* integrate.c: Likewise.
      	* ipa-cp.c: Likewise.
      	* ipa-inline.c: Likewise.
      	* ipa-prop.c: Likewise.
      	* ipa-pure-const.c: Likewise.
      	* ipa-reference.c: Likewise.
      	* ipa-struct-reorg.c: Likewise.
      	* ipa-struct-reorg.h: Likewise.
      	* ipa-type-escape.c: Likewise.
      	* ipa-type-escape.h: Likewise.
      	* ipa-utils.c: Likewise.
      	* ipa-utils.h: Likewise.
      	* ipa.c: Likewise.
      	* ira-build.c: Likewise.
      	* ira-color.c: Likewise.
      	* ira-conflicts.c: Likewise.
      	* ira-costs.c: Likewise.
      	* ira-emit.c: Likewise.
      	* ira-int.h: Likewise.
      	* ira-lives.c: Likewise.
      	* ira.c: Likewise.
      	* jump.c: Likewise.
      	* lambda-code.c: Likewise.
      	* lambda-mat.c: Likewise.
      	* lambda-trans.c: Likewise.
      	* lambda.h: Likewise.
      	* langhooks.c: Likewise.
      	* lcm.c: Likewise.
      	* libgcov.c: Likewise.
      	* lists.c: Likewise.
      	* loop-doloop.c: Likewise.
      	* loop-init.c: Likewise.
      	* loop-invariant.c: Likewise.
      	* loop-iv.c: Likewise.
      	* loop-unroll.c: Likewise.
      	* lower-subreg.c: Likewise.
      	* lto-cgraph.c: Likewise.
      	* lto-compress.c: Likewise.
      	* lto-opts.c: Likewise.
      	* lto-section-in.c: Likewise.
      	* lto-section-out.c: Likewise.
      	* lto-streamer-in.c: Likewise.
      	* lto-streamer-out.c: Likewise.
      	* lto-streamer.c: Likewise.
      	* lto-streamer.h: Likewise.
      	* lto-symtab.c: Likewise.
      	* lto-wpa-fixup.c: Likewise.
      	* matrix-reorg.c: Likewise.
      	* mcf.c: Likewise.
      	* mode-switching.c: Likewise.
      	* modulo-sched.c: Likewise.
      	* omega.c: Likewise.
      	* omega.h: Likewise.
      	* omp-low.c: Likewise.
      	* optabs.c: Likewise.
      	* optabs.h: Likewise.
      	* opts-common.c: Likewise.
      	* opts.c: Likewise.
      	* params.def: Likewise.
      	* params.h: Likewise.
      	* passes.c: Likewise.
      	* plugin.c: Likewise.
      	* postreload-gcse.c: Likewise.
      	* postreload.c: Likewise.
      	* predict.c: Likewise.
      	* predict.def: Likewise.
      	* pretty-print.c: Likewise.
      	* pretty-print.h: Likewise.
      	* print-rtl.c: Likewise.
      	* print-tree.c: Likewise.
      	* profile.c: Likewise.
      	* read-rtl.c: Likewise.
      	* real.c: Likewise.
      	* recog.c: Likewise.
      	* reg-stack.c: Likewise.
      	* regcprop.c: Likewise.
      	* reginfo.c: Likewise.
      	* regmove.c: Likewise.
      	* regrename.c: Likewise.
      	* regs.h: Likewise.
      	* regstat.c: Likewise.
      	* reload.c: Likewise.
      	* reload1.c: Likewise.
      	* resource.c: Likewise.
      	* rtl.c: Likewise.
      	* rtl.def: Likewise.
      	* rtl.h: Likewise.
      	* rtlanal.c: Likewise.
      	* sbitmap.c: Likewise.
      	* sched-deps.c: Likewise.
      	* sched-ebb.c: Likewise.
      	* sched-int.h: Likewise.
      	* sched-rgn.c: Likewise.
      	* sched-vis.c: Likewise.
      	* sdbout.c: Likewise.
      	* sel-sched-dump.c: Likewise.
      	* sel-sched-dump.h: Likewise.
      	* sel-sched-ir.c: Likewise.
      	* sel-sched-ir.h: Likewise.
      	* sel-sched.c: Likewise.
      	* sel-sched.h: Likewise.
      	* sese.c: Likewise.
      	* sese.h: Likewise.
      	* simplify-rtx.c: Likewise.
      	* stack-ptr-mod.c: Likewise.
      	* stmt.c: Likewise.
      	* stor-layout.c: Likewise.
      	* store-motion.c: Likewise.
      	* stringpool.c: Likewise.
      	* stub-objc.c: Likewise.
      	* sync-builtins.def: Likewise.
      	* target-def.h: Likewise.
      	* target.h: Likewise.
      	* targhooks.c: Likewise.
      	* targhooks.h: Likewise.
      	* timevar.c: Likewise.
      	* tlink.c: Likewise.
      	* toplev.c: Likewise.
      	* toplev.h: Likewise.
      	* tracer.c: Likewise.
      	* tree-affine.c: Likewise.
      	* tree-affine.h: Likewise.
      	* tree-browser.def: Likewise.
      	* tree-call-cdce.c: Likewise.
      	* tree-cfg.c: Likewise.
      	* tree-cfgcleanup.c: Likewise.
      	* tree-chrec.c: Likewise.
      	* tree-chrec.h: Likewise.
      	* tree-complex.c: Likewise.
      	* tree-data-ref.c: Likewise.
      	* tree-data-ref.h: Likewise.
      	* tree-dfa.c: Likewise.
      	* tree-dump.c: Likewise.
      	* tree-dump.h: Likewise.
      	* tree-eh.c: Likewise.
      	* tree-flow-inline.h: Likewise.
      	* tree-flow.h: Likewise.
      	* tree-if-conv.c: Likewise.
      	* tree-inline.c: Likewise.
      	* tree-into-ssa.c: Likewise.
      	* tree-loop-distribution.c: Likewise.
      	* tree-loop-linear.c: Likewise.
      	* tree-mudflap.c: Likewise.
      	* tree-nested.c: Likewise.
      	* tree-nomudflap.c: Likewise.
      	* tree-nrv.c: Likewise.
      	* tree-object-size.c: Likewise.
      	* tree-optimize.c: Likewise.
      	* tree-outof-ssa.c: Likewise.
      	* tree-parloops.c: Likewise.
      	* tree-pass.h: Likewise.
      	* tree-phinodes.c: Likewise.
      	* tree-predcom.c: Likewise.
      	* tree-pretty-print.c: Likewise.
      	* tree-profile.c: Likewise.
      	* tree-scalar-evolution.c: Likewise.
      	* tree-ssa-address.c: Likewise.
      	* tree-ssa-alias.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-live.h: 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-unswitch.c: Likewise.
      	* tree-ssa-loop.c: Likewise.
      	* tree-ssa-math-opts.c: Likewise.
      	* tree-ssa-operands.c: Likewise.
      	* tree-ssa-operands.h: 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-sccvn.c: Likewise.
      	* tree-ssa-sink.c: Likewise.
      	* tree-ssa-structalias.c: Likewise.
      	* tree-ssa-ter.c: Likewise.
      	* tree-ssa-threadedge.c: Likewise.
      	* tree-ssa-threadupdate.c: Likewise.
      	* tree-ssa-uncprop.c: Likewise.
      	* tree-ssa.c: Likewise.
      	* tree-ssanames.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-vectorizer.h: Likewise.
      	* tree-vrp.c: Likewise.
      	* tree.c: Likewise.
      	* tree.def: Likewise.
      	* tree.h: Likewise.
      	* treestruct.def: Likewise.
      	* unwind-compat.c: Likewise.
      	* unwind-dw2-fde-glibc.c: Likewise.
      	* unwind-dw2.c: Likewise.
      	* value-prof.c: Likewise.
      	* value-prof.h: Likewise.
      	* var-tracking.c: Likewise.
      	* varasm.c: Likewise.
      	* varpool.c: Likewise.
      	* vec.c: Likewise.
      	* vec.h: Likewise.
      	* vmsdbgout.c: Likewise.
      	* web.c: Likewise.
      	* xcoffout.c: Likewise.
      
      From-SVN: r154645
      H.J. Lu committed
  30. 10 Sep, 2009 1 commit
  31. 20 Feb, 2009 1 commit
  32. 16 Jul, 2008 1 commit
    • cfg.c (dump_reg_info): Avoid C++ keywords. · d858f359
      	* cfg.c (dump_reg_info): Avoid C++ keywords.
      	* dwarf2asm.c (dw2_force_const_mem,
      	dw2_asm_output_encoded_addr_rtx): Likewise.
      	* except.c (gen_eh_region, add_action_record, output_ttype):
      	Likewise.
      	* expmed.c (expand_shift): Likewise.
      	* global.c (find_reg): Likewise.
      	* graph.c (draw_edge): Likewise.
      	* local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
      	* optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
      	widen_clz, widen_bswap, expand_parity, expand_unop,
      	emit_cmp_and_jump_insn_1): Likewise.
      	* postreload.c (reload_cse_simplify_operands): Likewise.
      	* ra.h (add_neighbor): Likewise.
      	* reg-stack.c (remove_regno_note, change_stack): Likewise.
      	* regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
      	record_reg_classes, copy_cost, record_address_regs,
      	invalid_mode_change_p): Likewise.
      	* regrename.c (regrename_optimize, scan_rtx_reg,
      	dump_def_use_chain, find_oldest_value_reg,
      	replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
      
      From-SVN: r137893
      Kaveh R. Ghazi committed
  33. 16 May, 2008 1 commit
    • [multiple changes] · 9defb1fe
      2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
      
      	* tree-flow.h (init_empty_tree_cfg_for_function): Declare.
      	* tree-cfg.c (init_empty_tree_cfg_for_function): Define.
      	(init_empty_tree_cfg): Call it.
      
      2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
      
      	* cfg.c (init_flow): Add argument THE_FUN.  Use it
      	instead of cfun.  Update all users.
      
      From-SVN: r135418
      Diego Novillo committed
  34. 05 Mar, 2008 1 commit
    • cfg.c: Include tree-flow.h. · ea7e6d5a
              * cfg.c: Include tree-flow.h.
              (remove_edge_raw): Call redirect_edge_var_map_clear.
              (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
              * tree-flow-inline.h (redirect_edge_var_map_def): New.
              (redirect_edge_var_map_result): New.
              * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
              PENDING_STMT use with redirect_edge_var_map_*.
              * tree-ssa.c (edge_var_maps): New definition.
              (redirect_edge_var_map_add): New.
              (redirect_edge_var_map_clear): New.
              (redirect_edge_var_map_dup): New.
              (redirect_edge_var_map_vector): New.
              (redirect_edge_var_map_destroy): New.
              (ssa_redirect_edge): Replace PENDING_STMT use with
              redirect_edge_var_map_*.
              (flush_pending_stmts): Same.
              (delete_tree_ssa): Destroy edge var map.
              * tree-flow.h (struct _edge_var_map): New.
              Define edge_var_map vector type.
              Declare redirect_edge_var_map_* prototypes.
              * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
              * tree-cfg.c (reinstall_phi_args): Replace
              PENDING_STMT use with redirect_edge_var_map_*.
      
      From-SVN: r132903
      Aldy Hernandez committed
  35. 16 Jan, 2008 1 commit
    • re PR rtl-optimization/31396 (Inline code performance much worse than out-of-line) · a03c6d64
      	PR rtl-optimization/31396
      	* regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
      	* cfg.c (dump_reg_info): Print it.
      	* regs.h (struct reg_info_t): add freq_calls_crossed.
      	(REG_FREQ_CALLS_CROSSED): New macro.
      	* global.c (global_alloc): Compute freq_calls_crossed for allocno.
      	(find_reg): Update call of CALLER_SAVE_PROFITABLE.
      	* regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
      	regmove_optimize): Update call crossed frequencies.
      	* local-alloc.c (struct qty): Add freq_calls_crossed.
      	(alloc_qty): Copute freq_calls_crossed.
      	(update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
      	(find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
      	* ra.h (struct allocno): Add freq_calls_crossed.
      
      From-SVN: r131576
      Jan Hubicka committed
  36. 14 Nov, 2007 1 commit
  37. 05 Nov, 2007 1 commit
  38. 06 Sep, 2007 1 commit