This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Eliminating Assembler Already Defined Messages for Java Library


Alexandre Petit-Bianco <apbianco@cygnus.com> writes:

> Per Bothner writes:
> 
> > It may be possible to re-enable the error checks if we get rid of
> > the BLOCK_SUBBLOCKS/BLOCK_EXPR_BODY pun. Using BIND_EXPR instead of
> > BLOCK seems the best way to do that.
> 
> What do you mean? The way we're keeping track of locals by creating
> blocks?

Yes.  The problem is that the block subblocks fields is used for
BLOCK_EXPR_BODY by the Java front-end, and used for BLOCK_SUBBLOCKS
by the back-end.  This seems a bit kludgy, but it is difficult to
deal with it given that all of the fields of a BLOCK are used.  We
can probably use TREE_TYPE, with some care.  But a cleaner solution
seems to be to use BIND_EXPR to encapsulate decls+body:  I.e. we
replace BLOCK_EXPR_DECLS (block) by TREE_OPERAND (bind, 0),
and BLOCK_EXPR_BODY (block) by TREE_OPERAND (bind, 1).  However,
this is probably more work that it is worth.
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/~per/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]