diff options
Diffstat (limited to 'gcc/java')
-rw-r--r-- | gcc/java/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/java/java-gimplify.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index fff8cfe..cd9cffb 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2004-06-21 Andrew Haley <aph@redhat.com> + + * java-gimplify.c (java_gimplify_block): set TREE_USED on the new + block. + 2004-06-21 Joseph S. Myers <jsm@polyomino.org.uk> * jcf.h (struct JCF): Change java_source, right_zip and finished diff --git a/gcc/java/java-gimplify.c b/gcc/java/java-gimplify.c index 987351c..3c44667 100644 --- a/gcc/java/java-gimplify.c +++ b/gcc/java/java-gimplify.c @@ -177,6 +177,11 @@ java_gimplify_block (tree java_block) because they use BLOCK_SUBBLOCKS for another purpose. */ block = make_node (BLOCK); BLOCK_VARS (block) = decls; + + /* The TREE_USED flag on a block determines whether the debug ouput + routines generate info for the variables in that block. */ + TREE_USED (block) = 1; + if (outer != NULL_TREE) { outer = BIND_EXPR_BLOCK (outer); |