diff options
author | Jakub Jelinek <jakub@redhat.com> | 2010-07-30 16:36:56 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2010-07-30 16:36:56 +0200 |
commit | f0fc0803eacde9850a7ff4a12d2f4ad29f1bcb2c (patch) | |
tree | 0a83c3adb8609c51590489ead2d7d994656b6183 /gcc/postreload.c | |
parent | f53ea4f08975910c2e92eda9ebe0785845e42247 (diff) | |
download | gcc-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/postreload.c')
-rw-r--r-- | gcc/postreload.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/postreload.c b/gcc/postreload.c index 093dce7..a0c7cc1 100644 --- a/gcc/postreload.c +++ b/gcc/postreload.c @@ -1113,7 +1113,7 @@ reload_combine_recognize_pattern (rtx insn) && last_label_ruid < reg_state[regno].use_ruid) { rtx base = XEXP (src, 1); - rtx prev = prev_nonnote_insn (insn); + rtx prev = prev_nonnote_nondebug_insn (insn); rtx prev_set = prev ? single_set (prev) : NULL_RTX; rtx index_reg = NULL_RTX; rtx reg_sum = NULL_RTX; @@ -1852,7 +1852,7 @@ reload_cse_move2add (rtx first) && MODES_OK_FOR_MOVE2ADD (GET_MODE (reg), reg_mode[REGNO (src)])) { - rtx next = next_nonnote_insn (insn); + rtx next = next_nonnote_nondebug_insn (insn); rtx set = NULL_RTX; if (next) set = single_set (next); |