re PR c++/25979 (incorrect codegen for conditional [SVO issue])
authorJason Merrill <jason@redhat.com>
Fri, 3 Feb 2006 21:57:08 +0000 (16:57 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 3 Feb 2006 21:57:08 +0000 (16:57 -0500)
commit9b43c474f53803635b04c5b530f1ceddb13355f5
tree53e25d711d1130e3fded2395bdbce1e6aef3db0a
parent28e5f1f1151bf5ca1c77743234f08bb0e9d26174
re PR c++/25979 (incorrect codegen for conditional [SVO issue])

        PR c++/25979
        * gimplify.c (gimplify_modify_expr_rhs): Disable *& optimization for now.

        PR middle-end/25977
        * gimplify.c (gimplify_modify_expr_rhs): It's not always safe to do RVO
        on the return slot if it's an NRV.

From-SVN: r110565
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/g++.dg/opt/nrv10.C [new file with mode: 0644]
gcc/testsuite/g++.dg/opt/nrv11.C [new file with mode: 0644]
gcc/testsuite/g++.dg/opt/temp1.C