1. 23 Jul, 2002 1 commit
    • defaults.h (obstack_chunk_alloc, [...]): Default definition. · 4fa31c2a
      	* defaults.h (obstack_chunk_alloc, obstack_chunk_free):
      	Default definition.
      	* gcse.c: Don't define obstack_chunk_free.
      	* collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
      	flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
      	integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
      	reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
      	Don't define obstack macros.
      cp:
      	* class.c, method.c, pt.c, search.c: Similarly.
      
      From-SVN: r55665
      Neil Booth committed
  2. 23 May, 2002 1 commit
    • bb-reorder.c (make_reorder_chain, [...]): Use FOR_EACH_BB macros to iterate over basic block chain. · e0082a72
      	* bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
      	Use FOR_EACH_BB macros to iterate over basic block chain.
      	* cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
      	alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
      	Likewise.
      	* cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
      	find_unreachable_blocks, create_edge_list, verify_edge_list,
      	remove_fake_edges, add_noreturn_fake_exit_edges,
      	flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
      	Likewise.
      	* cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
      	find_sub_basic_blocks): Likewise.
      	* cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
      	Likewise.
      	* cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
      	Likewise.
      	* cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
      	Likewise.
      	* cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
      	commit_edge_insertions, commit_edge_insertions_watch_calls,
      	print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
      	* combine.c (combine_instructions, reg_dead_at_p): Likewise.
      	* conflict.c (conflict_graph_compute): Likewise.
      	* df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
      	df_modified_p, df_refs_unlink, df_dump): Likewise.
      	* dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
      	* final.c (compute_alignments): Likewise.
      	* flow.c (update_life_info, update_life_info_in_dirty_blocks,
      	delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
      	count_or_remove_death_notes): Likewise.
      	* gcse.c (oprs_unchanged_p, record_last_reg_set_info,
      	compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
      	classic_gcse, compute_transp, cprop, compute_pre_data,
      	compute_transpout, invalidate_nonnull_info,
      	delete_null_pointer_checks_1, delete_null_pointer_checks,
      	compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
      	compute_store_table, build_store_vectors, store_motion): Likewise.
      	* global.c (global_conflicts, mark_elimination): Likewise.
      	* graph.c (print_rtl_graph_with_bb): Likewise.
      	* haifa-sched.c (sched_init): Likewise.
      	* ifcvt.c (if_convert): Likewise.
      	* lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
      	compute_available, compute_nearerout, compute_rev_insert_delete,
      	optimize_mode_switching): Likewise.
      	* local-alloc.c (local_alloc, update_equiv_regs): Likewise.
      	* predict.c (estimate_probability, note_prediction_to_br_prob,
      	propagate_freq, counts_to_freqs, expensive_function_p,
      	estimate_bb_frequencies): Likewise.
      	* profile.c (instrument_edges, get_exec_counts,
      	compute_branch_probabilities, compute_checksum, branch_prob,
      	find_spanning_tree): Likewise.
      	* recog.c (split_all_insns, peephole2_optimize): Likewise.
      	* reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
      	Likewise.
      	* regclass.c (scan_one_insn, regclass): Likewise.
      	* regmove.c (mark_flags_life_zones, regmove_optimize,
      	record_stack_memrefs): Likewise.
      	* regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
      	* reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
      	* resource.c (find_basic_block): Likewise.
      	* sched-ebb.c (schedule_ebbs): Likewise.
      	* sched-rgn.c (is_cfg_nonregular, build_control_flow,
      	find_single_block_region, find_rgns, schedule_insns)
      	* sibcall.c (optimize_sibling_and_tail_recursive_call)
      	* ssa-ccp.c (optimize_unexecutable_edges,
      	ssa_ccp_df_delete_unreachable_insns): Likewise.
      	* ssa-dce.c (ssa_eliminate_dead_code): Likewise.
      	* ssa.c (find_evaluations, compute_dominance_frontiers_1,
      	rename_block, convert_to_ssa, compute_conservative_reg_partition,
      	compute_coalesced_reg_partition, rename_equivalent_regs,
      	convert_from_ssa): Likewise.
      	* config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
      	process_for_unwind_directive): Likewise.
      
      	* df.c (FOR_ALL_BBS): Removed.
      	* gcse.c (struct null_pointer_info): Type of current_block field
      	changed.
      	(struct reg_avail_info): Type of last_bb field changed.
      	* config/ia64/ia64.c (block_num): Removed.
      	(need_copy_state): Type changed.
      	(last_block): New.
      
      From-SVN: r53804
      Zdenek Dvorak committed
  3. 17 May, 2002 1 commit
  4. 16 May, 2002 1 commit
  5. 12 Jan, 2002 1 commit
  6. 11 Nov, 2001 1 commit
    • ChangeLog.2, [...]: Fix spelling errors. · eaec9b3d
      	* ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog.5, ChangeLog,
      	cfg.c, cfganal.c, cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c,
      	collect2.c, combine.c, config.in, configure, configure.in,
      	conflict.c, dwarf2out.c, dwarfout.c, except.c, final.c, flow.c,
      	genattrtab.c, ggc-page.c, jump.c, lcm.c, predict.c, reg-stack.c,
      	reload1.c, rtlanal.c, sched-rgn.c, toplev.c, unwind-dw2-fde.h: Fix
      	spelling errors.
      
      From-SVN: r46928
      Joseph Myers committed
  7. 22 Aug, 2001 1 commit
    • Makefile.in, [...]: replace "GNU CC" with "GCC". · 1322177d
      	* Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
      	bitmap.h, builtin-types.def, builtins.c, builtins.def,
      	c-aux-info.c, c-common.c, c-common.def, c-common.h,
      	c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
      	c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
      	c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
      	caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
      	conditions.h, config.gcc, configure.frag, configure.in,
      	conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
      	cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
      	dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
      	doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
      	dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
      	emit-rtl.c, errors.c, errors.h, except.c, except.h,
      	exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
      	fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
      	function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
      	gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
      	gencheck.c, gencodes.c, genconfig.c, genemit.c,
      	genextract.c, genflags.c, gengenrtl.c, genmultilib,
      	genopinit.c, genoutput.c, genpeep.c, genrecog.c,
      	gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
      	ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
      	graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
      	gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
      	gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
      	hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
      	integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
      	libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
      	machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
      	mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
      	mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
      	params.h, predict.c, predict.def, predict.h, prefix.c,
      	prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
      	read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
      	regclass.c, regmove.c, regrename.c, regs.h, reload.c,
      	reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
      	rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
      	sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
      	sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
      	ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
      	stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
      	tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
      	tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
      	unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
      	unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
      	xcoffout.h: replace "GNU CC" with "GCC".
      
      From-SVN: r45105
      Lars Brinkhoff committed
  8. 01 Aug, 2001 1 commit
    • alias.c: Fix comment formatting. · ec5c56db
      	* alias.c: Fix comment formatting.
      	* bitmap.c: Likewise.
      	* builtins.c: Likewise.
      	* calls.c: Likewise.
      	* c-common.c: Likewise.
      	* c-decl.c: Likewise.
      	* c-dump.c: Likewise.
      	* c-lex.c: Likewise.
      	* collect2.c: Likewise.
      	* combine.c: Likewise.
      	* conflict.c: Likewise.
      	* cppfiles.c: Likewise.
      	* cppinit.c: Likewise.
      	* cpplex.c: Likewise.
      	* cpplib.c: Likewise.
      	* cppmacro.c: Likewise.
      	* cppspec.c: Likewise.
      	* c-pragma.c: Likewise.
      	* crtstuff.c: Likewise.
      	* cse.c: Likewise.
      	* cselib.c: Likewise.
      	* c-semantics.c: Likewise.
      	* c-typeck.c: Likewise.
      
      From-SVN: r44547
      Kazu Hirata committed
  9. 19 Nov, 2000 1 commit
    • Warning fixes: · ce1cc601
      	* builtins.c (c_getstr): Constify variable.
      	* gmon-sol2.c (_mcleanup): Comment out #endif labels.
      	* conflict.c (const_conflict_graph_arc): New typedef.
      	(arc_hash, arc_eq): Avoid needlessly casting away const-ness.
      	* cppmacro.c (builtin_macro): Likewise.
      	* dwarf2out.c (output_comp_unit): Constify variable.
      	* fix-header.c (v_fatal): Add ATTRIBUTE_PRINTF.
      	* protoize.c (IS_SAME_PATH_CHAR): Use TOUPPER, not toupper.
      	* ssa.c (ssa_rename_from_hash_function): Avoid needlessly casting
      	away const-ness.
      	* tradcpp.c (rescan, do_line, macroexpand, macarg): Use
      	ISALNUM/ISDIGIT/ISPRINT, not isalnum/isdigit/isprint.
      	* varasm.c (const_str_htab_hash, const_str_htab_eq,
      	compare_constant_1, record_constant_1): Constify.
      
      From-SVN: r37565
      Kaveh R. Ghazi committed
  10. 14 Jun, 2000 1 commit
  11. 19 May, 2000 1 commit
    • cse.c (cse_basic_block): Only call find_reg_note if REG_NOTES not 0. · efc9bd41
      	* cse.c (cse_basic_block): Only call find_reg_note if REG_NOTES not 0.
      	* reload.c (find_equiv_reg): Likewise.
      	* alias.c (init_alias_analysis): Likewise.
      	Only call prologue_epilogue_contains on insns.
      	* basic-block.h (REG_SET_TO_HARD_REG_SET): Call new function.
      	* bb-reorder.c (hard-reg-set.h): Include earlier.
      	* haifa-sched.c (hard-reg-set.h): Likewise.
      	* ifcvt.c (hard-reg-set.h): Likewise.
      	* local-alloc.c (hard-reg-set.h): Likewise.
      	* loop.c (hard-reg-set.h): Likewise.
      	* predict.c (hard-reg-set.h): Likewise.
      	* regrename.c (hard-reg-set.h): Likewise.
      	* flow.c (hard-reg-set.h): Likewise.
      	(reg_set_to_hard_reg_set): New function.
      	* bitmap.c (regs.h, basic-block.h): No longer include.
      	(bitmap.h): Now include.
      	* conflict.c (hard-reg-set.h): Include.
      	* profile.c (hard-reg-set.h): Likewise.
      	* print-rtl.c (hard-reg-set.h): Likewise.
      	* sbitmap.c (hard-reg-set.h): Likewise.
      	* toplev.c (hard-reg-set.h): Likewise.
      	* unroll.c (hard-reg-set.h, basic-block.h): Likewise.
      	* hard-reg-set.h (reg_names): Now constant.
      	* regs.h (reg_names): Likewise.
      	* regclass.c (reg_names): Likewise.
      	* loop.h (basic-block.h): No longer include.
      	(bitmap.h): Now include.
      	* reload1.c (order_regs_for_reload): Avoid loop over reg sets.
      	* Makefile.in (LOOP_H, sbitmap.o, profile.o): Reflect above changes.
      	(toplev.o, print-rtl.o, conflict.o, unroll.o, bitmap.o): Likewise.
      
      From-SVN: r34039
      Richard Kenner committed
  12. 19 Apr, 2000 1 commit
    • conflict.c (conflict_graph_add): Pass enum type to htab_find_slot. · f64bedbd
      	* gcc/conflict.c (conflict_graph_add): Pass enum type to
      	htab_find_slot.
      	* gcc/cpperror.c (hashtab.h): Now include.
      	* gcc/cppexp.c (hashtab.h): Likewise.
      	* gcc/cpplex.c (hashtab.h): Likewise.
      	* gcc/cppfiles.c (hashtab.h): Likewise.
      	(find_include_file, _cpp_calc_hash, cpp_read_file): Pass enum type
      	to htab_find_slot_with_hash.
      	* gcc/cpphash.c (hashtab.h): Now include.
      	(_cpp_lookup_slot): INSERT is now enum insert_option.
      	* gcc/cpphash.h (_cpp_lookup_slot): Likewise.
      	* gcc/cppinit.c (hashtab.h): Include earlier.
      	(initialize_builtins): Pass enum to htab_find_slot.
      	* gcc/cpplib.c (hashtab.h): Now include.
      	(do_define, do_undef): Pass enum type to _cpp_lookup_slot.
      	(do_pragma_poison, do_assert): Likewise.
      	* gcc/emit-rtl.c (gen_rtx_CONST_INT): Pass enum to
      	htab_find_slot_with_hash.
      	* gcc/simplify-rtx.c (cselib_lookup_mem, cselib_lookup): Likewise.
      	* gcc/tree.c (type_hash_add): Likewise.
      	(build1): Minor cleanup.
      	* include/hashtab.h (enum insert_option): New type.
      	(htab_find_slot, htab_find_slot_with_hash): Use it.
      	* libiberty/hashtab.c: Various minor cleanups.
      	(htab_find_slot_with_hash): INSERT is now enum insert_option.
      	(htab_find_slot): Likewise.
      
      From-SVN: r33260
      Richard Kenner committed
  13. 18 Apr, 2000 1 commit
  14. 07 Apr, 2000 1 commit
  15. 06 Apr, 2000 1 commit
    • rtl.h (INSN_P): New macro. · 4e872036
      	* rtl.h (INSN_P): New macro.
      	(successor_phi_fn): New typedef.
      	(for_each_successor_phi): New prototype.
      	(in_ssa_form): New variable.
      	(PHI_NODE_P): Likewise.
      	* flow.c (calculate_global_regs_live): Add to new_live_at_end from
      	phi nodes in successors.
      	(mark_used_regs): Add PHI case.
      	(set_phi_alternative_reg): New function.
      	(life_analysis): Assert that dead code elimination is not selected
      	when in SSA form.
      	* toplev.c (to_ssa_time): New variable.
      	(from_ssa_time): Likewise.
      	(compile_file): Zero to_ssa_time and from_ssa_time.
      	Print time to convert to and from SSA.
      	(rest_of_compilation): Time convert_to_ssa and convert_from_ssa.
      	(print_time): Compute percent fraction as integer.
      	* ssa.c (PHI_NODE_P): Moved to rtl.h.
      	(convert_to_ssa): Check if we're already in SSA.
      	Don't eliminate dead code in life_analysis.
      	Rerun flow and life analysis at bottom.
      	(eliminate_phi): Use canonical regnos when adding nodes.
      	(mark_reg_in_phi): New function.
      	(mark_phi_and_copy_regs): Likewise.
      	(convert_from_ssa): Rerun life analysis at top.
      	Use coalesced partition.
      	Check for removing a phi node at the end of the block.
      	(compute_coalesced_reg_partition): New function.
      	(coalesce_regs_in_copies): Likewise.
      	(coalesce_reg_in_phi): Likewise.
      	(coalesce_regs_in_sucessor_phi_nodes): Likewise.
      	(for_each_successor_phi): Likewise.
      	(rename_context): New struct.
      	(rename_block): Use a rename_context with rename_insn_1.  When
      	renaming sets of a subreg, emit a copy of the entire reg first.
      	(rename_insn_1): Treat data as a rename_context *.  Save current
      	insn in set_data.
      	(rename_set_data): Add field set_insn.
      	* Makefile.in (HASHTAB_H): Move up in file.
      	(OBSTACK_H): New macro.
      	(collect2.o): Use OBSTACK_H in dependencies.
      	(sdbout.o): Likewise.
      	(emit-rtl.o): Likewise.
      	(simplify-rtx.o): Likewise.
      	(fix-header.o): Likewise.
      	(OBJS):	Add conflict.o.
      	(conflict.o): New rule.
      	* basic-block.h: Include partition.h.
      	(conflict_graph): New typedef.
      	(conflict_graph_enum_fn): Likewise.
      	(conflict_graph_new): New prototype.
      	(conflict_graph_delete): Likewise.
      	(conflict_graph_add): Likewise.
      	(conflict_graph_conflict_p): Likewise.
      	(conflict_graph_enum): Likewise.
      	(conflict_graph_merge_regs): Likewise.
      	(conflict_graph_print): Likewise.
      	(conflict_graph_compute): Likewise.
      	* conflict.c: New file.
      
      From-SVN: r32979
      Alex Samuel committed