aboutsummaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@gcc.gnu.org>2014-02-12 10:16:34 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2014-02-12 10:16:34 +0000
commit491bdba30e0e46ba509726736cad8d562946f99f (patch)
treebea844e619a5f9e53c18e2dfd5f1bc6086859189 /gcc/combine.c
parent283416b3fbccccc90cac74c351517c29204a3775 (diff)
downloadgcc-491bdba30e0e46ba509726736cad8d562946f99f.zip
gcc-491bdba30e0e46ba509726736cad8d562946f99f.tar.gz
gcc-491bdba30e0e46ba509726736cad8d562946f99f.tar.bz2
re PR rtl-optimization/60116 (wrong code at -Os on x86_64-linux-gnu in 32-bit mode)
PR rtl-optimization/60116 * combine.c (try_combine): Fix oversight in previous change. From-SVN: r207716
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index f6e1dbc..1b598b4 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -3902,8 +3902,11 @@ try_combine (rtx i3, rtx i2, rtx i1, rtx i0, int *new_direct_jump_p,
next = XEXP (note, 1);
if ((REG_NOTE_KIND (note) == REG_DEAD
- || REG_NOTE_KIND (note) == REG_UNUSED)
- && ! reg_set_p (XEXP (note, 0), PATTERN (undobuf.other_insn)))
+ && !reg_referenced_p (XEXP (note, 0),
+ PATTERN (undobuf.other_insn)))
+ ||(REG_NOTE_KIND (note) == REG_UNUSED
+ && !reg_set_p (XEXP (note, 0),
+ PATTERN (undobuf.other_insn))))
remove_note (undobuf.other_insn, note);
}