tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with TREE_THIS_VOLATILE on INDIRECT_REF nodes.

* tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
	TREE_THIS_VOLATILE on INDIRECT_REF nodes.

From-SVN: r136702
This commit is contained in:
Eric Botcazou 2008-06-12 12:10:06 +00:00 committed by Eric Botcazou
parent bd323ce58c
commit 955f653119
2 changed files with 6 additions and 0 deletions

View 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.

View 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;