+2010-12-18 Alexandre Oliva <aoliva@redhat.com>
+
+ PR debug/46782
+ * cfgcleanup.c (try_forward_edges): Skip debug insns.
+
2010-12-16 Eric Botcazou <ebotcazou@adacore.com>
* tree-ssa-sccvn.c (vn_reference_lookup_3): Always punt if the call to
/* When not optimizing, ensure that edges or forwarder
blocks with different locus are not optimized out. */
int locus = single_succ_edge (target)->goto_locus;
+ rtx last ;
if (locus && goto_locus && !locator_eq (locus, goto_locus))
counter = n_basic_blocks;
else if (locus)
goto_locus = locus;
- if (INSN_P (BB_END (target)))
+ last = BB_END (target);
+ if (DEBUG_INSN_P (last))
+ last = prev_nondebug_insn (last);
+
+ if (last && INSN_P (last))
{
- locus = INSN_LOCATOR (BB_END (target));
+ locus = INSN_LOCATOR (last);
if (locus && goto_locus
&& !locator_eq (locus, goto_locus))