re PR c++/16405 (Temporary aggregate copy not elided)

PR c++/16405
	* gimplify.c (gimplify_modify_expr_rhs): Handle
	INDIRECT_REF/ADDR_EXPR combinations.

From-SVN: r92555
This commit is contained in:
Mark Mitchell 2004-12-23 16:27:11 +00:00 committed by Mark Mitchell
parent d070d4fd52
commit ce21424d74
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2004-12-23 Mark Mitchell <mark@codesourcery.com>
PR c++/16405
* g++.dg/opt/temp1.C: Add do-run marker.
2004-12-23 Alexandre Oliva <aoliva@redhat.com>
* g++.dg/template/spec19.C: New.

View File

@ -1,5 +1,6 @@
// PR c++/16405
// { dg-options "-O2" }
// { dg-do run }
// There should be exactly one temporary generated for the code in "f"
// below when optimizing -- for the result of "b + c". We have no