aboutsummaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2010-07-30 16:36:56 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2010-07-30 16:36:56 +0200
commitf0fc0803eacde9850a7ff4a12d2f4ad29f1bcb2c (patch)
tree0a83c3adb8609c51590489ead2d7d994656b6183 /gcc/combine.c
parentf53ea4f08975910c2e92eda9ebe0785845e42247 (diff)
downloadgcc-f0fc0803eacde9850a7ff4a12d2f4ad29f1bcb2c.zip
gcc-f0fc0803eacde9850a7ff4a12d2f4ad29f1bcb2c.tar.gz
gcc-f0fc0803eacde9850a7ff4a12d2f4ad29f1bcb2c.tar.bz2
re PR debug/45055 (another -fcompare-debug failure with uninitialised read in walk_gimple_stmt)
PR debug/45055 PR rtl-optimization/45137 * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New prototypes. * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New functions. * combine.c (next_nonnote_nondebug_insn): Removed. * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn. * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn. * sched-deps.c (sched_analyze_insn): Likewise. (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn. * rtlanal.c (canonicalize_condition): Likewise. * postreload.c (reload_combine_recognize_pattern): Likewise. (reload_cse_move2add): Use next_nonnote_nondebug_insn. * gcc.dg/pr45055.c: New test. From-SVN: r162714
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index 9754b08..1991f34 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -12654,29 +12654,6 @@ reg_bitfield_target_p (rtx x, rtx body)
return 0;
}
-
-/* Return the next insn after INSN that is neither a NOTE nor a
- DEBUG_INSN. This routine does not look inside SEQUENCEs. */
-
-static rtx
-next_nonnote_nondebug_insn (rtx insn)
-{
- while (insn)
- {
- insn = NEXT_INSN (insn);
- if (insn == 0)
- break;
- if (NOTE_P (insn))
- continue;
- if (DEBUG_INSN_P (insn))
- continue;
- break;
- }
-
- return insn;
-}
-
-
/* Given a chain of REG_NOTES originally from FROM_INSN, try to place them
as appropriate. I3 and I2 are the insns resulting from the combination