1. 05 Jul, 2005 1 commit
    • Makefile.in: Adjust dependencies. · ef330312
      2005-07-05  Paolo Bonzini  <bonzini@gnu.org>
      
      	* Makefile.in: Adjust dependencies.
      	* tree-pass.h: Add new passes and passes formerly in tree-optimize.c.
      	* basic-block.h (duplicate_computed_gotos): Remove, it is now static.
      	* alias.c (rest_of_handle_cfg, pass_cfg): New.
      	* bb-reorder.c (duplicate_computed_gotos): Make it static.
      	* cfgexpand.c (tree_expand_cfg): Add code formerly at the beginning of
      	rest_of_compilation.
      
      	* bb-reorder.c (gate_duplicate_computed_gotos,
      	pass_duplicate_computed_gotos, gate_handle_reorder_blocks,
      	rest_of_handle_reorder_blocks, pass_reorder_blocks,
      	gate_handle_partition_blocks, rest_of_handle_partition_blocks,
      	pass_partition_blocks): New.
      	* bt-load.c (gate_handle_branch_target_load_optimize,
      	rest_of_handle_branch_target_load_optimize,
      	pass_branch_target_load_optimize): New.
      	* cfgcleanup.c (rest_of_handle_jump, pass_jump, rest_of_handle_jump2,
      	pass_jump2): New.
      	* cfglayout.c (pass_insn_locators_initialize): New.
      	* cfgrtl.c (pass_free_cfg): New.
      	* combine.c (gate_handle_combine, rest_of_handle_combine,
      	pass_combine): New.
      	* cse.c (gate_handle_cse, rest_of_handle_cse, pass_cse,
      	gate_handle_cse2, rest_of_handle_cse2, pass_cse2): New.
      	* emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes): New.
      	* except.c (pass_set_nothrow_function_flags,
      	pass_convert_to_eh_region_ranges, gate_handle_eh, rest_of_handle_eh,
      	pass_rtl_eh): New.
      	* final.c (pass_compute_alignments, rest_of_handle_final, pass_final,
      	rest_of_handle_shorten_branches, pass_shorten_branches,
      	rest_of_clean_state, pass_clean_state): New.
      	* flow.c (pass_recompute_reg_usage, gate_remove_death_notes,
      	rest_of_handle_remove_death_notes, pass_remove_death_notes,
      	rest_of_handle_life, pass_life, rest_of_handle_flow2,
      	pass_flow2): New.
      	* function.c (pass_instantiate_virtual_regs, pass_init_function,
      	rest_of_handle_check_leaf_regs, pass_leaf_regs): New.
      	* gcse.c (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
      	pass_jump_bypass, gate_handle_gcse, rest_of_handle_gcse,
      	pass_gcse): New.
      	* global.c (rest_of_handle_global_alloc, pass_global_alloc): New.
      	* ifcvt.c (gate_handle_if_conversion, rest_of_handle_if_conversion,
      	pass_rtl_ifcvt, gate_handle_if_after_combine,
      	rest_of_handle_if_after_combine, pass_if_after_combine,
      	gate_handle_if_after_reload, rest_of_handle_if_after_reload,
      	pass_if_after_reload): New.
      	* integrate.c (pass_initial_value_sets): New.
      	* jump.c (pass_cleanup_barriers, purge_line_number_notes,
      	pass_purge_lineno_notes): New.
      	* mode-switching.c (rest_of_handle_mode_switching,
      	pass_mode_switching): New.
      	* local-alloc.c (rest_of_handle_local_alloc, pass_local_alloc): New.
      	* loop-init.c (gate_handle_loop2, rest_of_handle_loop2,
      	pass_loop2): New.
      	* loop.c (gate_handle_loop_optimize, rest_of_handle_loop_optimize,
      	pass_loop_optimize): New.
      	* modulo-sched.c (gate_handle_sms, rest_of_handle_sms,
      	pass_sms): New.
      	* postreload-gcse.c (gate_handle_gcse2, rest_of_handle_gcse2,
      	pass_gcse2): New.
      	* postreload.c (gate_handle_postreload, rest_of_handle_postreload,
      	pass_postreload_cse): New.
      	* profile.c (gate_handle_profiling, pass_profiling,
      	rest_of_handle_branch_prob, pass_branch_prob): New.
      	* recog.c (pass pass_split_for_shorten_branches, gate_do_final_split,
      	pass_split_before_regstack, gate_handle_split_before_regstack,
      	gate_handle_peephole2, rest_of_handle_peephole2, pass_peephole2,
      	rest_of_handle_split_all_insns, pass_split_all_insns): New.
      	* reg-stack.c (gate_handle_stack_regs, rest_of_handle_stack_regs,
      	pass_stack_regs): New.
      	* regmove.c (gate_handle_regmove, rest_of_handle_regmove, pass_regmove,
      	gate_handle_stack_adjustments, rest_of_handle_stack_adjustments,
      	pass_stack_adjustments): New.
      	* regrename.c (gate_handle_regrename, rest_of_handle_regrename,
      	pass_regrename): New.
      	* reorg.c (gate_handle_delay_slots, rest_of_handle_delay_slots,
      	pass_delay_slots, gate_handle_machine_reorg,
      	rest_of_handle_machine_reorg, pass_machine_reorg): New.
      	* rtl.h (extern void purge_line_number_notes): New.
      	* sched-rgn.c (gate_handle_sched, rest_of_handle_sched,
      	gate_handle_sched2, rest_of_handle_sched2, pass_sched,
      	pass_sched2): New.
      	* tracer.c (gate_handle_tracer, rest_of_handle_tracer,
      	pass_tracer): New.
      	* value-prof.c (gate_handle_value_profile_transformations,
      	rest_of_handle_value_profile_transformations,
      	pass_value_profile_transformations): New.
      	* var-tracking.c (gate_handle_var_tracking,
      	pass_variable_tracking): New.
      	* web.c (gate_handle_web, rest_of_handle_web, pass_web): New.
      
      	* passes.c (open_dump_file, close_dump_file, rest_of_handle_final,
      	rest_of_handle_delay_slots, rest_of_handle_stack_regs,
      	rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
      	rest_of_handle_old_regalloc, rest_of_handle_regrename,
      	rest_of_handle_reorder_blocks, rest_of_handle_partition_blocks,
      	rest_of_handle_sms, rest_of_handle_sched, rest_of_handle_sched2,
      	rest_of_handle_gcse2, rest_of_handle_regmove,
      	rest_of_handle_tracer, rest_of_handle_if_conversion,
      	rest_of_handle_if_after_combine, rest_of_handle_if_after_reload,
      	rest_of_handle_web, rest_of_handle_branch_prob,
      	rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
      	rest_of_handle_jump_bypass, rest_of_handle_combine,
      	rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
      	rest_of_handle_gcse, rest_of_handle_loop_optimize,
      	rest_of_handle_loop2, rest_of_handle_branch_target_load_optimize,
      	rest_of_handle_mode_switching, rest_of_handle_jump,
      	rest_of_handle_eh, rest_of_handle_stack_adjustments,
      	rest_of_handle_flow2, rest_of_handle_jump2,
      	rest_of_handle_peephole2, rest_of_handle_postreload,
      	rest_of_handle_shorten_branches, rest_of_clean_state,
      	rest_of_compilation): Remove.
      
      	* cgraphunit.c (ipa_passes): Moved from tree-optimize.c.
      	* passes.c (dump_flags, in_gimple_form, all_passes,
      	all_ipa_passes, all_lowering_passes, register_one_dump_file,
      	register_dump_files, next_pass_1, last_verified, execute_todo,
      	execute_one_pass, execute_pass_list, execute_ipa_pass_list): Moved
      	from tree-optimize.c.
      	(init_optimization_passes): Moved from tree-optimize.c,
      	adding the RTL optimizations.
      	* tree-dump.h (dump_info_p, dump_flag): Moved from tree.h.
      	* tree-optimize.c (dump_flags, in_gimple_form, all_passes,
      	all_ipa_passes, all_lowering_passes, register_one_dump_file,
      	register_dump_files, next_pass_1, last_verified, execute_todo,
      	execute_one_pass, execute_pass_list, execute_ipa_pass_list,
      	init_tree_optimization_passes, ipa_passes): Delete.
      	* tree-pass.h (enum tree_dump_index): Moved from tree.h, removing
      	the RTL dumps.
      	(TDF_*, get_dump_file_name, dump_enabled_p, dump_initialized_p,
      	dump_begin, dump_end, dump_node, dump_switch_p, dump_flag_name): Moved
      	from tree.h.
      	(ipa_passes): Remove.
      	(all_passes, all_ipa_passes, all_lowering_passes): Now extern.
      	* tree.h (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): Moved to tree-pass.h.
      	(dump_info_p, dump_flag): Moved to tree-dump.h.
      
      	* Makefile.in: Adjust dependencies for tree-pretty-print.c,
      	cgraph.c, opts.c.
      	* passes.c (finish_optimization_passes): Use dump_begin
      	and dump_end, TDI_end.
      	(gate_rest_of_compilation): New.
      	(pass_rest_of_compilation): Use it.
      	(gate_postreload, pass_postreload): New.
      	* toplev.c (general_init): Rename init_tree_optimization_passes.
      	* toplev.h (init_tree_optimization_passes): Rename to
      	init_optimizations_passes.
      	* tree-dump.c (dump_flag): Make static.
      	(dump_files): Remove RTL dumps.
      	* tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
      	pass_cleanup_cfg, pass_free_cfg_annotations,
      	pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
      	pass_init_datastructures, pass_fixup_cfg): Make non-static.
      	* tree-pretty-print.c: Include tree-pass.h.
      	* cgraph.c: Include tree-dump.h.
      
      cp:
      2005-07-05  Paolo Bonzini  <bonzini@gnu.org>
      
      	* Makefile.in (class.o, decl2.o): Adjust dependencies.
      	* class.c: Include tree-dump.h.
      	* decl2.c: Include tree-dump.h.
      
      java:
      2005-07-05  Paolo Bonzini  <bonzini@gnu.org>
      
      	* Makefile.in (parse.o): Adjust dependencies.
      	* parse.y: Include tree-dump.h.
      
      From-SVN: r101627
      Paolo Bonzini committed
  2. 03 Jul, 2005 1 commit
    • bb-reorder.c, [...]: Avoid "." or "\n" at end of diagnostics and capital letters… · ab532386
      bb-reorder.c, [...]: Avoid "." or "\n" at end of diagnostics and capital letters at start of diagnostics.
      
      	* bb-reorder.c, c-pch.c, c-pragma.c, c.opt, cfghooks.c, cfgloop.c,
      	cfgrtl.c, cgraphunit.c, config/c4x/c4x.c, config/cris/cris.c,
      	config/frv/frv.c, config/host-darwin.c, config/iq2000/iq2000.c,
      	config/lynx.h, config/m68k/m68k.c, config/pa/pa.c, config/sh/sh.h,
      	config/stormy16/stormy16.c, config/v850/v850.c,
      	config/vax/netbsd-elf.h, coverage.c, dwarf2out.c, emit-rtl.c,
      	except.c, gcc.c, tree-cfg.c, tree-eh.c, tree-ssa.c, xcoffout.c:
      	Avoid "." or "\n" at end of diagnostics and capital letters at
      	start of diagnostics.
      	* combine.c, cse.c: Don't translate dump file output.
      	* toplev.c (print_version): Only translate output if going to
      	stderr.
      
      From-SVN: r101561
      Joseph Myers committed
  3. 25 Jun, 2005 1 commit
  4. 22 Apr, 2005 1 commit
    • builtins.c (gimplify_va_arg_expr): Reword comments to avoid 'abort'. · 535a42b1
      	* builtins.c (gimplify_va_arg_expr): Reword comments to avoid
      	'abort'. Use gcc_assert and gcc_unreachable as appropriate.
      	* c-format.c (get_constant, decode_format_attr, get_flag_spec,
      	find_char_info_specifier_index,
      	find_length_info_modifier_index): Likewise.
      	* c-typeck.c (composite_type, pop_init_level): Likewise.
      	* combine.c (cant_combine_insn_p, try_combine): Likewise.
      	* cse.c (cse_insn): Likewise
      	* dominance.c (calc_dfs_tree): Likewise
      	dwarf2out.c (loc_descriptor_from_tree_1,
      	add_abstract_origin_attribute, force_decl_die,
      	force_type_die): Likewise
      	emit-rtl.c (operand_subword_force): Likewise
      	explow.c (hard_function_value): Likewise
      	expmed.c (store_bit_field, expand_divmod,
      	emit_store_flag_force): Likewise
      	expr.c (emit_move_multi_word, store_expr,
      	expand_expr_real_1): Likewise
      	final.c (this_is_asm_operands, shorten_branches, final_scan_insn,
      	output_operand): Likewise
      	flow.c (recompute_reg_usage): Likewise
      	* function.c (assign_stack_temp_for_type, assign_temp,
      	handle_epilogue_set): Likewise
      	* genextract.c (main): Likewise
      	* gimplify.c (mostly_copy_tree_r, gimplify_return_expr,
      	gimplify_modify_expr_rhs, gimplify_expr): Likewise
      	* haifa-sched.c (ready_lastpos, ready_remove_first, ready_element,
      	ready_remove, rm_line_notes, rm_other_notes,
      	schedule_block): Likewise
      	mips-tfile.c (copy_object, out_of_bounds): Likewise
      
      From-SVN: r98567
      Nathan Sidwell committed
  5. 06 Apr, 2005 1 commit
  6. 05 Apr, 2005 1 commit
  7. 25 Mar, 2005 1 commit
  8. 14 Mar, 2005 1 commit
  9. 08 Mar, 2005 1 commit
  10. 06 Mar, 2005 3 commits
  11. 25 Feb, 2005 1 commit
  12. 24 Feb, 2005 1 commit
  13. 21 Feb, 2005 1 commit
  14. 10 Feb, 2005 1 commit
  15. 07 Feb, 2005 1 commit
  16. 02 Feb, 2005 1 commit
  17. 01 Feb, 2005 2 commits
    • * cse.c (get_cse_reg_info): Update a comment. · 782c0a3e
      From-SVN: r94511
      Kazu Hirata committed
    • cse.c (cse_reg_info): Remove hash_next, next, regno. · bc5e3b54
      	* cse.c (cse_reg_info): Remove hash_next, next, regno.  Add
      	timestamp.
      	(cse_reg_info_list, cse_reg_info_list_free, REGHASH_SHIFT,
      	REGHASH_SIZE, REGHASH_MASK, reg_hash, REGHASH_FN,
      	cached_cse_reg_info, GET_CSE_REG_INFO): Remove.
      	(cached_regno): Initialize to INVALID_REGNUM.
      	(cse_reg_info_table_size,
      	cse_reg_info_table_first_uninitialized,
      	cse_reg_info_timestamp): New.
      	(REG_TICK, REG_IN_TABLE, SUBREG_TICKED, REG_QTY): Use
      	get_cse_reg_info.
      	(init_cse_reg_info, get_cse_reg_info_1): New.
      	(get_cse_reg_info): Cache the last look-up.
      	(new_basic_block): Update the code to clear mappings from
      	registers to cse_reg_info entries.
      	(cse_main): Call init_cse_reg_info.
      
      From-SVN: r94506
      Kazu Hirata committed
  18. 31 Jan, 2005 1 commit
  19. 29 Jan, 2005 1 commit
  20. 28 Jan, 2005 2 commits
  21. 27 Jan, 2005 1 commit
  22. 26 Jan, 2005 1 commit
  23. 23 Jan, 2005 1 commit
  24. 18 Jan, 2005 1 commit
    • basic-block.h, [...]: Update copyright. · ad616de1
      	* basic-block.h, c-common.c, c-cppbuiltin.c, c-lang.c,
      	c-tree.h, cfgbuild.c, cgraph.c, cgraph.h, collect2.c,
      	combine.c, config.gcc, coverage.h, cse.c, cselib.c,
      	defaults.h, df.c, dwarf2asm.c, dwarf2out.c, explow.c, expr.c,
      	flow.c, fold-const.c, gcse.c, ggc-page.c, gimple-low.c,
      	gimplify.c, ifcvt.c, langhooks-def.h, lcm.c, optabs.h,
      	output.h, postreload-gcse.c, postreload.c, recog.c,
      	resource.c, rtl.def, rtlanal.c, sched-deps.c, sched-rgn.c,
      	targhooks.h, toplev.c, tree-data-ref.c, tree-eh.c,
      	tree-flow.h, tree-loop-linear.c, tree-mudflap.h, tree-nrv.c,
      	tree-optimize.c, tree-outof-ssa.c, tree-pass.h,
      	tree-scalar-evolution.c, tree-ssa-copy.c, tree-ssa-dce.c,
      	tree-ssa-dse.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c,
      	tree-ssa-pre.c, tree-ssa.c, tree-vectorizer.c, tree.def,
      	unwind-dw2-fde-darwin.c, var-tracking.c: Update copyright.
      
      From-SVN: r93827
      Kazu Hirata committed
  25. 05 Jan, 2005 1 commit
    • combine.c (expand_compound_operation): Add comment that we fall through after case. · 46d096a3
      	* combine.c (expand_compound_operation)  <ZERO_EXTRACT>: Add
      	comment that we fall through after case.
      	(mark_used_regs_combine): Don't expect a SIGN_EXTRACT in a SET_DEST.
      	(distribute_links): Likewise.
      	* cse.c (cse_insn): Likewise.
      	* cselib.c (cselib_invalidate_mem): Likewise.
      	* df.c: Update comments at the top of the file.
      	(read_modify_subreg_p): Update comments here too.
      	(df_def_record_1): Don't expect a SIGN_EXTRACT in a SET_DEST.
      	* flow.c (mark_set_1): Likewise.
      	(mark_used_regs): Likewise.
      	* gcse.c (mems_conflict_for_gcse_p): Likewise.
      	(canon_list_insert): Likewise.
      	(mark_set): Likewise.
      	(try_replace_reg): Likewise.
      	(store_killed_in_insn): Likewise.
      	* loop.c (count_one_set): Likewise.
      	(basic_induction_var): Likewise.
      	* postreload-gcse.c (find_mem_conflicts): Likewise.
      	* postreload.c (reload_combine_note_store): Likewise.
      	(move2add_note_store): Likewise.
      	* reload.c (find_equiv_reg): Likewise.
      	(mark_referenced_resources): Likewise.
      	* rtlanal.c (set_noop_p): Likewise.
      	(note_stores): Likewise.
      	(note_uses): Likewise.
      	* sched-deps.c (sched_analyze_1): Likewise.
      	* sched-rgn.c (check_live_1): Likewise.
      	(update_live_1): Likewise.
      	* config/i860/i860.c: Likewise.
      
      	* rtl.dec (SIGN_EXTRACT): Document that this cannot appear as
      	an lvalue.
      	(ZERO_EXTRACT): Mention that this one can be an lvalue.
      
      	* doc/rtl.texi: Update documentation for bit-fields and SET.
      
      From-SVN: r92974
      Steven Bosscher committed
  26. 04 Jan, 2005 1 commit
  27. 26 Nov, 2004 1 commit
  28. 25 Nov, 2004 1 commit
    • parts of PR rtl-opt/18463, rtl-opt/17647 · b7ca416f
      2004-11-25  Andrew Pinski <pinskia@physics.uc.edu>
      
              parts of PR rtl-opt/18463, rtl-opt/17647
              * cse.c (canon_for_address): New function.
              (find_best_addr): Call canon_for_address before getting the
              address's cost when checking if we should take that address.
      
      From-SVN: r91308
      Andrew Pinski committed
  29. 23 Nov, 2004 1 commit
  30. 22 Nov, 2004 1 commit
    • 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
  31. 16 Nov, 2004 1 commit
    • cse.c (struct change_cc_mode_args): New structure. · fc188d37
      2004-11-16  Andreas Krebbel  <krebbel1@de.ibm.com>
      
      	* gcc/cse.c (struct change_cc_mode_args): New structure.
      	(cse_change_cc_mode_insn): New function.
      	(cse_change_cc_mode): Use validate_change to perfom changes.
      	(cse_change_cc_mode_insns, cse_condition_code_reg):
      	Call cse_change_cc_mode_insn.
      
      From-SVN: r90728
      Andreas Krebbel committed
  32. 13 Nov, 2004 2 commits
    • cse.c (cse_insn): Stores in a libcall sequence can invalidate previous loads. · 32fab725
      	* cse.c (cse_insn): Stores in a libcall sequence can invalidate
      	previous loads.
      
      From-SVN: r90587
      Bernd Schmidt committed
    • cse.c (CHEAP_REGNO): Redefine using REGNO_PTR_FRAME_P and HARD_REGISTER_NUM_P. · d67fb775
      	* cse.c (CHEAP_REGNO): Redefine using REGNO_PTR_FRAME_P and
      	HARD_REGISTER_NUM_P.
      
      	* cselib.c (new_cselib_val): Make comment correct and more detailed.
      	* flow.c (mark_set_1): Likewise.
      
      	* except.c (duplicate_eh_region_1, duplicate_eh_region_2,
      	duplicate_eh_regions): Remove.
      	* except.h (duplicate_eh_regions): Remove prototype.
      	* integrate.c (get_label_from_map, copy_rtx_and_substitute,
      	global_const_equiv_varray): Remove.
      	* integrate.h (get_label_from_map, copy_rtx_and_substitute,
      	global_const_equiv_varray, set_label_in_map): Remove prototypes,
      	extern declaration, and #define.
      	(MAYBE_EXTEND_CONST_EQUIV_VARRAY, SET_CONST_EQUIV_DATA): Remove.
      	(struct inline_remap): Remove.
      	* varray.c (struct element): Remove entry for const_equiv_data.
      	* varray.h (struct const_equiv_data): Remove.
      	(enum varray_data_enum) <VARRAY_DATA_CONST_EQUIV>: Remove.
      	(union varray_data_tag) <const_equiv>: Remove.
      	(VARRAY_CONST_EQUIV_INIT, VARRAY_CONST_EQUIV,
      	VARRAY_PUSH_CONST_EQUIV, VARRAY_TOP_CONST_EQUIV): Remove.
      
      	* regstack.c (record_label_references): Remove unused function.
      
      	* rtl.def (VALUE): Update comment.
      	(LABEL_REF): Remove unused operand 2.
      	* rtl.h (struct rtx_def): Update for removed accessor macros.
      	(XCADVFLAGS, INSN_DEAD_CODE_P, LINE_NUMBER, CONTAINING_INSN,
      	REG_LOOP_TEST_P): Remove.
      	(ADDR_DIFF_VEC_FLAGS, CSELIB_VAL_PTR, LABEL_NEXTREF): Add comments.
      	* web.c (entry_register): Don't copy REG_LOOP_TEST_P.
      	* doc/rtl.texi (INSN_DEAD_CODE_P, REG_LOOP_TEST_P): Remove.
      
      From-SVN: r90580
      Steven Bosscher committed
  33. 02 Nov, 2004 1 commit
    • cfgloop.h (struct loop): Update comment. · 75473b02
      	* cfgloop.h (struct loop): Update comment.
      	* cse.c (cse_main): Remove obsolete comment.
      
      	* expr.h (gen_cond_trap): Move prototype under functions provided
      	by optabs.c.
      	(canonicalize_condition, get_condition): Move to...
      	* rtl.h (canonicalize_condition, get_condition): ...here.
      	(branch_target_load_optimize): Add comment that this function is
      	in bt-load.c.
      	* loop.c (canonicalize_condition, get_condition): Move to...
      	* rtlanal.c (canonicalize_condition, get_condition): ...here.
      	* sched-deps.c (get_condition): Rename to sched_get_condition.
      	(add_dependence): Update this caller.
      
      From-SVN: r89995
      Steven Bosscher committed
  34. 28 Oct, 2004 1 commit
  35. 25 Oct, 2004 1 commit
    • cse.c: Change encoding of quantity numbers to avoid undefined pointer arithmetic on... · 08a69267
      	* cse.c: Change encoding of quantity numbers to avoid undefined
      	pointer arithmetic on qty_table.
      	(REGNO_QTY_VALID_P): A quantity is now valid if it isn't negative.
      	(get_cse_reg_info): Initialize reg_qty to a unique negative value.
      	(new_basic_block): Assign "real" quantity numbers from zero.
      	(delete_reg_equiv): Do nothing if quantity is invalid.  Reset the
      	REG_QTY to its unique negative value.
      	(merge_equiv_classes): Calculate need_rehash if quantity is valid.
      	(cse_main): Don't include max_reg when determining max_qty.
      	(cse_basic_block): Avoid subtracting a large offset from qty_table,
      	which causes undefined C99 behaviour.  Only allocate needed memory.
      
      Co-Authored-By: John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
      
      From-SVN: r89543
      Roger Sayle committed