re PR rtl-optimization/25514 (internal consistency failure)
authorRichard Sandiford <richard@codesourcery.com>
Mon, 22 May 2006 15:58:03 +0000 (15:58 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Mon, 22 May 2006 15:58:03 +0000 (15:58 +0000)
commit1ff3ac02b534f8fb29e9eb607cc36ad6fd84746b
tree1b43b83f68f5f180323cec80a8a5d5feb8ce778d
parent8c21550d5b849e6b38a88d8b1c3668a169dec5fd
re PR rtl-optimization/25514 (internal consistency failure)

PR rtl-optimization/25514
* combine.c (replaced_rhs_insn): New variable.
(combine_instructions): Set replaced_rhs_insn when trying to replace
a SET_SRC with a REG_EQUAL note.
(distribute_notes): Use replaced_rhs_insn when determining the live
range of a REG_DEAD register.

gcc/testsute
* gcc.c-torture/compile/pr25514.c: New test.

From-SVN: r113983
gcc/ChangeLog
gcc/combine.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr25514.c [new file with mode: 0644]