optimize.c (copy_body_r): If MODIFY_EXPR has both arguments identical and they would...
authorJakub Jelinek <jakub@redhat.com>
Sun, 28 Jan 2001 10:35:45 +0000 (11:35 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sun, 28 Jan 2001 10:35:45 +0000 (11:35 +0100)
commit6001735ea0da3d5d89a8f249a79fc8198ff28513
tree94c342ca0fab35fea5547deab7b00d988fa3f612
parent666bd4e75249b156c8fa42c38f0c4edd0000ea91
optimize.c (copy_body_r): If MODIFY_EXPR has both arguments identical and they would be replaced with...

* optimize.c (copy_body_r): If MODIFY_EXPR has both arguments
identical and they would be replaced with constant, remove
MODIFY_EXPR from the tree.

* g++.old-deja/g++.other/inline18.C: New test.

From-SVN: r39317
gcc/cp/ChangeLog
gcc/cp/optimize.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.other/inline18.C [new file with mode: 0644]