tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with TREE_THIS_VOLATILE...
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 12 Jun 2008 12:10:06 +0000 (12:10 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 12 Jun 2008 12:10:06 +0000 (12:10 +0000)
* tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
TREE_THIS_VOLATILE on INDIRECT_REF nodes.

From-SVN: r136702

gcc/ChangeLog
gcc/tree-inline.c

index 58260bbaff5ffe138fde251b501711a2e24cc7aa..f91be0b6eb24eae44a7ca9e863aeb09b67892106 100644 (file)
@@ -1,3 +1,8 @@
+2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
+       TREE_THIS_VOLATILE on INDIRECT_REF nodes.
+
 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
 
        * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
index cb97db1326baf32bc9710ee3e3f10a5ba93a21e3..e255424f5488fc8d81f8d8798b43576f9ad6b1e9 100644 (file)
@@ -715,6 +715,7 @@ copy_body_r (tree *tp, int *walk_subtrees, void *data)
                    {
                      *tp = build1 (INDIRECT_REF, type, new);
                      TREE_THIS_VOLATILE (*tp) = TREE_THIS_VOLATILE (old);
+                     TREE_SIDE_EFFECTS (*tp) = TREE_SIDE_EFFECTS (old);
                    }
                }
              *walk_subtrees = 0;