From: Adam Nemet Date: Tue, 15 Sep 2009 22:18:34 +0000 (+0000) Subject: re PR bootstrap/41349 (bootstrap comparison failure on sparc-linux) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e484d1f0a465b55028791a06f68a6c6d94fa7ef2;p=gcc.git re PR bootstrap/41349 (bootstrap comparison failure on sparc-linux) PR bootstrap/41349 * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when trying to limit the extent of searches in the insn stream. From-SVN: r151731 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8afcfd8f66a..584f174adcc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2009-09-15 Adam Nemet + + PR bootstrap/41349 + * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when + trying to limit the extent of searches in the insn stream. + 2009-09-15 Nathan Froyd Jakub Jelinek diff --git a/gcc/reorg.c b/gcc/reorg.c index 4453ccabca6..4871b0e8c29 100644 --- a/gcc/reorg.c +++ b/gcc/reorg.c @@ -1630,13 +1630,14 @@ redundant_insn (rtx insn, rtx target, rtx delay_list) for (trial = PREV_INSN (target), insns_to_search = MAX_DELAY_SLOT_INSN_SEARCH; trial && insns_to_search > 0; - trial = PREV_INSN (trial), --insns_to_search) + trial = PREV_INSN (trial)) { if (LABEL_P (trial)) return 0; - if (! INSN_P (trial)) + if (!NONDEBUG_INSN_P (trial)) continue; + --insns_to_search; pat = PATTERN (trial); if (GET_CODE (pat) == USE || GET_CODE (pat) == CLOBBER) @@ -1735,10 +1736,11 @@ redundant_insn (rtx insn, rtx target, rtx delay_list) for (trial = PREV_INSN (target), insns_to_search = MAX_DELAY_SLOT_INSN_SEARCH; trial && !LABEL_P (trial) && insns_to_search > 0; - trial = PREV_INSN (trial), --insns_to_search) + trial = PREV_INSN (trial)) { - if (!INSN_P (trial)) + if (!NONDEBUG_INSN_P (trial)) continue; + --insns_to_search; pat = PATTERN (trial); if (GET_CODE (pat) == USE || GET_CODE (pat) == CLOBBER)