[Bug c++/19317] [4.0 Regression] removing a temporary return value when we cannot

mueller at kde dot org gcc-bugzilla@gcc.gnu.org
Sun Feb 13 21:24:00 GMT 2005


------- Additional Comments From mueller at kde dot org  2005-02-13 14:59 -------
bug has been fixed by  
  
2005-02-13  Jason Merrill  <jason@redhat.com>  
  
        PR mudflap/19319  
        * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Make return  
        slot explicit.  
  
        PR c++/16405  
        * fold-const.c (fold_indirect_ref_1): Split out from...  
        (build_fold_indirect_ref): Here.  
        (fold_indirect_ref): New fn.  
        * tree.h: Declare it.  
        * gimplify.c (gimplify_compound_lval): Call fold_indirect_ref.  
        (gimplify_modify_expr_rhs): Likewise.  
        (gimplify_expr): Likewise.  
  
can anyone add the testcase to the regression testsuite please? 
 
it seems to me however the above commit caused another regression, I get 
other miscompilations now.  
 

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19317



More information about the Gcc-bugs mailing list