From 49c3bb1275fbdde639e778beb5aa5f4c6361a52d Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 20 Oct 1999 07:04:12 -0700 Subject: basic-block.h (PROP_*): Move constants from ... * basic-block.h (PROP_*): Move constants from ... * flow.c: ... here. (compute_bb_for_insn): Free the array before reallocating. (update_life_info): New arg PROP_FLAGS; pass on to propagate_block. (allocate_reg_life_data): Reset all reg variables collected by propagate_block. (get_block_head_tail): Don't convert from bb to block. (get_bb_head_tail): New. Update all callers of get_block_head_tail. (find_insn_reg_weight): Take block not bb. (schedule_block): Don't set block num for moved insns. (schedule_region): Don't update_life_info or find_insn_reg_weight. (schedule_insns): Do it here instead. * combine.c (combine_instructions): Invoke compute_bb_for_insn before update_life_info. * recog.c (split_all_insns, peephole2_optimize): Update for new arg to update_life_info. * rtlanal.c (remove_note): Cope with NULL note. * toplev.c (rest_of_compilation): Don't invoke recompute_reg_usage if we did sched1. From-SVN: r30103 --- gcc/rtlanal.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gcc/rtlanal.c') diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 5512a43..012f6db 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -1513,11 +1513,14 @@ find_regno_fusage (insn, code, regno) void remove_note (insn, note) - register rtx note; register rtx insn; + register rtx note; { register rtx link; + if (note == NULL_RTX) + return; + if (REG_NOTES (insn) == note) { REG_NOTES (insn) = XEXP (note, 1); -- cgit v1.1