aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/semantics.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2010-05-06 15:46:14 -0400
committerJason Merrill <jason@gcc.gnu.org>2010-05-06 15:46:14 -0400
commit941f78d1036d0fd5597219eb5fe0ef672d25a6a7 (patch)
tree9df72cb07d8aae1f8f55d7d7575646c8e15b35ac /gcc/cp/semantics.c
parentebad523301c12f27e56a3008916e4e41f518ba57 (diff)
downloadgcc-941f78d1036d0fd5597219eb5fe0ef672d25a6a7.zip
gcc-941f78d1036d0fd5597219eb5fe0ef672d25a6a7.tar.gz
gcc-941f78d1036d0fd5597219eb5fe0ef672d25a6a7.tar.bz2
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
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r--gcc/cp/semantics.c2
1 files changed, 1 insertions, 1 deletions
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)
{