gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
authorRichard Guenther <rguenther@suse.de>
Tue, 29 Jul 2008 17:07:42 +0000 (17:07 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 29 Jul 2008 17:07:42 +0000 (17:07 +0000)
2008-07-29  Richard Guenther  <rguenther@suse.de>

* gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for
OBJ_TYPE_REF.

From-SVN: r138256

gcc/ChangeLog
gcc/gimplify.c

index df3a03b855a87855f0f47722dbbae4805b0d1824..d1929ba0cffda1943920f2f9d51c9efe608f9fbb 100644 (file)
@@ -1,3 +1,8 @@
+2008-07-29  Richard Guenther  <rguenther@suse.de>
+
+       * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for
+       OBJ_TYPE_REF.
+
 2008-07-29  Jakub Jelinek  <jakub@redhat.com>
 
        * c-format.c (check_format_types): Revert unwanted checkin.
index 0f08f3b7393a32ae6a7043c735f58eef21dd553e..0f5605abf8151d76431a4979242731453851feb2 100644 (file)
@@ -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;