1. 31 Mar, 2005 1 commit
  2. 29 Mar, 2005 1 commit
  3. 09 Mar, 2005 1 commit
  4. 25 Feb, 2005 1 commit
  5. 17 Feb, 2005 1 commit
    • bitmap.h (BITMAP_XMALLOC, [...]): Remove. · 8bdbfff5
      	* bitmap.h (BITMAP_XMALLOC, BITMAP_XFREE): Remove.
      	* bb-reorder.c (duplicate_computed_gotos): Use BITMAP_ALLOC and
      	BITMAP_FREE.
      	* bt-load.c (btr_def_live_range, combine_btr_defs,
      	migrate_btr_def, migrate_btr_defs): Likewise.
      	* cfgcleanup.c (thread_jump): Likewise.
      	* cfgloop.c (get_loop_body_in_bfs_order): Likewise.
      	* df.c (df_insn_table_realloc, df_bitmaps_alloc, df_bitmaps_free,
      	df_alloc, df_free, df_du_chain_create, df_bb_rd_local_compute,
      	df_rd_local_compute, df_reg_info_compute): Likewise.
      	* dominance.c (init_dom_info, free_dom_info): Likewise.
      	* flow.c (init_propagate_block_info,
      	free_propagate_block_info): Likewise.
      	* gcse.c (alloc_gcse_mem, free_gcse_mem): Likewise.
      	* global.c (allocate_bb_info, free_bb_info, calculate_reg_pav,
      	modify_reg_pav): Likewise.
      	* loop-invariant.c (find_defs, find_invariant_insn,
      	find_invariants, free_inv_motion_data): Likewise.
      	* predict.c (tree_predict_by_opcode,
      	estimate_bb_frequencies): Likewise.
      	* stmt.c (expand_case): Likewise.
      	* tree-cfg.c (tree_duplicate_sese_region): Likewise.
      	* tree-dfa.c (mark_new_vars_to_rename): Likewise.
      	* tree-if-conv.c (get_loop_body_in_if_conv_order): Likewise.
      	* tree-into-ssa.c (insert_phi_nodes_for, def_blocks_free,
      	get_def_blocks_for, mark_def_site_blocks, rewrite_into_ssa,
      	rewrite_ssa_into_ssa): Likewise.
      	* tree-optimize.c (tree_rest_of_compilation): Likewise.
      	* tree-outof-ssa.c (new_temp_expr_table, free_temp_expr_table,
      	analyze_edges_for_bb, perform_edge_inserts): Likewise.
      	* tree-scalar-evolution.c (scev_initialize, scev_finalize): Likewise.
      	* tree-sra.c (tree_sra): Likewise.
      	* tree-ssa-alias.c (init_alias_info, delete_alias_info): Likewise.
      	* tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
      	* tree-ssa-dce.c (tree_dce_init, tree_dce_done): Likewise.
      	* tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
      	* tree-ssa-dse.c (tree_ssa_dse): Likewise.
      	* tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_var):
      	Likewise.
      	* tree-ssa-live.c (new_tree_live_info, delete_tree_live_info,
      	calculate_live_on_entry, calculate_live_on_exit,
      	build_tree_conflict_graph): Likewise.
      	* tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_init, record_use,
      	record_important_candidates, set_use_iv_cost, find_depends,
      	determine_use_iv_costs, iv_ca_new, iv_ca_free, free_loop_data,
      	tree_ssa_iv_optimize_finalize): Likewise.
      	* tree-ssa-loop-manip.c (add_exit_phis_var, get_loops_exit,
      	find_uses_to_rename_use, rewrite_into_loop_closed_ssa,
      	tree_duplicate_loop_to_header_edge): Likewise.
      	* tree-ssa-pre.c (init_pre, fini_pre): Likewise.
      	* tree-ssa.c (verify_flow_insensitive_alias_info,
      	verify_name_tags, verify_ssa, init_tree_ssa,
      	delete_tree_ssa): Likewise.
      	* tree-ssanames.c (marked_ssa_names, init_ssanames,
      	fini_ssanames): Likewise.
      	* tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Likewise.
      
      From-SVN: r95172
      Nathan Sidwell committed
  6. 27 Jan, 2005 1 commit
    • re PR c++/14329 ([4.1 only] badly formatted warnings for SRA replacements used uninitialized) · dad2a933
              PR tree-opt/14329
              * tree.h (struct tree_decl): Add debug_expr_is_from.
              (DECL_DEBUG_EXPR_IS_FROM): New.
              (DECL_DEBUG_EXPR): Rename from DECL_DEBUG_ALIAS_OF.
              * dwarf2out.c (dwarf2out_var_location): Update to match.
              * tree-outof-ssa.c (create_temp): Likewise.
              * var-tracking.c (track_expr_p): Likewise.
              * tree-sra.c (instantiate_element): Set DECL_DEBUG_EXPR.
              * c-objc-common.c (c_tree_printer) <'D'>: Handle DECL_DEBUG_EXPR.
              * toplev.c (default_tree_printer): Likewise.
      
      From-SVN: r94317
      Richard Henderson committed
  7. 04 Jan, 2005 1 commit
  8. 01 Jan, 2005 1 commit
  9. 22 Dec, 2004 1 commit
  10. 10 Dec, 2004 1 commit
    • tree-into-ssa.c (REWRITE_THIS_STMT): Define. · 7d5f9cc6
      	* tree-into-ssa.c (REWRITE_THIS_STMT): Define.
      	(mark_def_sites): Clear REWRITE_THIS_STMT for statements that
      	don't need any operands rewritten.
      	(rewrite_stmt): Ignore statements that don't need to be
      	rewritten.
      	(rewrite_operand): Validate that an existing SSA_NAME is
      	identical to the current reaching definition of the operand.
      
      
      	* tree-dfa.c (mark_call_clobbered_vars_to_rename): New function.
      	* tree-vectorizer.c (vectorizable_load): Call it.
      	* tree-flow.h (mark_call_clobbered_vars_to_rename): Declare.
      	* tree-sra.c (mark_all_v_defs): Also mark VUSEs for renaming.
      
      From-SVN: r92010
      Diego Novillo committed
  11. 24 Nov, 2004 1 commit
  12. 22 Nov, 2004 2 commits
    • re PR tree-optimization/18572 (Bus error compiling makegpr.adb on Mac OS X 10.3) · 478e2092
      2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
      
              PR tree-opt/18572
              * tree-sra.c (scalarize_init): Unshare the rhs before gimplifying
              it.
      
      From-SVN: r91024
      Andrew Pinski committed
    • bitmap.h (struct bitmap_obstack): New obstack type. · 7932a3db
      	* bitmap.h (struct bitmap_obstack): New obstack type.
      	(struct bitmap_head_def): Replace using_obstack with obstack
      	pointer.
      	(bitmap_default_obstack): New.
      	(bitmap_initialize): Make inline, does not do allocation.
      	(bitmap_release_memory): Remove.
      	(bitmap_obstack_initialize, bitmap_obstack_release): Declare.
      	(bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
      	bitmap_obstack_free, bitmap_malloc_free): Declare.
      	(BITMAP_OBSTACK_ALLOC, BITMAP_GGC_ALLOC, BITMAP_XMALLOC): Adjust.
      	(BITMAP_FREE): Replace with ...
      	(BITMAP_OBSTACK_FREE): ... this.
      	(BITMAP_XFREE): Adjust.
      	(BITMAP_INIT_ONCE): Remove.
      	* bitmap.c (bitmap_obstack, bitmap_obstack_init, bitmap_free: Remove.
      	(bitmap_default_obstack): New.
      	(bitmap_elem_to_freelist): Adjust.
      	(bitmap_element_allocate): Adjust. Break initialization into ...
      	(bitmap_obstack_initialize): ... here.
      	(bitmap_release_memory): Replace with ...
      	(bitmap_obstack_release): ... this.
      	(bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
      	bitmap_obstack_free, bitmap_malloc_free): New.
      	(bitmap_ior_and_compl, bitmap_ior_and_compl_into): Use
      	bitmap_initialize.
      	(bitmap_initialize): Move to bitmap.h.
      	* gengtype.c (open_base_files): Add obstack.h to ifiles.
      	* Makefile.in (BASIC_BLOCK_H, REGS_H): Add obstack.h.
      	* basic-block.h (INIT_REG_SET): Allocate from reg_obstack.
      	(INITIALIZE_REG_SET): Remove.
      	(FREE_REG_SET): Use BITMAP_OBSTACK_FREE.
      	(INIT_ONCE_REG_SET, MAX_REGNO_REG_SET): Remove.
      	(flow_obstack): Do not declare.
      	(reg_obstack): Declare.
      	* regs.h: Include obstack.h.
      	* tree-optimize.c (tree_rest_of_compilation): Initialize and
      	release bitmap obstack here.
      	* bb-reorder.c: #include regs, not basic-block.
      	(fix_crossing_conditional_branches): Allocate regsets from
      	reg_obstack.
      	* bt-load.c: Do not inlude bitmap.h, sbitmap.h, basic-block.h or
      	obstack.h.
      	* caller-save.c: Include regs.h earlier.
      	* cfg.c: Do not include basic-block.h or obstack.h.
      	(reg_obstack): Define.
      	* cfganal.c: Include obstack.h
      	* cfgcleanyp.c: Do not include basic-block.h. Include regs.h
      	earlier.
      	* cfglayout.c: Do not include obstack.h.
      	(flow_obstack): Remove declaration.
      	(cfg_layout_duplicate_bb): Use reg_obstack.
      	* cfgloop.c, cfgloopanal.c, cfgloopmanip.c: Include obstack.h.
      	* cfgrtl.c (rtl_split_block): Use reg_obstack.
      	(force_nonfallthru_and_redirect, rtl_split_edge): Likewise.
      	(safe_insert_insn_on_edge): Use OBSTACK_ALLOC_REG_SET, adjust.
      	(cfg_layout_split_edge): Use reg_obstack.
      	* cse.c: Include regs.h earlier.
      	* ddg.c: Do not include basic-block.h.
      	* dominance.c: Inlude obstack.h.
      	* flow.c (update_life_info): Use OBSTACK_ALLOC_REG_SET, adjust.
      	(calculate_global_regs_live): Likewise.
      	(allocate_bb_life_data): Use reg_obstack.
      	(init_propagate_block_info): Use OBSTACK_ALLOC_REGSET.
      	* global.c: Do not include basic-block.h.
      	(build_insn_chain): Use OBSTACK_ALLOC_REG_SET, adjust.
      	* graph.c: Include obstack.h.
      	* haifa-sched.c: Do not include basic-block.h.
      	* ifcvt.c: Use OBSTACK_ALLOC_REG_SET, adjust.
      	* local-alloc.c: Do not include basic-block.h.
      	* loop-init.c, loop-invariant.c: Include obstack.h.
      	* loop-iv.c: Likewise.
      	(simplify_using_initial_values): Use OBSTACK_ALLOC_REG_SET,
      	adjust.
      	* loop-unroll.c, loop-unswitch.c: Inlude obstack.h.
      	* modulo-sched.c: Do not include basic-block.h.
      	* passes.c (rest_of_handle_final): Do not call
      	regset_release_memory.
      	* ra-debug.c: Include regs.h earlier. Do not include
      	basic-block.h.
      	* recog.c (peephole2_optimize): Use OBSTACK_ALLOC_REG_SET, adjust.
      	* regclass.c (init_reg_sets): Do not call INIT_ONCE_REG_SET.
      	(allocate_reg_info): Do not call MAX_REGNO_REG_SET.
      	(regset_release_memory): Remove.
      	* resource.c: Do not include basic-block.h.
      	* rtlanal.c: Do not include basic-block.h.
      	* sbitmap.c: Include obstack.h.
      	* sched-deps.c: Do not include basic-block.h.
      	(reg_pending_sets_head, reg_pending_clobbers_head,
      	reg_pending_uses_head): Remove.
      	(init_deps_global): Use OBSTACK_ALLOC_REG_SET.
      	* sched-ebb.c: Do not include basic-block.h.
      	* sched-rgn.c: Likewise.
      	* tree-if-conv.c (get_loop_body_in_if_conv_order): Use
      	BITMAP_XFREE.
      	* tree-outof-ssa.c (perform_edge_inserts): Use BITMAP_XFREE.
      	* tree-sra.c (decide_instantiations): Adjust bitmap
      	initialization.
      	* tree-ssa-dce.c: Include obstack.h.
      	* tree-ssa-pre.c (grand_bitmap_obstack): Make a bitmap_obstack.
      	(value_insert_into_set_bitmap): Remove useless bitmap_clear.
      	(bitmap_set_new): Likewise.
      	(init_pre): Initialize bitmap obstack.
      	(fini_pre): Release bitmap obstack.
      	* tree-ssanames.c (ssa_names_to_rewrite): Make static.
      	(marked_for_rewrite_p): ssa_names_to_rewrite is never NULL.
      	(mark_for_rewrite, unmark_for_rewrite): Likewise.
      	(marked_ssa_names): Likewise.
      	(init_ssanames): Use BITMAP_XMALLOC.
      	(fini_ssanames): Use BITMAP_XFREE.
      	* web.c: Include obstack.h
      
      From-SVN: r91009
      Nathan Sidwell committed
  13. 16 Nov, 2004 1 commit
    • tree-cfg.c (bsi_commit_edge_inserts): Remove an argument. · 8e731e4e
      	* tree-cfg.c (bsi_commit_edge_inserts): Remove an argument.
      	(tree_flow_call_edges_add): Update the call to
      	bsi_commit_edge_inserts.
      	* lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
      	* profile.c (branch_prob): Likewise.
      	* tree-mudflap.c (mf_decl_cache_locals): Likewise.
      	* tree-sra.c (scalarize_function): Likewise.
      	* tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
      	* tree-ssa-pre.c (fini_pre): Likewise.
      	* tree-flow.h: Update the prototype for
      	bsi_commit_edge_inserts.
      
      From-SVN: r90704
      Kazu Hirata committed
  14. 13 Nov, 2004 1 commit
  15. 04 Nov, 2004 1 commit
    • bitmap.c (bitmap_print): Make bitno unsigned. · 3cd8c58a
      	* bitmap.c (bitmap_print): Make bitno unsigned.
      	* bt-load.c (clear_btr_from_live_range,
      	btr_def_live_range): Likewise.
      	* caller-save.c (save_call_clobbered_regs): Likewise.
      	* cfganal.c (compute_dominance_frontiers_1): Likewise.
      	* cfgcleanup.c (thread_jump): Likewise.
      	* cfgrtl.c (safe_insert_insn_on_edge): Likewise.
      	* conflict.c (conflict_graph_compute): Likewise.
      	* ddg.c (add_deps_for_use): Likewise.
      	* df.c (df_refs_update): Likewise.
      	* except.c (remove_eh_handler): Likewise.
      	* flow.c (verify_local_live_at_start, update_life_info,
      	initialize_uninitialized_subregs, propagate_one_insn,
      	free_propagate_block_info, propagate_block, find_use_as_address,
      	reg_set_to_hard_reg_set): Likewise.
      	* gcse.c (clear_modify_mem_tables): Likewise.
      	* global.c (global_conflicts, build_insn_chain): Likewise.
      	* ifcvt.c (dead_or_predicable): Likewise.
      	* local-alloc.c (update_equiv_regs): Likewise.
      	* loop.c (load_mems): Likewise.
      	* ra-build.c (livethrough_conflicts_bb, conflicts_between_webs):
      	Likewise.
      	* ra-rewrite.c (reloads_to_loads, rewrite_program2, actual_spill):
      	Likewise.
      	* reload1.c (order_regs_for_reload, finish_spills): Likewise.
      	* sched-deps.c (sched_analyze_insn, free_deps): Likewise.
      	* sched-rgn.c (propagate_deps
      	* tree-cfg.c (tree_purge_all_dead_eh_edges): Likewise.
      	* tree-dfa.c (dump_dfa_stats
      	tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
      	insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags):
      	Likewise.
      	* tree-outof-ssa.c (coalesce_ssa_name, coalesce_vars,
      	free_temp_expr_table, find_replaceable_exprs): Likewise.
      	* tree-sra.c (scan_function, scalarize_parms): Likewise.
      	* tree-ssa-alias.c (init_alias_info,
      	compute_points_to_and_addr_escape,
      	compute_flow_sensitive_aliasing, maybe_create_global_var): Likewise.
      	* tree-ssa-dce.c (mark_control_dependent_edges_necessary): Likewise.
      	* tree-ssa-live.c (new_tree_live_info, live_worklist,
      	calculate_live_on_entry, calculate_live_on_exit, compare_pairs,
      	sort_coalesce_list, build_tree_conflict_graph, dump_live_info
      	tree-ssa-loop-manip.c (add_exit_phis_var): Likewise.
      	tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
      	add_call_read_ops): Likewise.
      	* tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Likewise.
      	* tree-ssa-live.h (num_var_partitions): Return unsigned.
      
      From-SVN: r90053
      Nathan Sidwell committed
  16. 29 Oct, 2004 1 commit
    • bitmap.h (bitmap_empty_p): New. · eb59b8de
      	* bitmap.h (bitmap_empty_p): New.
      	(bitmap_and, bitmap_and_into, bitmap_and_compl,
      	bitmap_and_compl_into, bitmap_ior, bitmap_ior_into,
      	bitmap_ior_compl, bitmap_xor, bitmap_xor_into): New bitmap
      	operation macros.
      	(bitmap_ior_and_compl): Rename to ...
      	(bitmap_ior_and_compl_into): ... here.
      	* bitmap.c (bitmap_equal_p): Use bitmap_xor.
      	(bitmap_ior_and_compl): Rename to ...
      	(bitmap_ior_and_compl_into): ... here. Adjust. Return changed
      	flag.
      	(bitmap_union_of_diff): Use renamed bitmap functions.
      	* basic-block.h (AND_REG_SET, AND_COMPL_REG_SET, IOR_REG_SET,
      	XOR_REG_SET, IOR_AND_COMPL_REG_SET): Likewise.
      	* cfgrtl.c (safe_insert_insn_on_edge): Likewise.
      	* df.c (df_bb_rd_local_compute)
      	* flow.c (calculate_global_regs_live,
      	init_propagate_block_info): Likewise.
      	* ifcvt.c (find_if_case_1, find_if_case_2,
      	dead_or_predicable): Likewise.
      	* ra-build.c (union_web_part_roots, livethrough_conflicts_bb,
      	reset_conflicts, conflicts_between_webs): Likewise.
      	* ra-rewrite.c (reloads_to_loads, rewrite_program2,
      	detect_web_parts_to_rebuild): Likewise.
      	* sched-ebb.c (compute_jump_reg_dependencies): Likewise.
      	* tree-int-ssa.c (insert_phi_nodes_for, rewrite_into_ssa): Likewise.
      	* tree-sra.c (decide_instantiations): Likewise.
      	* tree-ssa-alias.c (create_name_tags,
      	merge_pointed_to_info): Likewise.
      	* tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
      	* tree-ssa-loop-im.c (move_computations): Likewise.
      	* tree-ssa-operands.c (get_call_expr_operands): Likewise.
      	* tree-ssa-pre.c (fini_pre): Likewise.
      	* tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
      	* tree-ssanames.c (any_marked_for_rewrite_p): Likewise.
      	* tree-vectorizer.c (vectorize_loops): Likewise.
      
      From-SVN: r89827
      Nathan Sidwell committed
  17. 27 Oct, 2004 1 commit
    • params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): New. · 61b58001
      	* params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): New.
      	(PARAM_SRA_FIELD_STRUCTURE_RATIO): Likewise.
      	* params.h (SRA_MAX_STRUCTURE_SIZE): New.
      	(SRA_FIELD_STRUCTURE_RATIO): Likewise.
      	* tree-sra.c: Include "params.h".
      	(decide_block_copy): Use new parameters.
      	* doc/invoke.texi (Optimize Options): Document new SRA pass
      	parameters sra-max-structure-size and sra-field-structure-ratio.
      
      [testsuite]
      	* gcc.dg/tree-ssa/sra-1.c: Pass --param sra-max-structure-size.
      
      From-SVN: r89711
      Ben Elliston committed
  18. 21 Oct, 2004 1 commit
  19. 28 Sep, 2004 1 commit
    • backport: basic-block.h: Include vec.h, errors.h. · 628f6a4e
      2004-09-24  Ben Elliston  <bje@au.ibm.com>
      	    Steven Bosscher  <stevenb@suse.de>
      	    Andrew Pinski  <pinskia@physics.uc.edu>
      
      	Merge from edge-vector-branch:
      	* basic-block.h: Include vec.h, errors.h. Instantiate a VEC(edge).
      	(struct edge_def): Remove pred_next, succ_next members.
      	(struct basic_block_def): Remove pred, succ members.  Add preds
      	and succs members of type VEC(edge).
      	(FALLTHRU_EDGE): Redefine using EDGE_SUCC.
      	(BRANCH_EDGE): Likewise.
      	(EDGE_CRITICAL_P): Redefine using EDGE_COUNT.
      	(EDGE_COUNT, EDGE_I, EDGE_PRED, EDGE_SUCC): New.
      	(edge_iterator): New.
      	(ei_start, ei_last, ei_end_p, ei_one_before_end_p): New.
      	(ei_next, ei_prev, ei_edge, ei_safe_edge): Likewise.
      	(FOR_EACH_EDGE): New.
      	* bb-reorder.c (find_traces): Use FOR_EACH_EDGE and EDGE_* macros
      	where applicable.
      	(rotate_loop): Likewise.
      	(find_traces_1_route): Likewise.
      	(bb_to_key): Likewise.
      	(connect_traces): Likewise.
      	(copy_bb_p): Likewise.
      	(find_rarely_executed_basic_blocks_and_crossing_edges): Likewise.
      	(add_labels_and_missing_jumps): Likewise.
      	(fix_up_fall_thru_edges): Likewise.
      	(find_jump_block): Likewise.
      	(fix_crossing_conditional_branches): Likewise.
      	(fix_crossing_unconditional_branches): Likewise.
      	(add_reg_crossing_jump_notes): Likewise.
      	* bt-load.c (augment_live_range): Likewise.
      	* cfg.c (clear_edges): Likewise.
      	(unchecked_make_edge): Likewise.
      	(cached_make_edge): Likewise.
      	(make_single_succ_edge): Likewise.
      	(remove_edge): Likewise.
      	(redirect_edge_succ_nodup): Likewise.
      	(check_bb_profile): Likewise.
      	(dump_flow_info): Likewise.
      	(alloc_aux_for_edges): Likewise.
      	(clear_aux_for_edges): Likewise.
      	(dump_cfg_bb_info): Likewise.
      	* cfganal.c (forwarder_block_p): Likewise.
      	(can_fallthru): Likewise.
      	(could_fall_through): Likewise.
      	(mark_dfs_back_edges): Likewise.
      	(set_edge_can_fallthru_flag): Likewise.
      	(find_unreachable_blocks): Likewise.
      	(create_edge_list): Likewise.
      	(verify_edge_list): Likewise.
      	(add_noreturn_fake_exit_edges): Likewise.
      	(connect_infinite_loops_to_exit): Likewise.
      	(flow_reverse_top_sort_order_compute): Likewise.
      	(flow_depth_first_order_compute): Likewise.
      	(flow_preorder_transversal_compute): Likewise.
      	(flow_dfs_compute_reverse_execute): Likewise.
      	(dfs_enumerate_from): Likewise.
      	(compute_dominance_frontiers_1): Likewise.
      	* cfgbuild.c (make_edges): Likewise.
      	(compute_outgoing_frequencies): Likewise.
      	(find_many_sub_basic_blocks): Likewise.
      	(find_sub_basic_blocks): Likewise.
      	* cfgcleanup.c (try_simplify_condjump): Likewise.
      	(thread_jump): Likewise.
      	(try_forward_edges): Likewise.
      	(merge_blocks_move): Likewise.
      	(outgoing_edges_match): Likewise.
      	(try_crossjump_to_edge): Likewise.
      	(try_crossjump_bb): Likewise.
      	(try_optimize_cfg): Likewise.
      	(merge_seq_blocks): Likewise.
      	* cfgexpand.c (expand_gimple_tailcall): Likewise.
      	(expand_gimple_basic_block): Likewise.
      	(construct_init_block): Likewise.
      	(construct_exit_block): Likewise.
      	* cfghooks.c (verify_flow_info): Likewise.
      	(dump_bb): Likewise.
      	(delete_basic_block): Likewise.
      	(split_edge): Likewise.
      	(merge_blocks): Likewise.
      	(make_forwarder_block): Likewise.
      	(tidy_fallthru_edges): Likewise.
      	(can_duplicate_block_p): Likewise.
      	(duplicate_block): Likewise.
      	* cfglayout.c (fixup_reorder_chain): Likewise.
      	(fixup_fallthru_exit_predecessor): Likewise.
      	(can_copy_bbs_p): Likewise.
      	(copy_bbs): Likewise.
      	* cfgloop.c (flow_loops_cfg_dump): Likewise.
      	(flow_loop_entry_edges_find): Likewise.
      	(flow_loop_exit_edges_find): Likewise.
      	(flow_loop_nodes_find): Likewise.
      	(mark_single_exit_loops): Likewise.
      	(flow_loop_pre_header_scan): Likewise.
      	(flow_loop_pre_header_find): Likewise.
      	(update_latch_info): Likewise.
      	(canonicalize_loop_headers): Likewise.
      	(flow_loops_find): Likewise.
      	(get_loop_body_in_bfs_order): Likewise.
      	(get_loop_exit_edges): Likewise.
      	(num_loop_branches): Likewise.
      	(verify_loop_structure): Likewise.
      	(loop_latch_edge): Likewise.
      	(loop_preheader_edge): Likewise.
      	* cfgloopanal.c (mark_irreducible_loops): Likewise.
      	(expected_loop_iterations): Likewise.
      	* cfgloopmanip.c (remove_bbs): Likewise.
      	(fix_bb_placement): Likewise.
      	(fix_irreducible_loops): Likewise.
      	(remove_path): Likewise.
      	(scale_bbs_frequencies): Likewise.
      	(loopify): Likewise.
      	(unloop): Likewise.
      	(fix_loop_placement): Likewise.
      	(loop_delete_branch_edge): Likewise.
      	(duplicate_loop_to_header_edge): Likewise.
      	(mfb_keep_just): Likewise.
      	(create_preheader): Likewise.
      	(force_single_succ_latches): Likewise.
      	(loop_split_edge_with): Likewise.
      	(create_loop_notes): Likewise.
      	* cfgrtl.c (rtl_split_block): Likewise.
      	(rtl_merge_blocks): Likewise.
      	(rtl_can_merge_blocks): Likewise.
      	(try_redirect_by_replacing_jump): Likewise.
      	(force_nonfallthru_and_redirect): Likewise.
      	(rtl_tidy_fallthru_edge): Likewise.
      	(commit_one_edge_insertion): Likewise.
      	(commit_edge_insertions): Likewise.
      	(commit_edge_insertions_watch_calls): Likewise.
      	(rtl_verify_flow_info_1): Likewise.
      	(rtl_verify_flow_info): Likewise.
      	(purge_dead_edges): Likewise.
      	(cfg_layout_redirect_edge_and_branch): Likewise.
      	(cfg_layout_can_merge_blocks_p): Likewise.
      	(rtl_flow_call_edges_add): Likewise.
      	* cse.c (cse_cc_succs): Likewise.
      	* df.c (hybrid_search): Likewise.
      	* dominance.c (calc_dfs_tree_nonrec): Likewise.
      	(calc_dfs_tree): Likewise.
      	(calc_idoms): Likewise.
      	(recount_dominator): Likewise.
      	* domwalk.c (walk_dominator_tree): Likewise.
      	* except.c (emit_to_new_bb_before): Likewise.
      	(connect_post_landing_pads): Likewise.
      	(sjlj_emit_function_enter): Likewise.
      	(sjlj_emit_function_exit): Likewise.
      	(finish_eh_generation): Likewise.
      	* final.c (compute_alignments): Likewise.
      	* flow.c (calculate_global_regs_live): Likewise.
      	(initialize_uninitialized_subregs): Likewise.
      	(init_propagate_block_info): Likewise.
      	* function.c (thread_prologue_and_epilogue_insns): Likewise.
      	* gcse.c (find_implicit_sets): Likewise.
      	(bypass_block): Likewise.
      	(bypass_conditional_jumps): Likewise.
      	(compute_pre_data): Likewise.
      	(insert_insn_end_bb): Likewise.
      	(insert_store): Likewise.
      	(remove_reachable_equiv_notes): Likewise.
      	* global.c (global_conflicts): Likewise.
      	(calculate_reg_pav): Likewise.
      	* graph.c (print_rtl_graph_with_bb): Likewise.
      	* ifcvt.c (mark_loop_exit_edges): Likewise.
      	(merge_if_block): Likewise.
      	(find_if_header): Likewise.
      	(block_jumps_and_fallthru_p): Likewise.
      	(find_if_block): Likewise.
      	(find_cond_trap): Likewise.
      	(block_has_only_trap): Likewise.
      	(find_if_case1): Likewise.
      	(find_if_case_2): Likewise.
      	* lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
      	(perfect_nestify): Likewise.
      	* lcm.c (compute_antinout_edge): Likewise.
      	(compute_laterin): Likewise.
      	(compute_available): Likewise.
      	(compute_nearerout): Likewise.
      	* loop-doloop.c (doloop_modify): Likewise.
      	* loop-init.c (loop_optimizer_init): Likewise.
      	* loop-invariant.c (find_exits): Likewise.
      	* loop-iv.c (simplify_using_initial_values): Likewise.
      	(check_simple_exit): Likewise.
      	(find_simple_exit): Likewise.
      	* loop-unroll.c (peel_loop_completely): Likewise.
      	(unroll_loop_constant_iterations): Likewise.
      	(unroll_loop_runtime_iterations): Likewise.
      	* loop-unswitch.c (may_unswitch_on): Likewise.
      	(unswitch_loop): Likewise.
      	* modulo-sched.c (generate_prolog_epilog): Likewise.
      	(sms_schedule): Likewise.
      	* postreload-gcse.c (eliminate_partially_redundant_load):
      	Likewise.
      	* predict.c (can_predict_insn_p): Likewise.
      	(set_even_probabilities): Likewise.
      	(combine_predictions_for_bb): Likewise.
      	(predict_loops): Likewise.
      	(estimate_probability): Likewise.
      	(tree_predict_by_opcode): Likewise.
      	(tree_estimate_probability): Likewise.
      	(last_basic_block_p): Likewise.
      	(propagate_freq): Likewise.
      	(estimate_loops_at_level): Likewise.
      	(estimate_bb_frequencies): Likewise.
      	* profile.c (instrument_edges): Likewise.
      	(get_exec_counts): Likewise.
      	(compute_branch_probabilities): Likewise.
      	(branch_prob): Likewise.
      	* ra-build.c (live_in): Likewise.
      	* ra-rewrite.c (rewrite_program2): Likewise.
      	* ra.c (reg_alloc): Likewise.
      	* reg-stack.c (reg_to_stack): Likewise.
      	(convert_regs_entry): Likewise.
      	(compensate_edge): Likewise.
      	(convert_regs_1): Likewise,
      	(convert_regs_2): Likewise.
      	(convert_regs): Likewise.
      	* regrename.c (copyprop_hardreg_forward): Likewise.
      	* reload1.c (fixup_abnormal_edges): Likewise.
      	* sbitmap.c (sbitmap_intersection_of_succs): Likewise.
      	(sbitmap_insersection_of_preds): Likewise.
      	(sbitmap_union_of_succs): Likewise.
      	(sbitmap_union_of_preds): Likewise.
      	* sched-ebb.c (compute_jump_reg_dependencies): Likewise.
      	(fix_basic_block_boundaries): Likewise.
      	(sched_ebbs): Likewise.
      	* sched-rgn.c (build_control_flow): Likewise.
      	(find_rgns): Likewise.
      	* tracer.c (find_best_successor): Likewise.
      	(find_best_predecessor): Likewise.
      	(tail_duplicate): Likewise.
      	* tree-cfg.c (make_edges): Likewise.
      	(make_ctrl_stmt_edges): Likewise.
      	(make_goto_expr_edges): Likewise.
      	(tree_can_merge_blocks_p): Likewise.
      	(tree_merge_blocks): Likewise.
      	(cfg_remove_useless_stmts_bb): Likewise.
      	(remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
      	(tree_block_forwards_to): Likewise.
      	(cleanup_control_expr_graph): Likewise.
      	(find_taken_edge): Likewise.
      	(dump_cfg_stats): Likewise.
      	(tree_cfg2vcg): Likewise.
      	(disband_implicit_edges): Likewise.
      	(tree_find_edge_insert_loc): Likewise.
      	(bsi_commit_edge_inserts): Likewise.
      	(tree_split_edge): Likewise.
      	(tree_verify_flow_info): Likewise.
      	(tree_make_forwarder_block): Likewise.
      	(tree_forwarder_block_p): Likewise.
      	(thread_jumps): Likewise.
      	(tree_try_redirect_by_replacing_jump): Likewise.
      	(tree_split_block): Likewise.
      	(add_phi_args_after_copy_bb): Likewise.
      	(rewrite_to_new_ssa_names_bb): Likewise.
      	(dump_function_to_file): Likewise.
      	(print_pred_bbs): Likewise.
      	(print_loop): Likewise.
      	(tree_flow_call_edges_add): Likewise.
      	(split_critical_edges): Likewise.
      	(execute_warn_function_return): Likewise.
      	(extract_true_false_edges_from_block): Likewise.
      	* tree-if-conv.c (tree_if_conversion): Likewise.
      	(if_convertable_bb_p): Likewise.
      	(find_phi_replacement_condition): Likewise.
      	(combine_blocks): Likewise.
      	* tree-into-ssa.c (compute_global_livein): Likewise.
      	(ssa_mark_phi_uses): Likewise.
      	(ssa_rewrite_initialize_block): Likewise.
      	(rewrite_add_phi_arguments): Likewise.
      	(ssa_rewrite_phi_arguments): Likewise.
      	(insert_phi_nodes_for): Likewise.
      	(rewrite_into_ssa): Likewise.
      	(rewrite_ssa_into_ssa): Likewise.
      	* tree-mudflap.c (mf_build_check_statement_for): Likewise.
      	* tree-outof-ssa.c (coalesce_abnormal_edges): Likewise.
      	(rewrite_trees): Likewise.
      	* tree-pretty-print.c (dump_bb_header): Likewise.
      	(dump_implicit_edges): Likewise.
      	* tree-sra.c (insert_edge_copies): Likewise.
      	(find_obviously_necessary_stmts): Likewise.
      	(remove_data_stmt): Likewise.
      	* tree-ssa-dom.c (thread_across_edge): Likewise.
      	(dom_opt_finalize_block): Likewise.
      	(single_incoming_edge_ignoring_loop_edges): Likewise.
      	(record_equivalences_from_incoming_edges): Likewise.
      	(cprop_into_successor_phis): Likewise.
      	* tree-ssa-live.c (live_worklist): Likewise.
      	(calculate_live_on_entry): Likewise.
      	(calculate_live_on_exit): Likewise.
      	* tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
      	(copy_loop_headers): Likewise.
      	* tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
      	(fill_always_executed_in): Likewise.
      	* tree-ssa-loop-ivcanon.c (create_canonical_iv): Likewise.
      	* tree-ssa-loop-ivopts.c (find_interesting_uses): Likewise.
      	(compute_phi_arg_on_exit): Likewise.
      	* tree-ssa-loop-manip.c (add_exit_phis_edge): Likewise.
      	(get_loops_exit): Likewise.
      	(split_loop_exit_edge): Likewise.
      	(ip_normal_pos): Likewise.
      	* tree-ssa-loop-niter.c (simplify_using_initial_conditions):
      	Likewise.
      	* tree-ssa-phiopt.c (candidate_bb_for_phi_optimization): Likewise.
      	(replace_phi_with_stmt): Likewise.
      	(value_replacement): Likewise.
      	* tree-ssa-pre.c (compute_antic_aux): Likewise.
      	(insert_aux): Likewise.
      	(init_pre): Likewise.
      	* tree-ssa-propagate.c (simulate_stmt): Likewise.
      	(simulate_block): Likewise.
      	(ssa_prop_init): Likewise.
      	* tree-ssa-threadupdate.c (thread_block): Likewise.
      	(create_block_for_threading): Likewise.
      	(remove_last_stmt_and_useless_edges): Likewise.
      	* tree-ssa.c (verify_phi_args): Likewise.
      	(verify_ssa): Likewise.
      	* tree_tailcall.c (independent_of_stmt_p): Likewise.
      	(find_tail_calls): Likewise.
      	(eliminate_tail_call): Likewise.
      	(tree_optimize_tail_calls_1): Likewise.
      	* tree-vectorizer.c (vect_transform_loop): Likewise.
      	* var-tracking.c (prologue_stack_adjust): Likewise.
      	(vt_stack_adjustments): Likewise.
      	(vt_find_locations): Likewise.
      	* config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
      	* config/i386/i386.c (ix86_pad_returns): Likewise.
      	* config/ia64/ia64.c (ia64_expand_prologue): Likewise.
      	* config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
      
      Co-Authored-By: Andrew Pinski <pinskia@physics.uc.edu>
      Co-Authored-By: Steven Bosscher <stevenb@suse.de>
      
      From-SVN: r88222
      Ben Elliston committed
  20. 26 Sep, 2004 1 commit
    • bitmap.h (EXECUTE_IF_SET_IN_BITMAP, [...]): Changed to iterator style. · 87c476a2
      	* bitmap.h (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_COMPL_IN_BITMAP,
      	EXECUTE_IF_AND_IN_BITMAP): Changed to iterator style.
      	(bitmap_iterator): New type.
      	(bmp_iter_common_next_1, bmp_iter_single_next_1, bmp_iter_single_init,
      	bmp_iter_end_p, bmp_iter_single_next, bmp_iter_and_not_next_1,
      	bmp_iter_and_not_init, bmp_iter_and_not_next, bmp_iter_and_next_1,
      	bmp_iter_and_init, bmp_iter_and_next): New functions.
      	* basic-block.h (EXECUTE_IF_SET_IN_REG_SET,
      	EXECUTE_IF_AND_COMPL_IN_REG_SET, EXECUTE_IF_AND_IN_REG_SET): Changed to
      	use iterator-style EXECUTE_IF_IN_BITMAP macros.
      	* bitmap.c (bitmap_print): Ditto.
      	* bt-load.c (clear_btr_from_live_range, add_btr_to_live_range,
      	btr_def_live_range): Ditto.
      	* cfganal.c (compute_dominance_frontiers_1) Ditto.
      	* cgraphunit.c (convert_UIDs_in_bitmap, cgraph_characterize_statics):
      	Ditto.
      	* ddg.c (build_inter_loop_deps): Ditto.
      	* df.c (FOR_EACH_BB_IN_BITMAP, df_bb_reg_info_compute, df_refs_update):
      	Ditto.
      	* except.c (remove_eh_handler): Ditto.
      	* flow.c (reg_set_to_hard_reg_set): Ditto.
      	* gcse.c (clear_modify_mem_tables): Ditto.
      	* global.c (build_insn_chain): Ditto.
      	* ifcvt.c (dead_or_predicable): Ditto.
      	* loop-invariant.c (get_inv_cost, set_move_mark, move_invariant_reg):
      	Ditto.
      	* ra-build.c (livethrough_conflicts_bb, conflicts_between_webs): Ditto.
      	* ra-rewrite.c (reloads_to_loads, rewrite_program2,
      	detect_web_parts_to_rebuild, delete_useless_defs, actual_spill): Ditto.
      	* tree-cfg.c (allocate_ssa_names, tree_duplicate_sese_region,
      	tree_purge_all_dead_eh_edges): Ditto.
      	* tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
      	insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags,
      	rewrite_ssa_into_ssa): Ditto.
      	* tree-outof-ssa.c (find_replaceable_exprs): Ditto.
      	* tree-sra.c (scan_function, decide_instantiations, scalarize_parms):
      	Ditto.
      	* tree-ssa-alias.c (init_alias_info, compute_points_to_and_addr_escape,
      	compute_flow_sensitive_aliasing, maybe_create_global_var,
      	dump_points_to_info_for): Ditto.
      	* tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Ditto.
      	* tree-ssa-dse.c (dse_finalize_block): Ditto.
      	* tree-ssa-live.c (live_worklist, calculate_live_on_entry,
      	calculate_live_on_exit, build_tree_conflict_graph, dump_live_info):
      	Ditto.
      	* tree-ssa-loop-ivopts.c (find_induction_variables,
      	find_interesting_uses, add_old_ivs_candidates, alloc_use_cost_map,
      	determine_use_iv_costs, determine_set_costs, find_best_candidate,
      	set_cost_up_to, create_new_ivs, remove_unused_ivs, free_loop_data):
      	Ditto.
      	* tree-ssa-loop-manip.c (add_exit_phis_var, add_exit_phis): Ditto.
      	* tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
      	add_call_read_ops): Ditto.
      	* tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Ditto.
      
      From-SVN: r88145
      Zdenek Dvorak committed
  21. 23 Sep, 2004 1 commit
    • tree-flow.h (find_new_referenced_vars): Add prototype. · b28b1600
      2004-09-23  Diego Novillo  <dnovillo@redhat.com>
      	    Jakub Jelinek  <jakub@redhat.com>
      
      	* tree-flow.h (find_new_referenced_vars): Add prototype.
      	* tree-sra.c (find_new_referenced_vars_1, find_new_referenced_vars):
      	Move to...
      	* tree-dfa.c (find_new_referenced_vars_1, find_new_referenced_vars):
      	... here.
      	(mark_new_vars_to_rename): Walk through all operands.
      	* tree-ssa-ccp.c (convert_to_gimple_builtin): New function.
      	(execute_fold_all_builtins): Use it.
      	(pass_fold_builtins): Add TODO_rename_vars to todo_flags_finish.
      
      	* gcc.c-torture/execute/builtins/strcpy-2.c: New test.
      	* gcc.c-torture/execute/builtins/strcpy-2-lib.c: New.
      
      From-SVN: r87983
      Jakub Jelinek committed
  22. 17 Sep, 2004 2 commits
    • alias.c (find_base_decl): Remove unreachable case '3' block. · 6615c446
      2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
      	    Zack Weinberg  <zack@codesourcery.com>
      
      	* alias.c (find_base_decl): Remove unreachable case '3' block.
      	* expr.c (safe_from_p): Abort if passed a type.
      	* tree-gimple.c (recalculate_side_effects): Abort if passed
      	anything other than an expression.
      	* tree-ssa-pre.c (phi_translate): Return expr immediately if
      	is_gimple_min_invariant is true for it.  Reorder cases for clarity.
      	Abort on un-handled tree classes.
      	(valid_in_set): Likewise.
      	* tree.c (tree_code_class_strings): New static data.
      
      	* tree.h (enum tree_code_class): New.
      	(tree_code_class_strings): Declare.
      	(TREE_CODE_CLASS_STRING, EXCEPTIONAL_CLASS_P, CONSTANT_CLASS_P)
      	(REFERENCE_CLASS_P, COMPARISON_CLASS_P, UNARY_CLASS_P, BINARY_CLASS_P)
      	(STATEMENT_CLASS_P, EXPRESSION_CLASS_P, IS_TYPE_OR_DECL_P): New macros.
      	(TYPE_P, DECL_P, IS_NON_TYPE_CODE_CLASS, IS_EXPR_CODE_CLASS)
      	(checking macros, EXPR_LOCATION, SET_EXPR_LOCATION, EXPR_LOCUS): Update.
      
      	* tree.def, c-common.def, objc/objc-tree.def: Use
      	tree_code_class enumeration constants instead of code letters.
      
      	* alias.c, builtins.c, c-common.c, c-format.c, c-lang.c, c-pragma.c
      	* c-typeck.c, cgraphunit.c, convert.c, dbxout.c, dwarf2out.c
      	* emit-rtl.c expr.c, fold-const.c, gimplify.c, lambda-code.c
      	* langhooks.c, langhooks.h, predict.c, print-tree.c, reload1.c, stmt.c
      	* tree-browser.c, tree-cfg.c, tree-chrec.c, tree-complex.c, tree-dfa.c
      	* tree-dump.c, tree-eh.c, tree-gimple.c, tree-inline.c, tree-nested.c
      	* tree-outof-ssa.c, tree-pretty-print.c, tree-sra.c, tree-ssa-ccp.c
      	* tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-forwprop.c, tree-ssa-live.c
      	* tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c
      	* tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-propagate.c
      	* tree-ssa.c, tree-ssanames.c, tree-tailcall.c, tree.c, varasm.c
      	* config/sol2-c.c, config/arm/arm.c, config/i386/winnt.c
      	* config/pa/pa.c, config/pa/pa.h, config/sh/sh.c, objc/objc-lang.c
      	Update to match.
      
      	* LANGUAGES: Add note about change.
      
      ada:
      	* ada-tree.def: Use tree_code_class enumeration constants
      	instead of code letters.
      	* ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
      	Update for new tree-class enumeration constants.
      
      cp:
      	* cp-tree.def: Use tree_code_class enumeration constants
      	instead of code letters.
      	* call.c, class.c, cp-gimplify.c, cp-lang.c, cxx-pretty-print.c
      	* mangle.c, pt.c, semantics.c, tree.c, typeck.c:
      	Update for new tree-class enumeration constants.
      
      fortran:
      	* f95-lang.c, trans-expr.c, trans.c: Update for new tree-class
      	enumeration constants.
      
      java:
      	* java-tree.def: Use tree_code_class enumeration constants
      	instead of code letters.
      	* java-gimplify.c, jcf-write.c, lang.c, parse.y: Update for
      	new tree-class enumeration constants.
      
      treelang:
      	* treetree.c: Update for new tree-class enumeration constants.
      
      From-SVN: r87675
      Jeffrey D. Oldham committed
    • basic-block.h, [...]: Fix comment typos. · b01d837f
      	* basic-block.h, c-decl.c, c-parse.in, cgraphunit.c, ddg.c,
      	gimplify.c, lambda-code.c, optabs.c, predict.c,
      	tree-scalar-evolution.c, tree-sra.c, tree-ssa-loop-ch.c,
      	tree-ssa.c, vec.h: Fix comment typos.  Follow spelling
      	conventions.
      
      From-SVN: r87637
      Kazu Hirata committed
  23. 14 Sep, 2004 1 commit
  24. 11 Sep, 2004 1 commit
  25. 09 Sep, 2004 1 commit
    • targhooks.c (default_unwind_emit, [...]): Use gcc_assert, gcc_unreachable &… · 1e128c5f
      targhooks.c (default_unwind_emit, [...]): Use gcc_assert, gcc_unreachable & internal_error instead of abort.
      
      	* targhooks.c (default_unwind_emit, default_scalar_mode_supported_p):
      	Use gcc_assert, gcc_unreachable & internal_error instead of abort.
      	* timevar.c (timevar_push, timevar_pop, timevar_start,
      	timevar_stop): Likewise.
      	* toplev.c (default_pch_valid_p): Likewise.
      	* tracer.c (tail_duplicate): Likewise.
      	* tree-alias-common.c (get_alias_var_decl,
      	get_values_from_constructor, create_alias_var, delete_alias_vars,
      	empty_points_to_set, same_points_to_set, ptr_may_alias_var):
      	Likewise.
      	* tree.c (tree_size, make_node_stat, copy_node_stat,
      	build_int_cst_wide, integer_all_onesp, list_length, chainon,
      	tree_node_structure, type_contains_placeholder_p, substitute_in_expr,
      	substitute_placeholder_in_expr, tabilize_reference_1, build0_stat,
      	build1_stat, build2_stat, build3_stat, build4_stat, is_attribute_p,
      	lookup_attribute, type_hash_canon, host_integerp, iterative_hash_expr,
      	build_method_type_directly, decl_type_context, get_callee_fndecl,
      	get_set_constructor_bits, build_vector_type_for_mode, int_cst_value,
      	tree_fold_gcd): Likewise.
      	* tree-cfg.c (create_bb, make_ctrl_stmt_edges, make_exit_edges,
      	make_cond_expr_edges, group_case_labels, tree_merge_blocks,
      	cleanup_control_expr_graph, find_taken_edge,
      	find_taken_edge_switch_expr, phi_alternatives_equal,
      	is_ctrl_altering_stmt, disband_implicit_edges, set_bb_for_stmt,
      	stmt_for_bsi, tree_find_edge_insert_loc, bsi_insert_on_edge_immediate,
      	tree_split_edge, tree_verify_flow_info, thread_jumps,
      	tree_redirect_edge_and_branch, tree_flow_call_edges_add): Likewise.
      	* tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
      	chrec_fold_multiply_poly_poly): Likewise.
      	* tree-complex.c (extract_component, expand_complex_division,
      	expand_complex_comparison, expand_complex_operations_1,
      	build_replicated_const, expand_vector_operations_1): Likewise.
      	* tree-data-ref.c (tree_fold_bezout, build_classic_dist_vector,
      	build_classic_dir_vector): Likewise.
      	* tree-dfa.c (compute_immediate_uses_for_phi,
      	compute_immediate_uses_for_stmt, create_var_ann, create_stmt_ann,
      	create_tree_ann, collect_dfa_stats, get_virtual_var): Likewise.
      	* tree-dump.c (dequeue_and_dump): Likewise.
      	* tree-eh.c (record_stmt_eh_region, add_stmt_to_eh_region,
      	record_in_finally_tree, replace_goto_queue_1,
      	maybe_record_in_goto_queue, verify_norecord_switch_expr,
      	do_return_redirection): Likewise.
      	* tree-if-conv.c (tree_if_convert_stmt, tree_if_convert_cond_expr,
      	add_to_dst_predicate_list, find_phi_replacement_condition,
      	replace_phi_with_cond_modify_expr, get_loop_body_in_if_conv_order):
      	Likewise.
      	* tree-inline.c (remap_decl, remap_type, remap_decls, copy_body_r,
      	initialize_inlined_parameters, declare_return_variable,
      	estimate_num_insns_1, expand_call_inline, expand_calls_inline,
      	optimize_inline_calls, copy_tree_r): Likewise.
      	* tree-into-ssa.c (rewrite_initialize_block_local_data, rewrite_stmt,
      	ssa_rewrite_stmt, rewrite_into_ssa): Likewise.
      	* tree-iterator.c (alloc_stmt_list, tsi_link_before, tsi_link_after,
      	tsi_split_statement_list_after, tsi_split_statement_list_before):
      	Likewise.
      	* tree-mudflap.c (mf_varname_tree): Likewise.
      	* tree-nested.c (create_tmp_var_for, lookup_field_for_decl,
      	lookup_tramp_for_decl, convert_all_function_calls): Likewise.
      	* tree-optimize.c (tree_rest_of_compilation): Likewise.
      	* tree-outof-ssa.c (create_temp, eliminate_build, eliminate_phi,
      	coalesce_abnormal_edges, coalesce_ssa_name, eliminate_virtual_phis,
      	free_temp_expr_table, add_dependance, finish_expr, rewrite_trees):
      	Likewise.
      	* tree-phinodes.c (resize_phi_node, add_phi_arg,
      	remove_all_phi_nodes_for): Likewise.
      	* tree-pretty-print.c (op_prio, print_call_name): Likewise.
      	* tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
      	tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Likewise.
      	* tree-sra.c (type_can_instantiate_all_elements, sra_hash_tree,
      	sra_elt_eq, sra_walk_expr, instantiate_missing_elements,
      	generate_one_element_ref, generate_element_copy,
      	generate_element_zero, scalarize_copy, scalarize_init,
      	scalarize_ldst): Likewise.
      	* tree-ssa-alias.c (delete_alias_info, group_aliases, may_alias_p,
      	add_may_alias, add_pointed_to_expr, add_pointed_to_var,
      	collect_points_to_info_r, get_tmt_for, get_ptr_info): Likewise.
      	* tree-ssa.c (walk_use_def_chains, check_phi_redundancy): Likewise.
      	* tree-ssa-ccp.c (dump_lattice_value, get_default_value, get_value,
      	set_lattice_value, likely_value, ccp_visit_phi_node, visit_assignment,
      	widen_bitfield, ccp_fold_builtin): Likewise.
      	* tree-ssa-copy.c (may_propagate_copy, merge_alias_info,
      	replace_exp_1, propagate_tree_value): Likewise.
      	* tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
      	* tree-ssa-dce.c (set_control_dependence_map_bit,
      	find_control_dependence, find_pdom, mark_operand_necessary,
      	mark_stmt_if_obviously_necessary,
      	mark_control_dependent_edges_necessary, remove_dead_stmt): Likewise.
      	* tree-ssa-dom.c (dom_opt_initialize_block_local_data,
      	simplify_switch_and_lookup_avail_expr, cprop_into_successor_phis,
      	eliminate_redundant_computations, avail_expr_eq): Likewise.
      	* tree-ssa-dse.c (fix_stmt_v_may_defs): Likewise.
      	* tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
      	duplicate_blocks): Likewise.
      	* tree-ssa-loop-im.c (for_each_index, set_level,
      	is_call_clobbered_ref): Likewise.
      	* tree-ssa-loop-ivopts.c (dump_use, divide, stmt_after_ip_normal_pos,
      	stmt_after_increment, set_iv, contains_abnormal_ssa_name_p,
      	find_interesting_uses_outer_or_nonlin, add_derived_ivs_candidates,
      	peel_address, ptr_difference_cost, may_replace_final_value,
      	determine_use_iv_cost, rewrite_use_nonlinear_expr, rewrite_use_outer,
      	rewrite_use, rewrite_uses): Likewise.
      	* tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
      	check_loop_closed_ssa_use): Likewise.
      	* tree-ssanames.c (make_ssa_name): Likewise.
      	* tree-ssa-operands.c (finalize_ssa_defs, finalize_ssa_uses,
      	finalize_ssa_v_must_defs, finalize_ssa_stmt_operands,
      	get_stmt_operands, get_expr_operands, get_asm_expr_operands,
      	get_indirect_ref_operands, add_stmt_operand): Likewise.
      	* tree-ssa-pre.c (value_exists_in_set_bitmap,
      	value_remove_from_set_bitmap, bitmap_insert_into_set, insert_into_set,
      	phi_translate, valid_in_set, compute_antic,
      	find_or_generate_expression, create_expression_by_pieces, insert_aux,
      	create_value_expr_from, eliminate): Likewise.
      	* tree-ssa-propagate.c (cfg_blocks_get): Likewise.
      	* tree-ssa-threadupdate.c (remove_last_stmt_and_useless_edges):
      	Likewise.
      	* tree-tailcall.c (independent_of_stmt_p, adjust_return_value,
      	eliminate_tail_call): Likewise.
      	* tree-vectorizer.c (vect_create_index_for_array_ref,
      	vect_align_data_ref, vect_create_data_ref,
      	vect_create_destination_var, vect_get_vec_def_for_operand,
      	vect_finish_stmt_generation, vect_transform_stmt,
      	vect_transform_loop_bound, vect_transform_loop,
      	vect_analyze_operations): Likewise.
      	* tree-vn.c (vn_compute, set_value_handle, get_value_handle):
      	Likewise.
      	* tree-flow-inline.h (var_ann, get_var_ann, get_def_from_ptr,
      	get_use_op_ptr, immediate_use, phi_ssa_name_p, bsi_start,
      	bsi_after_labels, bsi_last): Likewise.
      	* tree-ssa-live.c (var_union, change_partition_var,
      	create_ssa_var_map, calculate_live_on_entry, root_var_init,
      	type_var_init, add_coalesce, sort_coalesce_list, pop_best_coalesce):
      	Likewise.
      	* tree-ssa-live.h (partition_is_global, live_entry_blocks,
      	tpa_find_tree): Likewise.
      	(register_ssa_partition_check): Declare.
      	(register_ssa_partition): use it.
      	* tree-ssa-live.c: Include errors.h.
      	(register_ssa_partition_check): New.
      	* tree-ssa-operands.c: Include errors.h.
      	* Makefile.in (tree-ssa-operands.o): Depend on errors.h.
      
      Co-Authored-By: Nathan Sidwell <nathan@codesourcery.com>
      
      From-SVN: r87223
      Giovanni Bajo committed
  26. 07 Sep, 2004 1 commit
    • builtins.c (fold_builtin_strchr): Use build_int_cst, not fold_convert. · 5212068f
      	* builtins.c (fold_builtin_strchr): Use build_int_cst, not
      	fold_convert.
      	(fold_builtin_strpbrk): Likewise.
      	* expr.c (array_ref_low_bound): Likewise.
      	* tree-scalar-evolution.c (chrec_is_positive, add_to_evolution_1,
      	interpret_rhs_modify_expr, number_of_iterations_in_loop): Likewise.
      	* tree-sra.c (generate_element_zero): Likewise.
      	* tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
      	* tree-ssa-loop-ivopts.c (determine_biv_step, idx_find_step,
      	add_old_iv_candidates, add_iv_candidates): Likewise.
      	* tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
      
      From-SVN: r87141
      Nathan Sidwell committed
  27. 06 Sep, 2004 1 commit
    • Unify the management of RTL and tree-level dump files. · 9f8628ba
      2004-09-06  Paolo Bonzini  <bonzini@gnu.org>
      
      	Unify the management of RTL and tree-level dump files.
      
      	* cfgexpand.c (tree_expand_cfg): Fix incorrect comment.
      	Don't print function name to the dump file, the pass manager
      	would do this for us. Add code from the top of
      	rest_of_compilation, up to the initial RTL dump.
      	* passes.c (rest_of_handle_jump): Call fixup_tail_calls and
      	close the DFI_sibling dump file.
      	(rest_of_compilation): Don't do that here.  Remove code up to the
      	initial RTL dump.
      	(init_optimization_passes): Remove.
      	(pass_rest_of_compilation): Change pass name to NULL.
      	* toplev.c (lang_dependent_init): Do not use an empty dump file prefix.
      	Do not call init_optimization_passes.
      	* toplev.h (init_optimization_passes): Remove.
      
      	* graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
      	finish_graph_dump_file): Remove SUFFIX parameter.
      	* graph.h (print_rtl_graph_with_bb, clean_graph_dump_file,
      	finish_graph_dump_file): Likewise.
      
      	* tree-pass.h (struct tree_opt_pass): Add `letter' field.
      	* cfgexpand.c (pass_expand): Adjust.
      	* gimple-low.c (pass_lower_cf, pass_remove_useless_vars): Adjust.
      	* passes.c (pass_rest_of_compilation): Adjust.
      	* predict.c (pass_profile): Adjust.
      	* tree-alias-common.c (pass_build_pta, pass_del_pta): Adjust.
      	* tree-cfg.c (pass_build_cfg, pass_remove_useless_stmts,
      	pass_split_crit_edges, pass_warn_function_return): Adjust.
      	* tree-complex.c (pass_lower_vector_ssa, pass_pre_expand): Adjust.
      	* tree-dfa.c (pass_referenced_vars): Adjust.
      	* tree-eh.c (pass_lower_eh): Adjust.
      	* tree-if-conv.c (pass_build_ssa): Adjust.
      	* tree-into-ssa.c (pass_build_ssa): Adjust.
      	* tree-mudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
      	* tree-nomudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
      	* tree-nrv.c (pass_nrv): Adjust.
      	* tree-optimize.c (pass_gimple, pass_all_optimizations,
      	pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
      	pass_init_datastructures): Adjust.
      	* tree-outof-ssa.c (pass_del_ssa): Adjust.
      	* tree-profile.c (pass_tree_profile): Adjust.
      	* tree-sra.c (pass_sra): Adjust.
      	* tree-ssa-alias.c (pass_may_alias): Adjust.
      	* tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Adjust.
      	* tree-ssa-copyrename.c (pass_rename_ssa_copies): Adjust.
      	* tree-ssa-dce.c (pass_dce, pass_cd_dce): Adjust.
      	* tree-ssa-dom.c (pass_dominator): Adjust.
      	* tree-ssa-dse.c (pass_dse): Adjust.
      	* tree-ssa-forwprop.c (pass_forwprop): Adjust.
      	* tree-ssa-if-conv.c (pass_if_conversion): Adjust.
      	* tree-ssa-loop-ch.c (pass_ch): Adjust.
      	* tree-ssa-loop.c (pass_loop, pass_loop_init, pass_lim,
      	pass_loop_done, pass_complete_unroll, pass_iv_canon,
      	pass_iv_optimize, pass_vectorize): Adjust.
      	* tree-ssa-phiopt.c (pass_phiopt): Adjust.
      	* tree-ssa-pre.c (pass_pre, pass_fre): Adjust.
      	* tree-ssa.c (pass_redundant_phi, pass_early_warn_uninitialized,
      	pass_late_warn_uninnitialized): Adjust.
      	* tree-tailcall.c (pass_tail_recursion, pass_tail_calls): Adjust.
      
      	* Makefile.in (tree-dump.o): Add new dependencies.
      	* cgraph.c (cgraph_remove_node): TDF_all -> TDF_tree_all.
      	* cgraphunit.c (cgraph_preserve_function_body_p, cgraph_optimize):
      	Likewise.
      	* toplev.c (dump_file_name): New.
      	* tree-dump.c (dump_enable_all): Add LETTER parameter.
      	(struct dump_file_info): Add NUM and LETTER fields.
      	(dump_files): Adjust and add RTL dump files.
      	(dump_register): Add NUM and LETTER fields.
      	(get_dump_file_name, dump_initialized_p, enable_rtl_dump_file): New.
      	(dump_begin): Use get_dump_file_name.
      	(dump_switch_p_1): Adjust call to dump_enable_all.
      	* tree-dump.h (dump_register): Adjust prototype.
      	* tree-optimize.c (register_one_dump_file): Take dump file index.
      	Support flags for RTL dumps.
      	(register_dump_files): Fill in NUM field of struct dump_file_info.
      	Track properties both when the gate is executed and when it is not.
      	(execute_todo): Dump RTL.  Add PROPERTIES parameter.
      	(execute_one_pass): Pass properties to execute_todo.  Handle VCG
      	dumps of RTL.
      	* tree-pass.h (dump_file_name): New.
      	* tree.h (TDF_TREE, TDF_RTL, get_dump_file_name, dump_initialized_p):
      	New.
      
      	* Makefile.in (passes.o): Add new dependencies.
      	* passes.c (struct dump_file_info, enum dump_file_index,
      	dump_file_tbl, init_optimization_passes): Remove.
      	(open_dump_file, close_dump_file): Use tree-dumping infrastructure.
      	(rest_of_handle_new_regalloc, rest_of_handle_old_regalloc): Use
      	dump_enabled_p.
      	(finish_optimization_passes): Update finish_graph_dump_file loop.
      	(enable_rtl_dump_file): Remove.
      	* tree-dump.c (dump_files): Adjust and add RTL dump files.
      	(enable_rtl_dump_file): Add here.
      	* tree.h (enum tree_dump_index): Add RTL dump file indices.
      	* doc/invoke.texi (Debugging options): Document new RTL debugging
      	options.  Update.
      
      From-SVN: r87113
      Paolo Bonzini committed
  28. 05 Sep, 2004 1 commit
    • c-common.c, [...]: Fix comment typos. · 2a7e31df
      	* c-common.c, cfgexpand.c, cgraphunit.c, defaults.h,
      	et-forest.c, expr.c, gimplify.c, global.c, gthr-lynx.h,
      	hard-reg-set.h, modulo-sched.c, optabs.c, postreload-gcse.c,
      	tree-data-ref.c, tree-flow.h, tree-if-conv.c, tree-inline.c,
      	tree-sra.c, tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
      	tree-ssa-loop-niter.c, tree-ssa-operands.c,
      	tree-ssa-operands.h, tree-ssa-propagate.c,
      	tree-ssa-propagate.h, tree-ssa-threadupdate.c, value-prof.c,
      	vec.c, vec.h: Fix comment typos.  Follow spelling conventions.
      
      From-SVN: r87104
      Kazu Hirata committed
  29. 25 Aug, 2004 1 commit
    • tree-ssa-operands.h (struct ssa_operand_iterator_d): New. · 4c124b4c
      2004-08-25  Andrew MacLeod  <amacleod@redhat.com>
      
      	* tree-ssa-operands.h (struct ssa_operand_iterator_d): New.  SSA operand
      	iterator controlling structure.
      	(SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
      	SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
      	SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New.  Operand
      	iterator flags.
      	(FOR_EACH_SSA_TREE_OPERAND): New.  Iterate over operands as trees.
      	(FOR_EACH_SSA_USE_OPERAND): New.  Iterate over operands as uses.
      	(FOR_EACH_SSA_DEF_OPERAND): New.  Iterate over operands as defs.
      	(FOR_EACH_SSA_MAYDEF_OPERAND): New.  Iterate over V_MAY_DEFs.
      	* tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New.
      	Empty operand pointers.
      	* tree-flow-inline.h (op_iter_done): New.  Return true if finished.
      	(op_iter_next_use): New.  Return next use_operand_p.
      	(op_iter_next_def): New.  Return next def_operand_p.
      	(op_iter_next_tree): New.  Return next operands as a tree.
      	(op_iter_init): New.  Initialize an iterator structure.
      	(op_iter_init_use): New.  Initialize structure and get the first use.
      	(op_iter_init_def): New.  Initialize structure and get the first def.
      	(op_iter_init_tree): New.  Initialize structure and get the first tree.
      	(op_iter_next_maydef): New.  Return next V_MAY_DEF operands.
      	(op_iter_init_maydef): New.  Initialize structure and get the first
      	V_MAY_DEF operands.
      	* tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
      	* tree-dfa.c (compute_immediate_uses_for_stmt,
      	redirect_immediate_uses): Use new operand iterator.
      	(v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
      	(mark_new_vars_to_rename): Use new operand iterator.  Count virtual
      	operands instead of using *_disappeared_p routines.
      	* tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
      	ssa_rewrite_stmt): Use new operand iterator.
      	* tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
      	rewrite_trees): Use new operand iterator.
      	* tree-pretty-print.c (dump_vops): Use new operand iterator.
      	* tree-sra.c (mark_all_v_defs): Use new operand iterator.
      	* tree-ssa-alias.c (compute_points_to_and_addr_escape,
      	dump_points_to_info): Use new operand iterator.
      	* tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize,
      	replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new
      	operand iterator.
      	* tree-ssa-dce.c (mark_stmt_if_obviously_necessary,
      	propagate_necessity): Use new operand iterator.
      	* tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
      	(register_definitions_for_stmt): Use new operand iterator.  Take stmt as
      	a parameter instead of a stmt_ann_t.
      	* tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
      	build_tree_conflict_graph): Use new operand iterator.
      	* tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
      	rewrite_mem_refs): Use new operand iterator.
      	* tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
      	check_loop_closed_ssa_use): Use new operand iterator.
      	* tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
      	* tree-ssanames.c (release_defs): Use new operand iterator.
      	* tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
      
      From-SVN: r86583
      Andrew MacLeod committed
  30. 19 Aug, 2004 1 commit
    • langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove. · 19114537
      2004-08-19  Eric Christopher  <echristo@redhat.com>
      
      	* langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
      	* langhooks.h (unsave_expr_now): Ditto.
      	* tree.h (unsave_expr_1): Remove prototype.
      	(lhd_unsave_expr_now): Rename to unsave_expr_now.
      	* tree-inline.c (unsave_expr_1): Move here
      	from tree.c. Make static.
      	(unsave_expr_now): Rename from lhd_unsave_expr_now.
      	* tree-sra.c: Fix up for rename.
      	* tree-ssa-copy.c: Ditto.
      	* tree-eh.c: Ditto.
      	* tree.c (unsave_expr_1): Move to tree-inline.c.
      
      2004-08-19  Eric Christopher  <echristo@redhat.com>
      
      	* cp-tree.h (cxx_unsave_expr_now): Delete prototype.
      	* tree.c (cxx_unsave_expr_now): Delete.
      	(cp_unsave_r): Ditto.
      
      From-SVN: r86277
      Eric Christopher committed
  31. 17 Aug, 2004 1 commit
  32. 28 Jul, 2004 2 commits
    • tree-optimize.c (init_tree_optimization_passes): Schedule pass_may_alias right… · c1b763fa
      tree-optimize.c (init_tree_optimization_passes): Schedule pass_may_alias right after the program is renamed into SSA.
      
      
      	* tree-optimize.c (init_tree_optimization_passes): Schedule
      	pass_may_alias right after the program is renamed into SSA.
      	* tree-pass.h (PROP_alias): Define.
      	* tree-outof-ssa.c (pass_del_ssa): Require PROP_alias.
      	* tree-sra.c (pass_sra): Likewise.
      	* tree-ssa-ccp.c (pass_ccp): Likewise.
      	* tree-ssa-copyrename.c (pass_rename_ssa_ccp): Likewise.
      	* tree-ssa-dce.c (pass_dce): Likewise.
      	* tree-ssa-dom.c (pass_dominator): Likewise.
      	* tree-ssa-dse.c (pass_dse): Likewise.
      	* tree-ssa-forwprop.c (pass_forwprop): Likewise.
      	* tree-ssa-loop-ch.c (pass_ch): Likewise.
      	* tree-ssa-phiopt.c (pass_phiopt): Likewise.
      	* tree-ssa-pre.c (pass_pre): Likewise.
      	* tree-tailcall.c (pass_tail_recursion): Likewise.
      	* tree-ssa.c (pass_redundant_phi): Likewise.
      	* tree-ssa-alias.c (aliases_computed_p): Remove.
      	Update all users.
      	(init_alias_info): Do not mark all type tags for renaming
      	unconditionally.
      	Clear may_aliases from every symbol.
      	(setup_pointers_and_addressables): If a pointer has not been
      	dereferenced and it had a type tag, clear it and mark the old
      	tag for renaming.
      
      
      testsuite/ChangeLog
      
      	* gcc.dg/tree-ssa/20030714-2.c: Adjust number of expected
      	conditionals.
      	* gcc.dg/tree-ssa/20031022-1.c: Adjust number of expected
      	loads.
      	* gcc.dg/tree-ssa/ssa-dom-cse-1.c: Expect optimization in
      	DOM1.
      
      From-SVN: r85255
      Diego Novillo committed
    • gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove. · e847cc68
              * gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.
              (gimplify_modify_expr, gimplify_addr_expr, gimplify_expr): Use
              is_gimple_addressable.
              * tree-gimple.c (is_gimple_addressable): Rename from
              is_gimple_addr_expr_arg; accept INDIRECT_REF.
              (is_gimple_lvalue): Don't test INDIRECT_REF directly.
              * tree-gimple.h, tree-sra.c, tree-ssa-loop-im.c: Update for
              rename to is_gimple_addressable.
      
      From-SVN: r85243
      Richard Henderson committed
  33. 16 Jul, 2004 1 commit
    • tree-def (WITH_SIZE_EXPR): New. · d25cee4d
              * tree-def (WITH_SIZE_EXPR): New.
              * explow.c (expr_size, int_expr_size): Handle WITH_SIZE_EXPR.
              * expr.c (expand_expr_real_1): Likewise.
              * gimplify.c (maybe_with_size_expr): New.
              (gimplify_arg, gimplify_modify_expr): Use it.
              (gimplify_modify_expr_to_memcpy): Take size parameter.
              (gimplify_modify_expr_to_memset): Likewise.
              (gimplify_expr): Handle WITH_SIZE_EXPR.
              * tree-alias-common.c (find_func_aliases): Likewise.
              * tree-eh.c (tree_could_trap_p): Likewise.
              (tree_could_throw_p): Likewise.
              * tree-gimple.c (is_gimple_lvalue): Likewise.
              (get_call_expr_in): Likewise.
              * tree-inline.c (estimate_num_insns_1): Likewise.
              (expand_calls_inline): Likewise.
              * tree-nested.c (convert_call_expr): Likewise.
              * tree-pretty-print.c (dump_generic_node): Likewise.
              * tree-sra.c (sra_walk_expr): Likewise.
              * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
              * tree-ssa-ccp.c (get_rhs, set_rhs): Likewise.
              * tree-ssa-operands.c (get_expr_operands): Likewise.
              * tree-tailcall.c (find_tail_calls): Likewise.
      
              * calls.c (expand_call): Reset old_stack_allocated after
              calling emit_stack_restore.
      
              * gcc.c-torture/compile/20020210-1.c: Remove XFAIL.
      
      From-SVN: r84833
      Richard Henderson committed
  34. 11 Jul, 2004 2 commits
    • re PR tree-optimization/16383 (internal compiler error: in… · fa27426e
      re PR tree-optimization/16383 (internal compiler error: in generate_element_copy, at tree-sra.c:1466)
      
              PR tree-opt/16383
              * tree-ssa-ccp.c (fold_stmt_r): Split out...
              * tree.c (fields_compatible_p, find_compatible_field): ... new.
              * tree.h (fields_compatible_p, find_compatible_field): Declare.
              * tree-sra.c (sra_hash_tree): Hash fields by offset.
              (sra_elt_eq): Use fields_compatible_p.
              (generate_one_element_ref): Use find_compatible_field.
      
      From-SVN: r84524
      Richard Henderson committed
    • re PR tree-optimization/16422 (gcc.c-torture/execute/980223.c fails) · 71956db3
              PR tree-opt/16422
              * tree-sra.c (generate_one_element_init): New.
              (generate_element_init): Use it.
              (scalarize_init): Push/pop gimplify context around it.
              (find_new_referenced_vars_1, find_new_referenced_vars): New.
              * gimplify.c (gimplify_expr): Allow SSA_NAME.
      
      From-SVN: r84523
      Richard Henderson committed
  35. 08 Jul, 2004 1 commit
    • tree-cfg.c (make_exit_edges): Use get_call_expr_in. · cd709752
              * tree-cfg.c (make_exit_edges): Use get_call_expr_in.
              (remove_useless_stmts_1, is_ctrl_altering_stmt): Likewise.
              (tree_block_ends_with_call_p, need_fake_edge_p): Likewise.
              * tree-eh.c (lower_eh_constructs_1): Likewise.
              * tree-sra.c (sra_walk_modify_expr): Likewise.
              * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
              (eliminate_unnecessary_stmts): Likewise.
              * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
              * tree-tailcall.c (optimize_tail_call): Likewise.
              * tree-ssa-ccp.c (get_rhs, set_rhs): Reorg to use switch.
      
      From-SVN: r84298
      Richard Henderson committed
  36. 06 Jul, 2004 1 commit