re PR tree-optimization/51877 (XEmacs miscompilation due to tail merging)
authorJakub Jelinek <jakub@redhat.com>
Tue, 17 Jan 2012 10:38:38 +0000 (11:38 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 17 Jan 2012 10:38:38 +0000 (11:38 +0100)
commite6fa9204e6c288f61751821d6ca23d360d6e2b5b
treef7c316bdd47a7c81826047b8a1a4be5dcd48454f
parent6521d80a9b0372bb370bae90e1370fd88ff694c1
re PR tree-optimization/51877 (XEmacs miscompilation due to tail merging)

PR tree-optimization/51877
* tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
call arguments and fndecls compare equal, instead return false if they
don't.  Return true only if lhs1 and lhs2 are either both NULL, or
both SSA_NAMEs that are valueized the same, or they satisfy
operand_equal_p.

* gcc.c-torture/execute/pr51877.c: New test.

From-SVN: r183237
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr51877.c [new file with mode: 0644]
gcc/tree-ssa-tail-merge.c