From 74cbc6919c82c6cb8e90eca40099190a650927ab Mon Sep 17 00:00:00 2001 From: ebotcazou Date: Thu, 12 Jun 2008 12:10:06 +0000 Subject: [PATCH] * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with TREE_THIS_VOLATILE on INDIRECT_REF nodes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@136702 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/tree-inline.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 58260bbaff5..f91be0b6eb2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2008-06-12 Eric Botcazou + * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with + TREE_THIS_VOLATILE on INDIRECT_REF nodes. + +2008-06-12 Eric Botcazou + * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like. (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields. diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index cb97db1326b..e255424f548 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -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; -- 2.11.4.GIT