From: Richard Guenther Date: Tue, 29 Jul 2008 17:07:42 +0000 (+0000) Subject: gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0f3a057aa9e5b4f6fbdbee87e8224ca9ea5a6d83;p=gcc.git gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF. 2008-07-29 Richard Guenther * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF. From-SVN: r138256 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index df3a03b855a..d1929ba0cff 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-07-29 Richard Guenther + + * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for + OBJ_TYPE_REF. + 2008-07-29 Jakub Jelinek * c-format.c (check_format_types): Revert unwanted checkin. diff --git a/gcc/gimplify.c b/gcc/gimplify.c index 0f08f3b7393..0f5605abf81 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -6630,6 +6630,7 @@ gimplify_expr (tree *expr_p, gimple_seq *pre_p, gimple_seq *post_p, post_p, is_gimple_val, fb_rvalue); r1 = gimplify_expr (&OBJ_TYPE_REF_EXPR (*expr_p), pre_p, post_p, is_gimple_val, fb_rvalue); + TREE_SIDE_EFFECTS (*expr_p) = 0; ret = MIN (r0, r1); } break;