aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/parse.y
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>2001-03-15 22:30:28 -0800
committerPer Bothner <bothner@gcc.gnu.org>2001-03-15 22:30:28 -0800
commitb16e8f08b4942c0971cf8f07ce041a882855c5fa (patch)
tree67536e58400ed7f787f84efc053a21e12fed953e /gcc/java/parse.y
parent3a2e5926e6f7b9353623b9d4aad695cc421b28d7 (diff)
downloadgcc-b16e8f08b4942c0971cf8f07ce041a882855c5fa.zip
gcc-b16e8f08b4942c0971cf8f07ce041a882855c5fa.tar.gz
gcc-b16e8f08b4942c0971cf8f07ce041a882855c5fa.tar.bz2
java-tree.h (BLOCK_IS_IMPLICIT): New flag.
* java-tree.h (BLOCK_IS_IMPLICIT): New flag. * parse.h (BLOCK_EXPR_ORIGIN): Removed macro. * parse.y (declare_local_variables, maybe_absorb_scoping_blocks): Use BLOCK_IS_IMPLICIT rather than BLOCK_EXPR_ORIGIN. From-SVN: r40542
Diffstat (limited to 'gcc/java/parse.y')
-rw-r--r--gcc/java/parse.y7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/java/parse.y b/gcc/java/parse.y
index b29d170..2100c66 100644
--- a/gcc/java/parse.y
+++ b/gcc/java/parse.y
@@ -6909,12 +6909,11 @@ declare_local_variables (modifier, type, vlist)
int final_p = 0;
/* Push a new block if statements were seen between the last time we
- pushed a block and now. Keep a cound of block to close */
+ pushed a block and now. Keep a count of blocks to close */
if (BLOCK_EXPR_BODY (GET_CURRENT_BLOCK (current_function_decl)))
{
- tree body = GET_CURRENT_BLOCK (current_function_decl);
tree b = enter_block ();
- BLOCK_EXPR_ORIGIN (b) = body;
+ BLOCK_IS_IMPLICIT (b) = 1;
}
if (modifier)
@@ -11962,7 +11961,7 @@ lookup_name_in_blocks (name)
static void
maybe_absorb_scoping_blocks ()
{
- while (BLOCK_EXPR_ORIGIN (GET_CURRENT_BLOCK (current_function_decl)))
+ while (BLOCK_IS_IMPLICIT (GET_CURRENT_BLOCK (current_function_decl)))
{
tree b = exit_block ();
java_method_add_stmt (current_function_decl, b);