+2002-04-12 Richard Henderson <rth@redhat.com>
+
+ PR bootstrap/4191
+ * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
+
+ * flow.c (mark_used_reg): Manage reg_cond_dead properly for
+ modes spanning multiple hard regs.
+
+ * recog.c (peephole2_optimize): Rebuild jump labels as needed.
+
2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
* pa.c (pa_output_function_prologue): Don't accumulate the total
* config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
* config/alpha/vms.h: Likewise.
-2002-04-11 Richard Sandiford <rsand
+2002-04-11 Richard Sandiford <rsandifo@redhat.com>
* doc/extend.texi: Remove old claim that typedefs cannot have
an alignment attribute.
* protoize.c: Match include directory usage with cppdefault.c.
2002-04-03 Jeffrey A Law (law@redhat.com)
- Hans-Peter Nilsson <hp@bitrange.com>
+ Hans-Peter Nilsson <hp@bitrange.com>
* combine.c (simplify_comparison): Avoid narrowing a comparison
with a paradoxical subreg when doing so would drop signficant bits.
2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
* config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
- ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
+ ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
2002-04-01 Bob Wilson <bob.wilson@acm.org>
- * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
- in previous change.
+ * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
+ in previous change.
2002-04-01 Bob Wilson <bob.wilson@acm.org>
* libgcc2.c (__bb_exit_func): Make static.
- * config/alpha/alpha.md (trap): New.
+ * config/alpha/alpha.md (trap): New.
2002-03-31 Richard Henderson <rth@redhat.com>
* config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
2002-03-30 Roger Sayle <roger@eyesopen.com>
- Richard Henderson <rth@redhat.com>
+ Richard Henderson <rth@redhat.com>
- * regmove.c (combine_stack_adjustments_for_block): Avoid
- emitting a stack adjustment of zero bytes. Let delete_insn
- update bb->head.
+ * regmove.c (combine_stack_adjustments_for_block): Avoid
+ emitting a stack adjustment of zero bytes. Let delete_insn
+ update bb->head.
2002-03-30 Richard Henderson <rth@redhat.com>
Defined in svr4.h. */
/* #define INIT_SECTION_ASM_OP */
-#undef INIT_SECTION_ASM_OP
/* If defined, `main' will not call `__main' as described above. This macro
should be defined for systems that control the contents of the init section
/* Mark the register as being live. */
for (i = regno_first; i <= regno_last; ++i)
{
+#ifdef HAVE_conditional_execution
+ int this_was_live = REGNO_REG_SET_P (pbi->reg_live, i);
+#endif
+
SET_REGNO_REG_SET (pbi->reg_live, i);
#ifdef HAVE_conditional_execution
struct reg_cond_life_info *rcli;
rtx ncond;
- if (some_was_live)
+ if (this_was_live)
{
node = splay_tree_lookup (pbi->reg_cond_dead, i);
if (node == NULL)
SET_REGNO_REG_SET (pbi->reg_cond_reg, REGNO (XEXP (cond, 0)));
}
}
- else if (some_was_live)
+ else if (this_was_live)
{
/* The register may have been conditionally live previously, but
is now unconditionally live. Remove it from the conditionally
bool changed;
#endif
bool do_cleanup_cfg = false;
+ bool do_rebuild_jump_labels = false;
/* Initialize the regsets we're going to use. */
for (i = 0; i < MAX_INSNS_PER_PEEP2 + 1; ++i)
prev = PREV_INSN (insn);
if (INSN_P (insn))
{
- rtx try, before_try;
+ rtx try, before_try, x;
int match_len;
rtx note;
/* Re-insert the EH_REGION notes. */
if (note)
{
- rtx x;
edge eh_edge;
for (eh_edge = bb->succ; eh_edge
COPY_REG_SET (live, peep2_insn_data[i].live_before);
/* Update life information for the new sequence. */
+ x = try;
do
{
- if (INSN_P (try))
+ if (INSN_P (x))
{
if (--i < 0)
i = MAX_INSNS_PER_PEEP2;
- peep2_insn_data[i].insn = try;
- propagate_one_insn (pbi, try);
+ peep2_insn_data[i].insn = x;
+ propagate_one_insn (pbi, x);
COPY_REG_SET (peep2_insn_data[i].live_before, live);
}
- try = PREV_INSN (try);
+ x = PREV_INSN (x);
}
- while (try != prev);
+ while (x != prev);
/* ??? Should verify that LIVE now matches what we
had before the new sequence. */
peep2_current = i;
#endif
+
+ /* If we generated a jump instruction, it won't have
+ JUMP_LABEL set. Recompute after we're done. */
+ for (x = try; x != before_try; x = PREV_INSN (x))
+ if (GET_CODE (x) == JUMP_INSN)
+ {
+ do_rebuild_jump_labels = true;
+ break;
+ }
}
}
FREE_REG_SET (peep2_insn_data[i].live_before);
FREE_REG_SET (live);
+ if (do_rebuild_jump_labels)
+ rebuild_jump_labels (get_insns ());
+
/* If we eliminated EH edges, we may be able to merge blocks. Further,
we've changed global life since exception handlers are no longer
reachable. */