From 941f78d1036d0fd5597219eb5fe0ef672d25a6a7 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Thu, 6 May 2010 15:46:14 -0400 Subject: gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate. gcc: * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate. Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set ret appropriately. (gimplify_compound_lval): Return GS_ALL_DONE as appropriate. gcc/cp: * semantics.c (simplify_aggr_init_expr): Use INIT_EXPR. From-SVN: r159125 --- gcc/cp/semantics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/cp/semantics.c') diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index f47a758..0847403 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -3280,7 +3280,7 @@ simplify_aggr_init_expr (tree *tp) expand_call{,_inline}. */ cxx_mark_addressable (slot); CALL_EXPR_RETURN_SLOT_OPT (call_expr) = true; - call_expr = build2 (MODIFY_EXPR, TREE_TYPE (call_expr), slot, call_expr); + call_expr = build2 (INIT_EXPR, TREE_TYPE (call_expr), slot, call_expr); } else if (style == pcc) { -- cgit v1.1