1. 20 May, 2004 1 commit
    • Makefile.in (GTFILES): Add $(srcdir)/reload.h. · 965ccc5a
      	* Makefile.in (GTFILES): Add $(srcdir)/reload.h.
      	* gengtype.c (open_base_files): Include reload.h in ifiles.
      	* reload.h (reg_equiv_memory_loc_varray): Declare.
      	* reload1.c (reg_equiv_memory_loc_varray): New variable.
      	(init_reload): Initialize it.
      	(reload): Instead of freeing reg_equiv_memory_loc, 'grow'
      	reg_equiv_memory_loc_varray to size 0.
      	* ra.c (reg_alloc): Allocate reg_equiv_memory_loc by
      	growing reg_equiv_memory_loc_varray to the desired size.
      	* passes.c (rest_of_handle_old_regalloc): Likewise.
      	* reload.c: Amend comment on calling init_reload.
      
      From-SVN: r82050
      J"orn Rennecke committed
  2. 15 May, 2004 1 commit
    • basic-block.h (life_analysis, [...]): Update prototypes. · 827c06b6
      	* basic-block.h (life_analysis, delete_noop_moves):
      	Update prototypes.
      	* bt-load.c (branch_target_load_optimize): Don't take the
      	insns stream as an argument.  Update the life_analysis calls.
      	* combine.c (combine_instructions): Update delete_noop_moves
      	calls.
      	* flow.c (notice_stack_pointer_modification): Don't take the
      	insns stream as an argument.  Work on the flow graph.
      	(life_analysis): Likewise.
      	(delete_noop_moves): Likewise.
      	* passes.c (rest_of_handle_stack_regs): Update reg_to_stack call.
      	(rest_of_handle_life): Update life_analysis call.
      	(rest_of_compilation): Likewise, and also update
      	branch_target_load_optimize call.
      	* ra.c (reg_alloc): Update life_analysis call.
      	* reg-stack.c (reg_to_stack): Likewise.  Also, don't take
      	the insns stream as an argument.
      	* regrename.c (copyprop_hardreg_forward): Update delete_noop_moves
      	call.
      	* rtl.c (branch_target_load_optimize, reg_to_stack): Update
      	prototypes.
      	* value-profile.c (branch_prob): Update life_analysis call.
      	* web.c (web_main): Work on the CFG, not on the insns stream.
      
      	* config/ip2k/ip2k.c (ip2k_reorg): Update life_analysis calls.
      	* config/m68hc11/m68hc11.c (m68hc11_reorg): Likewise.
      	* config/sh/sh.c (sh_output_mi_thunk): Likewise.
      
      From-SVN: r81873
      Steven Bosscher committed
  3. 24 Feb, 2004 2 commits
    • toplev.c (dump_file_tbl): Rename from dump_file. · c263766c
              * toplev.c (dump_file_tbl): Rename from dump_file.
              * bb-reorder.c, bt-load.c, cfgcleanup.c, cfglayout.c, cfgloopanal.c,
              cfgloopmanip.c, cfgrtl.c, config/arm/arm.c, config/frv/frv.c,
              config/i386/i386.c, config/ia64/ia64.c, config/mips/mips.c,
              config/sh/sh.c, cse.c, flow.c, ifcvt.c, loop-iv.c, loop-unroll.c,
              loop-unswitch.c, output.h, predict.c, profile.c, ra-build.c,
              ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, regrename.c, reload1.c,
              toplev.c, tracer.c, value-prof.c, var-tracking.c, web.c:
              s/rtl_dump_file/dump_file/g.
      
      From-SVN: r78399
      Richard Henderson committed
    • df.c, [...]: Replace df_analyse with df_analyze. · b57f2e10
      	* df.c, df.h, ra-build.c, ra-rewrite.c, ra.c, web.c: Replace
      	df_analyse with df_analyze.
      
      From-SVN: r78363
      Kazu Hirata committed
  4. 04 Feb, 2004 1 commit
    • alloc-pool.h, [...]: Update copyright. · e146f815
      	gcc/
      	* alloc-pool.h, c-convert.c, c-lang.c, c-tree.h,
      	caller-save.c, df.h, genconfig.c, global.c, lcm.c,
      	ra-rewrite.c, ra.c, regclass.c, regs.h, resource.c,
      	sched-rgn.c, config/arm/aof.h, config/arm/cirrus.md,
      	config/arm/fpa.md, config/arm/iwmmxt.md,
      	config/arm/netbsd-elf.h, config/arm/netbsd.h,
      	config/m68hc11/m68hc11.md, config/mips/iris5.h,
      	config/mn10300/mn10300.md, config/rs6000/altivec.md,
      	config/sparc/netbsd-elf.h: Update copyright.
      
      	cp/
      	* error.c, search.c: Update copyright.
      
      	java/
      	* typeck.c: Update copyright.
      
      From-SVN: r77265
      Kazu Hirata committed
  5. 02 Feb, 2004 1 commit
    • alias.c (record_set): Use hard_regno_nregs. · 66fd46b6
      	* alias.c (record_set): Use hard_regno_nregs.
      	* bt-load.c (find_btr_reference, note_btr_set): Likewise.
      	* builtins.c (apply_args_size): Likewise.
      	* caller-save.c (setup_save_areas, save_call_clobbered_regs,
      	mark_set_regs, add_stored_regs, mark_referenced_regs,
      	insert_restore, insert_save, insert_one_insn): Likewise.
      	* cfgcleanup.c: Include regs.h
      	(mark_effect, mentions_nonequal_regs): Likewise.
      	* cfgrtl.c (mark_killed_regs): Likewise
      	* combine.c (update_table_tick, record_value_for_reg,
      	record_dead_and_set_regs, get_last_value_validate, use_crosses_set_p,
      	reg_dead_at_p_1, reg_dead_at_p, mark_used_regs_combine, move_deaths,
      	reg_bitfield_target_p, distribute_notes): Likewise.
      	* cse.c (mention_regs, insert, invalidate, invalidate_for_call,
      	exp_equiv_p, cse_insn): Likewise.
      	* cselib.c (cselib_lookup): Likewise.
      	(cselib_invalidate_regno, cselib_record_set): Likewise.
      	* df.c (df_ref_record): Likewise.
      	* dwarf2out.c (reg_loc_descriptor, multiple_reg_loc_descriptor):
      	Likewise.
      	* flow.c (mark_reg, insn_dead_p, mark_set_1, mark_used_reg,
      	count_or_remove_death_notes_bb): Likewise.
      	* function.c (aggregate_value_p, keep_stack_depressed): Likewise.
      	* gloval.c (global_alloc, find_reg, mark_reg_store, mark_reg_conflicts,
      	mark_reg_death, set_preference, reg_becomes_live, reg_dies): Likewise.
      	* integrate.c (mark_stores): Likewise.
      	* jump.c (delete_prior_computation): Likewise.
      	* lcm.c (reg_dies, reg_becomes_live): Likewise.
      	* local-alloc.c (combine_regs, find_free_reg, post_mark_life): Likewise.
      	* loop.c (LOOP_REGNO_NREGS): Likewise.
      	* postreload.c (reload_combine, reload_combine_note_store,
      	reload_combine_note_use, reload_cse_move2add, move2add_note_store): Likewise.
      	* ra-colorize.c (combine, color_usable_p, get_free_reg,
      	calculate_dont_begin, calculate_dont_begin, colorize_one_web,
      	try_recolor_web, insert_coalesced_conflicts, check_colors,
      	break_precolored_alias): Likewise.
      	* ra-debug.c: Include regs.h
      	(ra_print_rtx_object): Likewise.
      	* ra-rewrite (choose_spill_colors): Likewise.
      	(spill_same_color_p, update_spill_colors, spill_is_free): Likewise.
      	* ra.c (init_ra): Likewise.
      	* recog.c (reg_fits_class_p, peep2_reg_dead_p,
      	peep2_find_free_register): Likewise.
      	* reg-stack.c (subst_stack_regs_pat, convert_regs_exit): Likewise.
      	* regclass.c (hard_regno_nregs): New array.
      	(init_reg_modes_once): Initialize it.
      	(choose_hard_reg_mode): Use it.
      	(record_reg_classes): Likewise.
      	* regmove.c (mark_flags_life_zones): Likewise.
      	* regrename.c (note_sets, clear_dead_regs, regrename_optimize,
      	scan_rtx_reg, dump_def_use_chain, kill_value, set_value_regno,
      	copy_value, maybe_mode_change, find_oldest_value_reg,
      	copyprop_hardreg_forward_1):
      	* regs.h (hard_regno_nregs): Declare.
      	* realod.c (reload_inner_reg_of_subreg): Use it.
      	(push_reload, combine_reloads, find_dummy_reload,
      	hard_reg_set_here_p, operands_match_p, decompose, find_reloads,
      	refers_to_regno_for_reload_p, find_equiv_reg, regno_clobbered_p,
      	reload_adjust_reg_for_mode): Likewise.
      	* reload1.c (compute_use_by_pseudos, count_pseudo,
      	count_spilled_pseudo, find_reg, find_reload_regs, mark_home_live,
      	spill_hard_reg, forget_old_reloads_1, mark_reload_reg_in_use,
      	clear_reload_reg_in_use, reload_reg_free_for_value_p, free_for_value_p
      	allocate_reload_reg, choose_reload_regs, emit_reload_insns,
      	delete_output_reload): Likewise.
      	* resource.c (update_live_status, mark_referenced_resources,
      	mark_set_resources, mark_target_live_regs): Likewise.
      	* rtlanal.c:  Include regs.h
      	(refers_to_regno_p, reg_overlap_mentioned_p, dead_or_set_p,
      	dead_or_set_regno_p, find_regno_note, find_reg_fusage,
      	subreg_regno_offset, subreg_offset_representable_p,
      	hoist_test_store): Likewise.
      	* sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
      	* sched-rgn.c (check_live_1, update_live_1): Likewise.
      	* stmt.c: Include regs.h
      	(decl_conflicts_with_clobbers_p): Likewise.
      	* varasm.c (make_decl_rtl): Likewise.
      	* Makefile.in (cfgcleanup.o, rtlanal.o, ra-debug.o): Add regs.h dependnecy.
      
      From-SVN: r77088
      Jan Hubicka committed
  6. 16 Dec, 2003 1 commit
    • flow.c (EXIT_IGNORE_STACK): Move to ... · 9d05bbce
      	* flow.c (EXIT_IGNORE_STACK): Move to ...
      	* defaults.h (EXIT_IGNORE_STACK): ... here.
      	* dojump.c (clear_pending_stack_adjust): Don't use #ifdef
      	EXIT_IGNORE_STACK.
      	* function.c (expand_function_end): Likewise.
      	* global.c (global_alloc): Likewise.
      	* ra.c (init_ra): Likewise.
      	* reload1.c (init_elim_table): Likewise.
      	* reorg.c (fill_simple_delay_slots): Likewise.
      	* resource.c (init_resource_info): Likewise.
      	* doc/tm.texi (EXIT_IGNORE_STACK): Document that the default
      	is 0.
      
      From-SVN: r74654
      Kazu Hirata committed
  7. 11 Dec, 2003 1 commit
    • basic-block.h (BLOCK_HEAD, BLOCK_END): Remove. · a813c111
      2003-12-11  Steven Bosscher  <steven@gcc.gnu.org>
      
      	* basic-block.h (BLOCK_HEAD, BLOCK_END): Remove.
      	(BLOCK_HEAD_TREE, BLOCK_END_TREE): Remove.
      	(basic_block_def): Rename `head' to `head_' and `end' to `end_'.
      	(BB_HEAD, BB_END): New accessor macros for the `head_' and `end_'
      	fields of a basic block.
      	* bb-reorder.c, bt-load.c, caller-save.c, cfg.c, cfganal.c,
      	cfgbuild.c, cfgcleanup.c, cfglayout.c, cfgloop.c, cfgloopanal.c,
      	cfgloopmanip.c, cfgrtl.c, combine.c, conflict.c, df.c, emit-rtl.c,
      	final.c, flow.c, function.c, gcse.c, global.c, graph.c,
      	haifa-sched.c, ifcvt.c, lcm.c, local-alloc.c, loop-unswitch.c,
      	loop.c, postreload.c, predict.c, profile.c, ra-build.c, ra-debug.c,
      	ra-rewrite.c, ra.c, recog.c, reg-stack.c, regclass.c, regmove.c,
      	regrename.c, reload1.c, resource.c, sched-ebb.c, sched-rgn.c,
      	sibcall.c, tracer.c, config/frv/frv.c, config/i386/i386.c,
      	config/ia64/ia64.c: Use the BB_HEAD and BB_END macros instead of
      	accessing the `head' and `end' fields of a basic block directly.
      
      	* gengtype.c: Add missing piece from earlier patch.  Dunno what
      	I was thinking...
      
      From-SVN: r74520
      Steven Bosscher committed
  8. 14 Sep, 2003 1 commit
  9. 19 Jul, 2003 1 commit
    • alias.c [...]: Remove unnecessary casts. · 703ad42b
      	* alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
      	c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
      	c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
      	collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
      	cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
      	cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
      	dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
      	fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
      	gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
      	genemit.c genextract.c genoutput.c genrecog.c gensupport.c
      	ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
      	integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
      	loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
      	postreload.c prefix.c print-tree.c protoize.c ra-build.c
      	ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
      	regmove.c regrename.c reload.c reload1.c reorg.c resource.c
      	sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
      	simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
      	tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
      	varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
      	casts.
      
      From-SVN: r69587
      Kaveh R. Ghazi committed
  10. 07 Mar, 2003 1 commit
    • df.h (enum df_ref_flags.DF_REF_STRIPPED): New. · 50aac998
              * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
              (DF_FOR_REGALLOC): New.
              * df.c (df_ref_record): Set DF_REF_STRIPPED.
              (read_modify_subreg_p): Simplify.
              (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
              Use DF_FOR_REGALLOC.
              * ra.h (struct web): New member subreg_stripped.
              (invalid_mode_change_regs): Declare.
              * ra.c (invalid_mode_change_regs): New.
              (init_ra): Initialize it.
              * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
              Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
              (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
              * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
              Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
      
      From-SVN: r63952
      Michael Matz committed
  11. 17 Jan, 2003 1 commit
    • ifcvt.c: Fix comment typos. · 3d042e77
      	* ifcvt.c: Fix comment typos.
      	* lcm.c: Likewise.
      	* libgcc2.c: Likewise.
      	* local-alloc.c: Likewise.
      	* loop.c: Likewise.
      	* predict.c: Likewise.
      	* ra-build.c: Likewise.
      	* ra.c: Likewise.
      	* ra-colorize.c: Likewise.
      	* ra.h: Likewise.
      	* ra-rewrite.c: Likewise.
      	* regmove.c: Likewise.
      	* reload.h: Likewise.
      	* rtlanal.c: Likewise.
      	* toplev.c: Likewise.
      	* tree.h: Likewise.
      	* unwind-dw2-fde-glibc.c: Likewise.
      	* vmsdbgout.c: Likewise.
      
      From-SVN: r61421
      Kazu Hirata committed
  12. 25 Dec, 2002 1 commit
    • output.h: Fix comment typos. · d55d8fc7
      	* output.h: Fix comment typos.
      	* predict.c: Likewise.
      	* print-tree.c: Likewise.
      	* profile.c: Likewise.
      	* ra-build.c: Likewise.
      	* ra-colorize.c: Likewise.
      	* ra-debug.c: Likewise.
      	* ra-rewrite.c: Likewise.
      	* ra.c: Likewise.
      	* ra.h: Likewise.
      	* real.c: Likewise.
      	* recog.c: Likewise.
      	* reg-stack.c: Likewise.
      	* regclass.c: Likewise.
      
      From-SVN: r60502
      Kazu Hirata committed
  13. 16 Dec, 2002 1 commit
  14. 14 Aug, 2002 1 commit
  15. 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
  16. 15 Jul, 2002 1 commit
    • [multiple changes] · ed8d2920
      2002-07-15  Michael Matz  <matz@suse.de>,
                  Daniel Berlin  <dberlin@dberlin.org>,
      	    Denis Chertykov  <denisc@overta.ru>
      
      	Add a new register allocator.
      
      	* ra.c: New file.
      	* ra.h: New file.
      	* ra-build.c: New file.
      	* ra-colorize.c: New file.
      	* ra-debug.c: New file.
      	* ra-rewrite.c: New file.
      
      	* Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
      	(ra-rewrite.o): New .o files for libbackend.a.
      	(GTFILES): Add basic-block.h.
      
      	* toplev.c (flag_new_regalloc): New.
      	(f_options): New option "new-ra".
      	(rest_of_compilation): Call initialize_uninitialized_subregs()
      	only for the old allocator.  If flag_new_regalloc is set, call
      	new allocator, instead of local_alloc(), global_alloc() and
      	friends.
      
      	* doc/invoke.texi: Document -fnew-ra.
      	* basic-block.h (FOR_ALL_BB): New.
      	* config/rs6000/rs6000.c (print_operand): Write small constants
      	as @l+80.
      
      	* df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
      	(df_reg_table_realloc): Make size at least as large as max_reg_num().
      	(df_insn_table_realloc): Size argument now is absolute, not relative.
      	Changed all callers.
      
      	* gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
      	* regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
      
      	2002-06-20  Michael Matz  <matz@suse.de>
      
      	* df.h (struct ref.id): Make unsigned.
      	* df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
      
      	2002-06-13  Michael Matz  <matz@suse.de>
      
      	* df.h (DF_REF_MODE_CHANGE): New flag.
      	* df.c (df_def_record_1, df_uses_record): Set this flag for refs
      	involving subregs with invalid mode changes, when
      	CLASS_CANNOT_CHANGE_MODE is defined.
      
      	2002-05-07  Michael Matz  <matz@suse.de>
      
      	* reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
      
      	2002-05-03  Michael Matz  <matz@suse.de>
      
      	* sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
      
      	Sat Feb  2 18:58:07 2002  Denis Chertykov  <denisc@overta.ru>
      
      	* regclass.c (regclass): Work with all regs which have sets or
      	refs.
      	(reg_scan_mark_refs): Count regs inside (clobber ...).
      
      	2002-01-04  Michael Matz  <matzmich@cs.tu-berlin.de>
      
      	* df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
      	(df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
      	add new refs.
      	(df_bb_refs_update): Don't clear insns_modified here, ...
      	(df_analyse): ... but here.
      
      	* sbitmap.c (dump_sbitmap_file): New.
      	(debug_sbitmap): Use it.
      
      	* sbitmap.h (dump_sbitmap_file): Add prototype.
      
      	2001-08-07  Daniel Berlin  <dan@cgsoftware.com>
      
      	* df.c (df_insn_modify): Grow the UID table if necessary, rather
      	than assume all emits go through df_insns_modify.
      
      	2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
      
      	* regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
      	increase REG_N_REFS (like flow does), so that regclass doesn't
      	think a reg is useless, and thus, not calculate a class, when it
      	really should have.
      
      	2001-01-28  Daniel Berlin  <dberlin@redhat.com>
      
      	* sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
      	dataflow analysis.
      
      From-SVN: r55458
      Michael Matz committed