re PR rtl-optimization/55010 (Internal consistency failure : invalid rtl sharing...
authorJakub Jelinek <jakub@redhat.com>
Wed, 24 Oct 2012 09:13:09 +0000 (11:13 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 24 Oct 2012 09:13:09 +0000 (11:13 +0200)
commitbca3cc973b4ec85437b147a8586755f30e1f8366
tree53c53bb47a681d284ef94aace31097589baaa6a4
parent848be0946c097a25e63acea3e16eee11fc41e6c9
re PR rtl-optimization/55010 (Internal consistency failure : invalid rtl sharing found in the insn)

PR rtl-optimization/55010
* cse.c (fold_rtx) <RTX_COMPARE>: Call copy_rtx on folded_arg{0,1}
before passing it to simplify_relational_operation.

* gcc.dg/pr55010.c: New test.

From-SVN: r192760
gcc/ChangeLog
gcc/cse.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr55010.c [new file with mode: 0644]