re PR c++/16405 (Temporary aggregate copy not elided)
authorMark Mitchell <mark@codesourcery.com>
Thu, 23 Dec 2004 16:27:11 +0000 (16:27 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 23 Dec 2004 16:27:11 +0000 (16:27 +0000)
PR c++/16405
* gimplify.c (gimplify_modify_expr_rhs): Handle
INDIRECT_REF/ADDR_EXPR combinations.

From-SVN: r92555

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/temp1.C

index 3a91de1d3657a994e9af978643d0e7199ac1e6f1..7533a943968e3c0eeaa9282567adeb160976e064 100644 (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.
index f34bb8fff582acaa147bf2926f0065f948684b0b..6454cdb50356732e253bc953b947e59f68005334 100644 (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