re PR tree-optimization/43784 (-Os -fkeep-inline-functions causes FAIL: gcc.c-torture...
authorRichard Guenther <rguenther@suse.de>
Mon, 26 Jul 2010 16:01:55 +0000 (16:01 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 26 Jul 2010 16:01:55 +0000 (16:01 +0000)
commit7f8ac3d7f9914527dbc0052d21326bc351f211e9
tree4dd9226e46cf61e9b8b0ed19dc32773d0e0121c8
parent6a2ba1839d6cbcde7424e9c10a200d19d34beeb8
re PR tree-optimization/43784 (-Os -fkeep-inline-functions causes FAIL: gcc.c-torture/execute/builtins/pr22237.c execution)

2010-07-26  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/43784
* tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
if the destination is used by the call.

* gcc.c-torture/execute/pr43784.c: New testcase.
* g++.dg/torture/pr43784.C: Likewise.

From-SVN: r162539
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr43784.C [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/execute/pr43784.c [new file with mode: 0644]
gcc/tree-nrv.c