diff options
author | Tom Tromey <tromey@gcc.gnu.org> | 2000-07-13 19:23:57 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2000-07-13 19:23:57 +0000 |
commit | 185ce11b15dec339ddda83aa7a5fcb4ac200466d (patch) | |
tree | 021de56fc43c8eb0462c19ba75b2920850228023 /gcc | |
parent | 2021c8d296ff2d3bfaef27ece005c00c8540c7af (diff) | |
download | gcc-185ce11b15dec339ddda83aa7a5fcb4ac200466d.zip gcc-185ce11b15dec339ddda83aa7a5fcb4ac200466d.tar.gz gcc-185ce11b15dec339ddda83aa7a5fcb4ac200466d.tar.bz2 |
Reverting incorrectly applied change
From-SVN: r35021
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/java/jcf-write.c | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/gcc/java/jcf-write.c b/gcc/java/jcf-write.c index 0ef29ca..538c1a2 100644 --- a/gcc/java/jcf-write.c +++ b/gcc/java/jcf-write.c @@ -290,7 +290,6 @@ static struct jcf_block * get_jcf_label_here PARAMS ((struct jcf_partial *)); static void put_linenumber PARAMS ((int, struct jcf_partial *)); static void localvar_alloc PARAMS ((tree, struct jcf_partial *)); static void localvar_free PARAMS ((tree, struct jcf_partial *)); -static void localvar_finish PARAMS ((tree, struct jcf_partial *)); static int get_access_flags PARAMS ((tree)); static void write_chunks PARAMS ((FILE *, struct chunk *)); static int adjust_typed_op PARAMS ((tree, int)); @@ -645,25 +644,6 @@ localvar_free (decl, state) } } -/* Like localvar_free, but leaves the variable allocated. This lets - us avoid problems with inappropriate variable reuse in some - situations. */ -static void -localvar_finish (decl, state) - tree decl; - struct jcf_partial *state; -{ - struct jcf_block *end_label = get_jcf_label_here (state); - int index = DECL_LOCAL_INDEX (decl); - register struct localvar_info **ptr = &localvar_buffer [index]; - register struct localvar_info *info = *ptr; - - info->end_label = end_label; - - if (info->decl != decl) - abort (); -} - #define STACK_TARGET 1 #define IGNORE_TARGET 2 @@ -2399,7 +2379,7 @@ generate_bytecode_insns (exp, target, state) RESERVE (1); OP1 (OPCODE_athrow); NOTE_POP (1); - localvar_finish (exception_decl, state); + localvar_free (exception_decl, state); /* The finally block. First save return PC into return_link. */ define_jcf_label (finally_label, state); @@ -2408,7 +2388,7 @@ generate_bytecode_insns (exp, target, state) generate_bytecode_insns (finally, IGNORE_TARGET, state); maybe_wide (OPCODE_ret, DECL_LOCAL_INDEX (return_link), state); - localvar_finish (return_link, state); + localvar_free (return_link, state); define_jcf_label (finished_label, state); } break; |