re PR c++/23372 (Temporary aggregate copy not elided when passing parameters by value)
authorJason Merrill <jason@redhat.com>
Fri, 18 Mar 2011 15:06:51 +0000 (11:06 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 18 Mar 2011 15:06:51 +0000 (11:06 -0400)
commitb4ef8aac30e7c17756d6a1ad8cbd6c914e960bb4
tree02f20ae0754332e0eef01c0e3956f0a4e49f08a4
parent82d3711899283500f82e917649cd3dc0457ba1a1
re PR c++/23372 (Temporary aggregate copy not elided when passing parameters by value)

PR c++/23372
* gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.

From-SVN: r171146
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr23372.C [new file with mode: 0644]