summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2005-09-06 15:22:34 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2005-09-06 08:22:34 -0700
commit3e248b831501dcc1b222a2f27e880eff0b54e523 (patch)
tree887999d443692a7087b09cc5193c304f3e2b6fa8
parent5cc53d4ece08f31e4b7dfeb563df42e3cec9f9e9 (diff)
downloadgcc-3e248b831501dcc1b222a2f27e880eff0b54e523.tar.gz
java-gimplify.c (java_gimplify_block): NULL out the old BLOCK's BLOCK_EXPR_BODY before returning the new BIND_EXPR.
2005-09-06 Andrew Pinski <pinskia@physics.uc.edu> * java-gimplify.c (java_gimplify_block): NULL out the old BLOCK's BLOCK_EXPR_BODY before returning the new BIND_EXPR. From-SVN: r103950
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/java-gimplify.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index ba3a435d953..81fc91373f6 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,8 @@
+2005-09-06 Andrew Pinski <pinskia@physics.uc.edu>
+
+ * java-gimplify.c (java_gimplify_block): NULL out the old BLOCK's
+ BLOCK_EXPR_BODY before returning the new BIND_EXPR.
+
2005-09-06 Kazu Hirata <kazu@codesourcery.com>
* check-init.c, decl.c, expr.c, gcj.texi, java-tree.h,
diff --git a/gcc/java/java-gimplify.c b/gcc/java/java-gimplify.c
index a07e1bbdc96..e5d7a4377d9 100644
--- a/gcc/java/java-gimplify.c
+++ b/gcc/java/java-gimplify.c
@@ -285,6 +285,7 @@ java_gimplify_block (tree java_block)
outer = BIND_EXPR_BLOCK (outer);
BLOCK_SUBBLOCKS (outer) = chainon (BLOCK_SUBBLOCKS (outer), block);
}
+ BLOCK_EXPR_BODY (java_block) = NULL_TREE;
return build3 (BIND_EXPR, TREE_TYPE (java_block), decls, body, block);
}