From: Andrew Haley Date: Mon, 21 Jun 2004 16:55:07 +0000 (+0000) Subject: java-gimplify.c (java_gimplify_block): set TREE_USED on the new block. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=979bf9a120b592b4b7002424a44bf4b9b0854596;p=gcc.git java-gimplify.c (java_gimplify_block): set TREE_USED on the new block. 2004-06-21 Andrew Haley * java-gimplify.c (java_gimplify_block): set TREE_USED on the new block. From-SVN: r83441 --- diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index fff8cfe686a..cd9cffb67d2 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2004-06-21 Andrew Haley + + * java-gimplify.c (java_gimplify_block): set TREE_USED on the new + block. + 2004-06-21 Joseph S. Myers * 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 987351c2102..3c446672255 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);